diff options
author | oej <oej@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-05-24 14:41:43 +0000 |
---|---|---|
committer | oej <oej@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-05-24 14:41:43 +0000 |
commit | 65cd6cfe24291cbe1c38d2c2e44d965e92cb84cc (patch) | |
tree | 2ef234321bbf27d4a313749a99b180af5adb0fbd /channels | |
parent | 28320d58a2dac4f16a22ed57df6d2777cdde2535 (diff) |
Issue #8409 and accidentally a fix to chan_sip that wasn't supposed to be there
but is still ok... Sorry. Lack of Tea, really.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@65838 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r-- | channels/chan_sip.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 959244b5d..e17745a09 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -2096,7 +2096,14 @@ static int retrans_pkt(void *data) usleep(1); sip_pvt_lock(pkt->owner); } - if (pkt->owner->owner) { + if (pkt->method == SIP_BYE) { + /* Ok, we're not getting answers on SIP BYE's. Who cares? + let's take the call down anyway. */ + if (pkt->owner->owner) + ast_channel_unlock(pkt->owner->owner); + append_history(pkt->owner, "ByeFailure", "Remote peer doesn't respond to bye. Destroying call anyway."); + ast_set_flag(&pkt->owner->flags[0], SIP_NEEDDESTROY); + } if (pkt->owner->owner) { sip_alreadygone(pkt->owner); ast_log(LOG_WARNING, "Hanging up call %s - no reply to our critical packet.\n", pkt->owner->callid); ast_queue_hangup(pkt->owner->owner); |