diff options
author | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-06-18 16:06:17 +0000 |
---|---|---|
committer | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-06-18 16:06:17 +0000 |
commit | da301d3b74fe7ace7a776f8af7bf48b87c837815 (patch) | |
tree | 9bd63f467f888a60056457cff446772ce92942f9 /channels/chan_sip.c | |
parent | ffd70d59c72352dc6aa7705b7e2350b34115641c (diff) |
Merged revisions 69668 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r69668 | file | 2007-06-18 12:04:55 -0400 (Mon, 18 Jun 2007) | 2 lines
Don't defer the BYE till later on a transfer when the transfer itself goes kaboom and has no hope of working.
........
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@69672 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_sip.c')
-rw-r--r-- | channels/chan_sip.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 7cff8fbda..69a5fbfe0 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -14581,14 +14581,16 @@ static int local_attended_transfer(struct sip_pvt *transferer, struct sip_dual * sip_pvt_unlock(targetcall_pvt); if (res) { /* Failed transfer */ - /* Could find better message, but they will get the point */ - transmit_notify_with_sipfrag(transferer, seqno, "486 Busy", TRUE); + transmit_notify_with_sipfrag(transferer, seqno, "486 Busy Here", TRUE); append_history(transferer, "Xfer", "Refer failed"); + transferer->refer->status = REFER_FAILED; if (targetcall_pvt->owner) ast_channel_unlock(targetcall_pvt->owner); /* Right now, we have to hangup, sorry. Bridge is destroyed */ if (res != -2) ast_hangup(transferer->owner); + else + ast_clear_flag(&transferer->flags[0], SIP_DEFER_BYE_ON_TRANSFER); } else { /* Transfer succeeded! */ |