ensure that proper response code is return for unimplemented methods (bug #4512)
authorKevin P. Fleming <kpfleming@digium.com>
Tue, 21 Jun 2005 01:07:31 +0000 (01:07 +0000)
committerKevin P. Fleming <kpfleming@digium.com>
Tue, 21 Jun 2005 01:07:31 +0000 (01:07 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5949 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 31391c4..6054b65 100755 (executable)
@@ -9407,7 +9407,7 @@ static int handle_request(struct sip_pvt *p, struct sip_request *req, struct soc
                        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 */