summaryrefslogtreecommitdiffstats
path: root/mISDN.cpp
diff options
context:
space:
mode:
authorAndreas Eversberg2011-02-26 17:49:21 +0100
committerAndreas Eversberg2011-02-26 17:49:21 +0100
commit34598a346419f0e661526e6208dade4aff570008 (patch)
tree182a626ad5834ae5f4f8315a4732d3cc6a0c504e /mISDN.cpp
parent[mail] Prevent bustling error message when sending mail without attachment (diff)
downloadlcr-34598a346419f0e661526e6208dade4aff570008.tar.gz
lcr-34598a346419f0e661526e6208dade4aff570008.tar.xz
lcr-34598a346419f0e661526e6208dade4aff570008.zip
[gsm] Make LCR work with current Osmocom-BB.
Osmocom-BB is still developed, and this only works with the jolly/voice branch. Audio is not yet transmitted, so it is not quite usefull yet.
Diffstat (limited to 'mISDN.cpp')
-rw-r--r--mISDN.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/mISDN.cpp b/mISDN.cpp
index 087963c..50746ec 100644
--- a/mISDN.cpp
+++ b/mISDN.cpp
@@ -1367,7 +1367,11 @@ void PmISDN::bchannel_receive(struct mISDNhead *hh, unsigned char *data, int len
if ((cont&(~DTMF_TONE_MASK)) == DTMF_TONE_VAL) {
chan_trace_header(p_m_mISDNport, this, "BCHANNEL control", DIRECTION_IN);
add_trace("DTMF", NULL, "%c", cont & DTMF_TONE_MASK);
+ if (!p_m_dtmf)
+ add_trace("info", NULL, "DTMF is disabled");
end_trace();
+ if (!p_m_dtmf)
+ return;
message = message_create(p_serial, ACTIVE_EPOINT(p_epointlist), PORT_TO_EPOINT, MESSAGE_DTMF);
message->param.dtmf = cont & DTMF_TONE_MASK;
PDEBUG(DEBUG_PORT, "PmISDN(%s) PH_CONTROL INDICATION DTMF digit '%c'\n", p_name, message->param.dtmf);