[asterisk-commits] rmudgett: branch 1.8 r287683 - /branches/1.8/channels/chan_dahdi.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Sep 20 18:14:47 CDT 2010


Author: rmudgett
Date: Mon Sep 20 18:14:42 2010
New Revision: 287683

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=287683
Log:
The inalarm flag was not set in sig_analog struct if the port is initially in alarm.

Fixed initial inalarm value for sig_analog ports.

Along with -r261007, this gets the inalarm flag in sync with chan_dahdi
for sig_analog ports.

(closes issue #16983)

Modified:
    branches/1.8/channels/chan_dahdi.c

Modified: branches/1.8/channels/chan_dahdi.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/channels/chan_dahdi.c?view=diff&rev=287683&r1=287682&r2=287683
==============================================================================
--- branches/1.8/channels/chan_dahdi.c (original)
+++ branches/1.8/channels/chan_dahdi.c Mon Sep 20 18:14:42 2010
@@ -12401,6 +12401,11 @@
 					break;
 #endif	/* defined(HAVE_SS7) */
 				default:
+					/* The only sig submodule left should be sig_analog. */
+					analog_p = tmp->sig_pvt;
+					if (analog_p) {
+						analog_p->inalarm = 1;
+					}
 					tmp->inalarm = 1;
 					break;
 				}




More information about the asterisk-commits mailing list