aboutsummaryrefslogtreecommitdiffstats
path: root/channels
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2005-08-04 20:03:45 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2005-08-04 20:03:45 +0000
commitc3b78016ec29f36c8c615446ac4c6263f7e8ebb3 (patch)
treece89360c6695b1359cc916eff0d79ed6fc265e54 /channels
parent0bcbe96826e2f54f8bfd0d7e223e2401b9642376 (diff)
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: http://svn.digium.com/svn/asterisk/trunk@6279 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rwxr-xr-xchannels/chan_sip.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 020ebdcf6..802e497f8 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) {