ensure that proper response code is return for unimplemented methods (bug #4512)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5949 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Kevin P. Fleming 2005-06-21 01:07:31 +00:00
parent e49ea06442
commit 4e6d610317
1 changed files with 1 additions and 1 deletions

View File

@ -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 */