[svn-commits] rmudgett: branch rmudgett/call_waiting r1525 - /team/rmudgett/call_waiting/

SVN commits to the Digium repositories svn-commits at lists.digium.com
Wed Mar 10 20:42:36 CST 2010


Author: rmudgett
Date: Wed Mar 10 20:42:33 2010
New Revision: 1525

URL: http://svnview.digium.com/svn/libpri?view=rev&rev=1525
Log:
Do not send an exclusive no channel channel id ie.

An exclusive no channel channel id ie indicates a response message to the
initial SETUP with no channel.  Besides, it is ridiculous to send an
exclusive no channel channel id ie.

Modified:
    team/rmudgett/call_waiting/q931.c

Modified: team/rmudgett/call_waiting/q931.c
URL: http://svnview.digium.com/svn/libpri/team/rmudgett/call_waiting/q931.c?view=diff&rev=1525&r1=1524&r2=1525
==============================================================================
--- team/rmudgett/call_waiting/q931.c (original)
+++ team/rmudgett/call_waiting/q931.c Wed Mar 10 20:42:33 2010
@@ -1064,6 +1064,10 @@
 	}
 	if (call->chanflags & FLAG_EXCLUSIVE) {
 		/* Channel is exclusive */
+		if (!(ie->data[pos] & 0x03)) {
+			/* An exclusive no channel id ie is to be discarded. */
+			return 0;
+		}
 		ie->data[pos] |= 0x08;
 	} else if (!call->chanflags) {
 		/* Don't need this IE */




More information about the svn-commits mailing list