[Asterisk-cvs] asterisk/channels chan_sip.c,1.346,1.347

markster at lists.digium.com markster at lists.digium.com
Wed Apr 28 18:05:30 CDT 2004


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

Modified Files:
	chan_sip.c 
Log Message:
Don't double receive INFO or MESSAGE elements (bug #1512)


Index: chan_sip.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_sip.c,v
retrieving revision 1.346
retrieving revision 1.347
diff -u -d -r1.346 -r1.347
--- chan_sip.c	28 Apr 2004 14:35:20 -0000	1.346
+++ chan_sip.c	28 Apr 2004 22:12:08 -0000	1.347
@@ -5718,9 +5718,11 @@
 			p->needdestroy = 1;
 		transmit_response(p, "200 OK", req);
 	} else if (!strcasecmp(cmd, "MESSAGE")) {
-		if (sipdebug)
-			ast_verbose("Receiving message!\n");
-		receive_message(p, req);
+		if (!ignore) {
+			if (sipdebug)
+				ast_verbose("Receiving message!\n");
+			receive_message(p, req);
+		}
 		transmit_response(p, "200 OK", req);
 	} else if (!strcasecmp(cmd, "SUBSCRIBE")) {
 		if (!ignore) {
@@ -5788,9 +5790,11 @@
 		    transmit_state_notify(p, ast_extension_state(NULL, p->context, p->exten),1);
 		}
 	} else if (!strcasecmp(cmd, "INFO")) {
-		if (sipdebug)
-			ast_verbose("Receiving DTMF!\n");
-		receive_info(p, req);
+		if (!ignore) {
+			if (sipdebug)
+				ast_verbose("Receiving DTMF!\n");
+			receive_info(p, req);
+		}
 		transmit_response(p, "200 OK", req);
 	} else if (!strcasecmp(cmd, "REGISTER")) {
 		/* Use this as the basis */




More information about the svn-commits mailing list