[Asterisk-cvs] asterisk/channels chan_sip.c,1.244,1.245
martinp at lists.digium.com
martinp at lists.digium.com
Fri Nov 14 15:32:39 CST 2003
Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv2603/channels
Modified Files:
chan_sip.c
Log Message:
Don't allow to run SIPDtmfMode on other channels than SIP ones.
Index: chan_sip.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_sip.c,v
retrieving revision 1.244
retrieving revision 1.245
diff -u -d -r1.244 -r1.245
--- chan_sip.c 14 Nov 2003 17:57:26 -0000 1.244
+++ chan_sip.c 14 Nov 2003 21:58:54 -0000 1.245
@@ -6266,6 +6266,10 @@
{
struct sip_pvt *p = chan->pvt->pvt;
char *mode;
+ if (strcasecmp(chan->name, "SIP")) {
+ ast_log(LOG_WARNING, "Call this application only on SIP incoming calls\n");
+ return 0;
+ }
if (data)
mode = (char *)data;
else {
More information about the svn-commits
mailing list