Properly handle transfer of application (bug #911)
authorMark Spencer <markster@digium.com>
Sun, 25 Jan 2004 05:51:49 +0000 (05:51 +0000)
committerMark Spencer <markster@digium.com>
Sun, 25 Jan 2004 05:51:49 +0000 (05:51 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2066 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 7296c7d..a42b0f5 100755 (executable)
@@ -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;