A little oops ...

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1749 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Martin Pycko
2003-11-14 17:57:26 +00:00
parent 6f6ff1a673
commit 265d0a060c

View File

@@ -6272,11 +6272,11 @@ static int sip_dtmfmode(struct ast_channel *chan, void *data)
ast_log(LOG_WARNING, "This application requires the argument: info, inband, rfc2833\n"); ast_log(LOG_WARNING, "This application requires the argument: info, inband, rfc2833\n");
return 0; return 0;
} }
if (strcasecmp(mode,"info")) if (!strcasecmp(mode,"info"))
p->dtmfmode = SIP_DTMF_INFO; p->dtmfmode = SIP_DTMF_INFO;
else if (strcasecmp(mode,"rfc2833")) else if (!strcasecmp(mode,"rfc2833"))
p->dtmfmode = SIP_DTMF_RFC2833; p->dtmfmode = SIP_DTMF_RFC2833;
else if (strcasecmp(mode,"inband")) else if (!strcasecmp(mode,"inband"))
p->dtmfmode = SIP_DTMF_INBAND; p->dtmfmode = SIP_DTMF_INBAND;
else else
ast_log(LOG_WARNING, "I don't know about this dtmf mode: %s\n",mode); ast_log(LOG_WARNING, "I don't know about this dtmf mode: %s\n",mode);