]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
i guess idsn calls want dtmf too
authorAnthony Minessale <anthony.minessale@gmail.com>
Fri, 25 Jan 2008 23:54:26 +0000 (23:54 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Fri, 25 Jan 2008 23:54:26 +0000 (23:54 +0000)
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@373 a93c3328-9c30-0410-af19-c9cd2b2d52af

libs/freetdm/mod_openzap/mod_openzap.c

index ceabd3c5473d7d9ffc751115fae8defd86cad6f8..c595e086b11abc1106a79ba24c78f8b4d4b1e5e4 100644 (file)
@@ -1248,6 +1248,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;
+                               
+                               if (zap_channel_command(sigmsg->channel, ZAP_COMMAND_ENABLE_DTMF_DETECT, &tt) != ZAP_SUCCESS) {
+                                       zap_log(ZAP_LOG_ERROR, "TONE ERROR\n");
+                               }
+
                                channel = switch_core_session_get_channel(session);
                                switch_channel_mark_answered(channel);
                                switch_core_session_rwunlock(session);