[Asterisk-cvs] asterisk/channels chan_sip.c,1.608,1.609

markster at lists.digium.com markster at lists.digium.com
Sat Jan 1 18:42:48 CST 2005


Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv5436/channels

Modified Files:
	chan_sip.c 
Log Message:
Improve check order


Index: chan_sip.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_sip.c,v
retrieving revision 1.608
retrieving revision 1.609
diff -u -d -r1.608 -r1.609
--- chan_sip.c	31 Dec 2004 23:26:39 -0000	1.608
+++ chan_sip.c	2 Jan 2005 00:48:11 -0000	1.609
@@ -8421,10 +8421,10 @@
 	} else if (!strcasecmp(v->name, "progressinband")) {
 		ast_set_flag(mask, SIP_PROG_INBAND);
 		ast_clear_flag(flags, SIP_PROG_INBAND);
-		if (ast_true(v->value))
-			ast_set_flag(flags, SIP_PROG_INBAND_YES);
-		else if (strcasecmp(v->value, "never"))
+		if (strcasecmp(v->value, "never"))
 			ast_set_flag(flags, SIP_PROG_INBAND_NO);
+		else if (ast_true(v->value))
+			ast_set_flag(flags, SIP_PROG_INBAND_YES);
 #ifdef OSP_SUPPORT
 	} else if (!strcasecmp(v->name, "ospauth")) {
 		ast_set_flag(mask, SIP_OSPAUTH);




More information about the svn-commits mailing list