Merged revisions 110635 via svnmerge from
authorMark Michelson <mmichelson@digium.com>
Tue, 25 Mar 2008 15:41:33 +0000 (15:41 +0000)
committerMark Michelson <mmichelson@digium.com>
Tue, 25 Mar 2008 15:41:33 +0000 (15:41 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r110635 | mmichelson | 2008-03-25 10:40:33 -0500 (Tue, 25 Mar 2008) | 7 lines

When reverting a commit, I accidentally left in this bit which was an experiment
to see what would happen. It passed the compile test, and I didn't notice I had
left this change in too.

So this is a revert of a revert...sort of.

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@110636 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 1281752..ba8fbd9 100644 (file)
@@ -17288,7 +17288,9 @@ static int handle_request_cancel(struct sip_pvt *p, struct sip_request *req)
                update_call_counter(p, DEC_CALL_LIMIT);
 
        stop_media_flows(p); /* Immediately stop RTP, VRTP and UDPTL as applicable */
-
+       if (p->owner)
+               ast_queue_hangup(p->owner);
+       else
        if (p->owner)
                ast_queue_hangup(p->owner);
        else