aboutsummaryrefslogtreecommitdiffstats
path: root/channels
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2008-06-16 12:10:50 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2008-06-16 12:10:50 +0000
commit1f273c49809a3c821b1cf872b8d5cbb0ba2f9f80 (patch)
tree316342ea281e8972a4700fc73c10d72269ac388d /channels
parentaa2194e7a2ff42c35fb9e2288d93d97387be46cb (diff)
Merged revisions 122870 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk ................ r122870 | file | 2008-06-16 09:09:54 -0300 (Mon, 16 Jun 2008) | 14 lines Merged revisions 122869 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r122869 | file | 2008-06-16 09:08:28 -0300 (Mon, 16 Jun 2008) | 6 lines Don't send a BYE on a dialog that is already gone during a REFER. (closes issue #12865) Reported by: flefoll Patches: chan_sip.c.br14.121495.patch-ALREADYGONE uploaded by flefoll (license 244) ........ ................ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.0@122871 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r--channels/chan_sip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 54d9cba2a..0e5f6889b 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -2893,7 +2893,7 @@ static int __sip_autodestruct(const void *data)
ast_log(LOG_WARNING, "Autodestruct on dialog '%s' with owner in place (Method: %s)\n", p->callid, sip_methods[p->method].text);
ast_queue_hangup(p->owner);
dialog_unref(p);
- } else if (p->refer) {
+ } else if (p->refer && !p->alreadygone) {
ast_debug(3, "Finally hanging up channel after transfer: %s\n", p->callid);
transmit_request_with_auth(p, SIP_BYE, 0, XMIT_RELIABLE, 1);
append_history(p, "ReferBYE", "Sending BYE on transferer call leg %s", p->callid);