diff options
author | Olle Johansson <oej@edvina.net> | 2006-11-07 13:26:31 +0000 |
---|---|---|
committer | Olle Johansson <oej@edvina.net> | 2006-11-07 13:26:31 +0000 |
commit | 20af2870d949d0684cd224206886d8599e4d433d (patch) | |
tree | 7d9b2a7702f0c29a2b91ae532edc5929fe1cb305 /channels | |
parent | 8e73644bb8edeba162f6316dca201b9e9e9443e1 (diff) |
issue #8265 - don't reply to ACK. Imported from 1.2, 1.4
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47252 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels')
-rw-r--r-- | channels/chan_sip.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 31821b4d1..2ec500e23 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -4399,10 +4399,10 @@ static struct sip_pvt *find_call(struct sip_request *req, struct sockaddr_in *si transmit_response_using_temp(callid, sin, 1, intended_method, req, "501 Method Not Implemented"); if (option_debug > 1 ) ast_log(LOG_DEBUG, "Got a request with unsupported SIP method.\n"); - } else if (intended_method != SIP_RESPONSE) { + } else if (intended_method != SIP_RESPONSE && intended_method != SIP_ACK) { /* This is a request outside of a dialog that we don't know about */ transmit_response_using_temp(callid, sin, 1, intended_method, req, "481 Call leg/transaction does not exist"); - if (option_debug > 1 && intended_method == SIP_RESPONSE) + if (option_debug > 1) ast_log(LOG_DEBUG, "That's odd... Got a request in unknown dialog. Callid %s\n", callid ? callid : "<unknown>"); } /* We do not respond to responses for dialogs that we don't know about, we just drop |