dect
/
asterisk
Archived
13
0
Fork 0

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
This commit is contained in:
russell 2005-08-04 20:03:45 +00:00
parent 0bcbe96826
commit c3b78016ec
1 changed files with 0 additions and 5 deletions

View File

@ -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) {