diff options
author | markster <markster@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2005-09-29 13:56:45 +0000 |
---|---|---|
committer | markster <markster@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2005-09-29 13:56:45 +0000 |
commit | 50dec4578213d00813a4f951dce121590bfe7cd3 (patch) | |
tree | 4378ecf6223e4a3f04674214e846c0f5586b1439 | |
parent | 4f2415a627eb827d8ad6ec8e06f890957535ecaa (diff) |
Allow DTMF to be disabled on VPM...
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@784 5390a7c7-147a-4af0-8ec9-7488f05a26cb
-rwxr-xr-x | wct4xxp.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -174,6 +174,7 @@ static int loopback = 0; static int alarmdebounce = 0; #ifdef VPM_SUPPORT static int vpmsupport = 1; +static int vpmdtmfsupport = 1; static int vpmspans = 4; #define VPM_DEFAULT_DTMFTHRESHOLD 1000 static int dtmfthreshold = VPM_DEFAULT_DTMFTHRESHOLD; @@ -776,6 +777,8 @@ static int t4_ioctl(struct zt_chan *chan, unsigned int cmd, unsigned long data) return -EFAULT; if (!wc->vpm) return -ENOSYS; + if (j && !vpmdtmfsupport) + return -ENOSYS; if (j & ZT_TONEDETECT_ON) ts->dtmfmask |= (1 << (chan->chanpos - 1)); else @@ -2965,6 +2968,7 @@ module_param(alarmdebounce, int, 0600); module_param(j1mode, int, 0600); #ifdef VPM_SUPPORT module_param(vpmsupport, int, 0600); +module_param(vpmdtmfsupport, int, 0600); module_param(vpmspans, int, 0600); module_param(dtmfthreshold, int, 0600); #endif @@ -2980,6 +2984,7 @@ MODULE_PARM(alarmdebounce, "i"); MODULE_PARM(j1mode, "i"); #ifdef VPM_SUPPORT MODULE_PARM(vpmsupport, "i"); +MODULE_PARM(vpmdtmfsupport, "i"); MODULE_PARM(vpmspans, "i"); MODULE_PARM(dtmfthreshold, "i"); #endif |