[Asterisk-cvs] asterisk/channels chan_sip.c,1.766,1.767

kpfleming at lists.digium.com kpfleming at lists.digium.com
Mon Jun 20 21:06:39 CDT 2005


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

Modified Files:
	chan_sip.c 
Log Message:
ensure that proper response code is return for unimplemented methods (bug #4512)


Index: chan_sip.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_sip.c,v
retrieving revision 1.766
retrieving revision 1.767
diff -u -d -r1.766 -r1.767
--- chan_sip.c	20 Jun 2005 17:01:03 -0000	1.766
+++ chan_sip.c	21 Jun 2005 01:07:31 -0000	1.767
@@ -9407,7 +9407,7 @@
 			ast_set_flag(p, SIP_NEEDDESTROY);	
 		break;
 	default:
-		transmit_response_with_allow(p, "405 Method Not Allowed", req, 0);
+		transmit_response_with_allow(p, "501 Method Not Implemented", req, 0);
 		ast_log(LOG_NOTICE, "Unknown SIP command '%s' from '%s'\n", 
 			cmd, ast_inet_ntoa(iabuf, sizeof(iabuf), p->sa.sin_addr));
 		/* If this is some new method, and we don't have a call, destroy it now */




More information about the svn-commits mailing list