From: Matthew Fredrickson Date: Thu, 22 Jan 2009 23:23:22 +0000 (+0000) Subject: Make sure we don't set the channel to be inalarm for a D-channel drop on PTMP connections X-Git-Tag: 1.6.2.0-beta1~383 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=55fd5f2d2d32b9831c3ed49f333ac8f1bd652c7d;p=thirdparty%2Fasterisk.git 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 --- diff --git a/channels/chan_dahdi.c b/channels/chan_dahdi.c index 22d43e98bc..631694261b 100644 --- a/channels/chan_dahdi.c +++ b/channels/chan_dahdi.c @@ -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; + } } } }