From a49b6591f52da7f9f2d5f1845ad3e81a3b056d0b Mon Sep 17 00:00:00 2001
From: Mark Michelson <mmichelson@digium.com>
Date: Tue, 25 Mar 2008 15:44:01 +0000
Subject: [PATCH] Oops here too. I need to stop coding for a while...

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@110639 65c4cc65-6c06-0410-ace0-fbb531ad65f3
---
 channels/chan_sip.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index ba8fbd9b23..ffca4208b2 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -17288,9 +17288,6 @@ 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
-- 
GitLab