[svn-commits] mattf: trunk r553 - /trunk/q931.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Tue May 6 11:15:32 CDT 2008


Author: mattf
Date: Tue May  6 11:15:32 2008
New Revision: 553

URL: http://svn.digium.com/view/libpri?view=rev&rev=553
Log:
Final patch to pass certification

Modified:
    trunk/q931.c

Modified: trunk/q931.c
URL: http://svn.digium.com/view/libpri/trunk/q931.c?view=diff&rev=553&r1=552&r2=553
==============================================================================
--- trunk/q931.c (original)
+++ trunk/q931.c Tue May  6 11:15:32 2008
@@ -3681,7 +3681,14 @@
 		    (c->cause != PRI_CAUSE_INTERWORKING)) 
 			pri_error(pri, "Received unsolicited status: %s\n", pri_cause2str(c->cause));
 		/* Workaround for S-12 ver 7.3 - it responds for invalid/non-implemented IEs at SETUP with null call state */
+#if 0
 		if (!c->sugcallstate && (c->ourcallstate != Q931_CALL_STATE_CALL_INITIATED)) {
+#else
+		/* Remove "workaround" since it breaks certification testing.  If we receive a STATUS message of call state
+		 * NULL and we are not in the call state NULL we must clear resources and return to the call state to pass
+		 * testing.  See section 5.8.11 of Q.931 */
+		if (!c->sugcallstate) {
+#endif
 			pri->ev.hangup.channel = c->channelno | (c->ds1no << 8) | (c->ds1explicit << 16);
 			pri->ev.hangup.cause = c->cause;
 			pri->ev.hangup.cref = c->cr;




More information about the svn-commits mailing list