[Asterisk-cvs] asterisk/channels chan_sip.c,1.404,1.405

jim at lists.digium.com jim at lists.digium.com
Sun May 30 15:48:03 CDT 2004


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

Modified Files:
	chan_sip.c 
Log Message:
Fixed annoying SIP 'NOTIFY' messages printed on console every n seconds from some SIP peers. Also fixed problem where 'INFO' was not being responded to if in 'ignore' state.


Index: chan_sip.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_sip.c,v
retrieving revision 1.404
retrieving revision 1.405
diff -u -d -r1.404 -r1.405
--- chan_sip.c	29 May 2004 23:40:22 -0000	1.404
+++ chan_sip.c	30 May 2004 20:03:39 -0000	1.405
@@ -6695,7 +6695,14 @@
 			if (sip_debug_test_pvt(p))
 				ast_verbose("Receiving DTMF!\n");
 			receive_info(p, req);
+		} else { /* if ignoring, transmit response */
+			transmit_response(p, "200 OK", req);
 		}
+	} else if (!strcasecmp(cmd, "NOTIFY")) {
+		/* XXX we get NOTIFY's from some servers. WHY?? Maybe we should
+			look into this someday XXX */
+		transmit_response(p, "200 OK", req);
+		if (!p->lastinvite) p->needdestroy = 1;
 	} else if (!strcasecmp(cmd, "REGISTER")) {
 		/* Use this as the basis */
 		if (sip_debug_test_pvt(p))




More information about the svn-commits mailing list