Make sure we don't set the channel to be inalarm for a D-channel drop on PTMP connections

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@170351 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Matthew Fredrickson 2009-01-22 23:23:22 +00:00
parent 79eb245962
commit 55fd5f2d2d
1 changed files with 5 additions and 1 deletions

View File

@ -10981,7 +10981,11 @@ static void *pri_dchannel(void *vpri)
} else if (p->owner)
p->owner->_softhangup |= AST_SOFTHANGUP_DEV;
}
p->inalarm = 1;
/* For PTMP connections with non persistent layer 2 we want
* to *not* declare inalarm unless there actually is an alarm */
if (p->sig != SIG_BRI_PTMP) {
p->inalarm = 1;
}
}
}
}