[Asterisk-cvs] asterisk/channels chan_sip.c,1.858,1.859

kpfleming kpfleming
Wed Sep 14 18:47:02 CDT 2005


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

Modified Files:
	chan_sip.c 
Log Message:
correct 'progressinband' parsing (issue #5209, different fix)


Index: chan_sip.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_sip.c,v
retrieving revision 1.858
retrieving revision 1.859
diff -u -d -r1.858 -r1.859
--- chan_sip.c	14 Sep 2005 22:06:00 -0000	1.858
+++ chan_sip.c	14 Sep 2005 22:45:31 -0000	1.859
@@ -11116,10 +11116,10 @@
 	} else if (!strcasecmp(v->name, "progressinband")) {
 		ast_set_flag(mask, SIP_PROG_INBAND);
 		ast_clear_flag(flags, SIP_PROG_INBAND);
-		if (strcasecmp(v->value, "never"))
-			ast_set_flag(flags, SIP_PROG_INBAND_NO);
-		else if (ast_true(v->value))
+		if (ast_true(v->value))
 			ast_set_flag(flags, SIP_PROG_INBAND_YES);
+		else if (strcasecmp(v->value, "never"))
+			ast_set_flag(flags, SIP_PROG_INBAND_NO);
   	} else if (!strcasecmp(v->name, "allowguest")) {
 #ifdef OSP_SUPPORT
   		if (!strcasecmp(v->value, "osp"))




More information about the svn-commits mailing list