Do the last thing the right way (thanks Mark)
authorMartin Pycko <martinp@digium.com>
Fri, 14 Nov 2003 22:33:47 +0000 (22:33 +0000)
committerMartin Pycko <martinp@digium.com>
Fri, 14 Nov 2003 22:33:47 +0000 (22:33 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1751 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 078aa70..de0712a 100755 (executable)
@@ -6266,7 +6266,7 @@ static int sip_dtmfmode(struct ast_channel *chan, void *data)
 {
        struct sip_pvt *p = chan->pvt->pvt;
        char *mode;
 {
        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;
        }
                ast_log(LOG_WARNING, "Call this application only on SIP incoming calls\n");
                return 0;
        }