[asterisk-commits] mattf: trunk r170351 - /trunk/channels/chan_dahdi.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Jan 22 17:23:22 CST 2009


Author: mattf
Date: Thu Jan 22 17:23:22 2009
New Revision: 170351

URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=170351
Log:
Make sure we don't set the channel to be inalarm for a D-channel drop on PTMP connections

Modified:
    trunk/channels/chan_dahdi.c

Modified: trunk/channels/chan_dahdi.c
URL: http://svn.digium.com/svn-view/asterisk/trunk/channels/chan_dahdi.c?view=diff&rev=170351&r1=170350&r2=170351
==============================================================================
--- trunk/channels/chan_dahdi.c (original)
+++ trunk/channels/chan_dahdi.c Thu Jan 22 17:23:22 2009
@@ -10981,7 +10981,11 @@
 								} 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;
+							}
 						}
 					}
 				}




More information about the asterisk-commits mailing list