diff options
author | mattf <mattf@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-01-27 16:14:08 +0000 |
---|---|---|
committer | mattf <mattf@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-01-27 16:14:08 +0000 |
commit | a5afb5379b12ce1a2487f2e735dd0a410b87da16 (patch) | |
tree | d4f94e85d1e6eb9f5e1430b43fc3d998624d786d /channels/chan_dahdi.c | |
parent | 3e89b5453a6d04b61c60beef2cb27cb74dd2ed8f (diff) |
Make sure we do not go into alarm on PTMP links with non persistent D-channels
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.0@171594 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_dahdi.c')
-rw-r--r-- | channels/chan_dahdi.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/channels/chan_dahdi.c b/channels/chan_dahdi.c index 75dda32ca..7d0b0afdc 100644 --- a/channels/chan_dahdi.c +++ b/channels/chan_dahdi.c @@ -10520,7 +10520,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; + } } } } |