From 099dae4b9910864e29d3b3b21c6e84ceaa0dac58 Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Mon, 4 Feb 2008 20:40:23 +0000 Subject: [PATCH] mark answered. git-svn-id: http://svn.openzap.org/svn/openzap/trunk@387 a93c3328-9c30-0410-af19-c9cd2b2d52af --- libs/openzap/mod_openzap/mod_openzap.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libs/openzap/mod_openzap/mod_openzap.c b/libs/openzap/mod_openzap/mod_openzap.c index 84baeaa284..db9cb1ee4e 100644 --- a/libs/openzap/mod_openzap/mod_openzap.c +++ b/libs/openzap/mod_openzap/mod_openzap.c @@ -1252,8 +1252,12 @@ static ZIO_SIGNAL_CB_FUNCTION(on_isdn_signal) case ZAP_SIGEVENT_UP: { if ((session = zap_channel_get_session(sigmsg->channel, 0))) { + zap_tone_type_t tt = ZAP_TONE_DTMF; channel = switch_core_session_get_channel(session); switch_channel_mark_answered(channel); + if (zap_channel_command(sigmsg->channel, ZAP_COMMAND_ENABLE_DTMF_DETECT, &tt) != ZAP_SUCCESS) { + zap_log(ZAP_LOG_ERROR, "TONE ERROR\n"); + } switch_core_session_rwunlock(session); } }