[asterisk-commits] rmudgett: branch rmudgett/call_waiting r251537 - /team/rmudgett/call_waiting/...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Mar 9 20:36:38 CST 2010


Author: rmudgett
Date: Tue Mar  9 20:36:34 2010
New Revision: 251537

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=251537
Log:
Ensure that only the implemented service message status bits could be set on initialization.

Modified:
    team/rmudgett/call_waiting/channels/chan_dahdi.c

Modified: team/rmudgett/call_waiting/channels/chan_dahdi.c
URL: http://svnview.digium.com/svn/asterisk/team/rmudgett/call_waiting/channels/chan_dahdi.c?view=diff&rev=251537&r1=251536&r2=251537
==============================================================================
--- team/rmudgett/call_waiting/channels/chan_dahdi.c (original)
+++ team/rmudgett/call_waiting/channels/chan_dahdi.c Tue Mar  9 20:36:34 2010
@@ -12058,6 +12058,9 @@
 							char state;
 
 							sscanf(db_answer, "%1c:%30u", &state, why);
+
+							/* Ensure that only the implemented bits could be set.*/
+							*why &= (SRVST_NEAREND | SRVST_FAREND);
 						}
 						if (!*why) {
 							ast_db_del(db_chan_name, SRVST_DBKEY);




More information about the asterisk-commits mailing list