diff options
author | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-06-21 01:07:31 +0000 |
---|---|---|
committer | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-06-21 01:07:31 +0000 |
commit | b10a02101a8f084691e8fb8b7a104afe78c55eb1 (patch) | |
tree | 600313a8c6fc07a24b356d95a78015e3fe47dae5 | |
parent | 998ed385498c30a7604bbc013c8967b106acf89c (diff) |
ensure that proper response code is return for unimplemented methods (bug #4512)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5949 f38db490-d61c-443f-a65b-d21fe96a405b
-rwxr-xr-x | channels/chan_sip.c | 2 |
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 */ |