From c65f1a04ab9cb4ddabdcf582b9337264e113c14a Mon Sep 17 00:00:00 2001
From: Russell Bryant <russell@russellbryant.com>
Date: Thu, 4 Aug 2005 20:03:45 +0000
Subject: [PATCH] there is no reason to check the channeltype of the channel
 calling SIPAddHeader because it really only matters what the channeltype is
 of the *created* channel in the subsequent dial (bug #4896)

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

diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 020ebdcf63..802e497f84 100755
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -11313,11 +11313,6 @@ static int sip_addheader(struct ast_channel *chan, void *data)
 		return 0;
 	}
 	ast_mutex_lock(&chan->lock);
-	if (chan->type != channeltype) {
-		ast_log(LOG_WARNING, "Call this application only on incoming SIP calls\n");
-		ast_mutex_unlock(&chan->lock);
-		return 0;
-	}
 
 	/* Check for headers */
 	while (!ok && no <= 50) {
-- 
GitLab