Oops
authorMark Spencer <markster@digium.com>
Thu, 2 Dec 2004 23:53:17 +0000 (23:53 +0000)
committerMark Spencer <markster@digium.com>
Thu, 2 Dec 2004 23:53:17 +0000 (23:53 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4375 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 02bafe1..4220e82 100755 (executable)
@@ -9124,7 +9124,7 @@ static int sip_getheader(struct ast_channel *chan, void *data)
        }
 
        ast_mutex_lock(&chan->lock);
-       if (chan->type != type) {
+       if (chan->type != channeltype) {
                ast_log(LOG_WARNING, "Call this application only on incoming SIP calls\n");
                ast_mutex_unlock(&chan->lock);
                return 0;