summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Spencer <markster@digium.com>2004-01-25 05:51:49 +0000
committerMark Spencer <markster@digium.com>2004-01-25 05:51:49 +0000
commit785da172314c7825eec23804bfc6b574b2306912 (patch)
tree26e608fd500eb0b63002b7e24a02a305a8dc2431
parenta9b3a77cdabecdf931518ae14ec566d59ea2ae08 (diff)
Properly handle transfer of application (bug #911)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2066 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-rwxr-xr-xchannels/chan_sip.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 7296c7d12..a42b0f563 100755
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -5400,6 +5400,8 @@ static int handle_request(struct sip_pvt *p, struct sip_request *req, struct soc
if (transfer_to) {
ast_moh_stop(transfer_to);
ast_async_goto(transfer_to,p->context, p->refer_to,1, 1);
+ } else {
+ ast_queue_hangup(p->owner, 0);
}
}
p->gotrefer = 1;