summaryrefslogtreecommitdiff
path: root/channels
diff options
context:
space:
mode:
authorKevin P. Fleming <kpfleming@digium.com>2005-06-21 01:07:31 +0000
committerKevin P. Fleming <kpfleming@digium.com>2005-06-21 01:07:31 +0000
commit4e6d610317d975ddf12567efdf93b11907a23000 (patch)
tree600313a8c6fc07a24b356d95a78015e3fe47dae5 /channels
parente49ea06442d7c24651a41e074e5bf2c4d3a1bc4d (diff)
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
Diffstat (limited to 'channels')
-rwxr-xr-xchannels/chan_sip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 31391c4d2..6054b65fc 100755
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -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 */