[svn-commits] rmudgett: branch 1.4 r1958 - /branches/1.4/q931.c
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Tue Sep 7 18:13:08 CDT 2010
Author: rmudgett
Date: Tue Sep 7 18:13:04 2010
New Revision: 1958
URL: http://svnview.digium.com/svn/libpri?view=rev&rev=1958
Log:
Balance curly braces in post_handle_q931_message().
Modified:
branches/1.4/q931.c
Modified: branches/1.4/q931.c
URL: http://svnview.digium.com/svn/libpri/branches/1.4/q931.c?view=diff&rev=1958&r1=1957&r2=1958
==============================================================================
--- branches/1.4/q931.c (original)
+++ branches/1.4/q931.c Tue Sep 7 18:13:04 2010
@@ -7643,16 +7643,24 @@
if ((ctrl->debug & PRI_DEBUG_Q931_ANOMALY) &&
(c->cause != PRI_CAUSE_INTERWORKING))
pri_error(ctrl, "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 (
#if 0
- if (!c->sugcallstate && (c->ourcallstate != Q931_CALL_STATE_CALL_INITIATED)) {
+ /*
+ * Workaround for S-12 ver 7.3 - it responds to
+ * invalid/non-implemented IEs in SETUP with NULL call state.
+ */
+ !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) {
+ /*
+ * 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.
+ */
+
+ !c->sugcallstate
#endif
+ ) {
ctrl->ev.hangup.subcmds = &ctrl->subcmds;
ctrl->ev.hangup.channel = q931_encode_channel(c);
ctrl->ev.hangup.cause = c->cause;
More information about the svn-commits
mailing list