mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-14 08:31:02 +00:00
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: https://origsvn.digium.com/svn/asterisk/trunk@65838 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user