From 34598a346419f0e661526e6208dade4aff570008 Mon Sep 17 00:00:00 2001 From: Andreas Eversberg Date: Sat, 26 Feb 2011 16:49:21 +0000 Subject: [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. --- mISDN.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'mISDN.cpp') 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); -- cgit v1.2.3-55-g7522