From: Martin Pycko Date: Fri, 14 Nov 2003 22:33:47 +0000 (+0000) Subject: Do the last thing the right way (thanks Mark) X-Git-Tag: 0.7.0~261 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6f9da41a6ce99e94e6bf0ed3d1e2314b1ec1d0fa;p=thirdparty%2Fasterisk.git Do the last thing the right way (thanks Mark) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1751 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 078aa70813..de0712aeb8 100755 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -6266,7 +6266,7 @@ static int sip_dtmfmode(struct ast_channel *chan, void *data) { struct sip_pvt *p = chan->pvt->pvt; char *mode; - if (strcasecmp(chan->name, "SIP")) { + if (chan->type != type) { ast_log(LOG_WARNING, "Call this application only on SIP incoming calls\n"); return 0; }