]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
When reverting a commit, I accidentally left in this bit which was an experiment
authorMark Michelson <mmichelson@digium.com>
Tue, 25 Mar 2008 15:40:33 +0000 (15:40 +0000)
committerMark Michelson <mmichelson@digium.com>
Tue, 25 Mar 2008 15:40:33 +0000 (15:40 +0000)
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/branches/1.4@110635 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 37056cec18d29d63ffc9597019128f0efe42a5a9..46a6cbb2fe8b73ebb69aedf340e48a9cab858785 100644 (file)
@@ -14655,7 +14655,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
                sip_scheddestroy(p, DEFAULT_TRANS_TIMEOUT);
        if (p->initreq.len > 0) {
                transmit_response_reliable(p, "487 Request Terminated", &p->initreq);