summaryrefslogtreecommitdiffstats
path: root/bchannel.c
diff options
context:
space:
mode:
authorAndreas Eversberg2009-05-21 19:11:39 +0200
committerAndreas Eversberg2009-05-21 19:11:39 +0200
commit063d622d53ff5e7818ee75658ba8539016788941 (patch)
treece2f38302d349fa7658808c0889c269c5199fc24 /bchannel.c
parentOpenBSC API change. (diff)
downloadlcr-063d622d53ff5e7818ee75658ba8539016788941.tar.gz
lcr-063d622d53ff5e7818ee75658ba8539016788941.tar.xz
lcr-063d622d53ff5e7818ee75658ba8539016788941.zip
Fixed disabling of DTMF using 'n' option of chan_lcr.
Please enter the commit message for your changes. modified: README modified: apppbx.cpp modified: bchannel.c modified: chan_lcr.c modified: chan_lcr.h
Diffstat (limited to 'bchannel.c')
-rw-r--r--bchannel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bchannel.c b/bchannel.c
index 187409f..0cba9db 100644
--- a/bchannel.c
+++ b/bchannel.c
@@ -483,7 +483,7 @@ void bchannel_dtmf(struct bchannel *bchannel, int on)
int sock;
sock = bchannel->b_sock;
- bchannel->b_dtmf = 1;
+ bchannel->b_dtmf = on;
if (bchannel->b_state == BSTATE_ACTIVE && bchannel->b_mode == 0)
ph_control(sock, on?DTMF_TONE_START:DTMF_TONE_STOP, 0, "DSP-DTMF", 1, bchannel->b_mode);
}