]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
possible fix for WANPIPE-5
authorAnthony Minessale <anthony.minessale@gmail.com>
Tue, 1 Sep 2009 19:13:47 +0000 (19:13 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Tue, 1 Sep 2009 19:13:47 +0000 (19:13 +0000)
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@817 a93c3328-9c30-0410-af19-c9cd2b2d52af

libs/openzap/src/ozmod/ozmod_wanpipe/ozmod_wanpipe.c

index cb9f28f971349068a5ee468bc1fe1054a380b1cb..afabfb0a0f478818e0fdcbd2187f77181ac6c653 100644 (file)
@@ -973,7 +973,12 @@ ZIO_SPAN_NEXT_EVENT_FUNCTION(wanpipe_next_event)
                                        event_id = ZAP_OOB_NOOP;
 
                                        //zap_log(ZAP_LOG_DEBUG, "%d:%d queue hardware dtmf %s\n", zchan->span_id, zchan->chan_id, tmp_dtmf);
+                    if (tdm_api.wp_tdm_cmd.event.wp_tdm_api_event_dtmf_type == WAN_EC_TONE_PRESENT) {
+                                               zap_set_flag_locked(zchan, ZAP_CHANNEL_MUTE);
+                                       }
+
                     if (tdm_api.wp_tdm_cmd.event.wp_tdm_api_event_dtmf_type == WAN_EC_TONE_STOP) {
+                                               zap_clear_flag_locked(zchan, ZAP_CHANNEL_MUTE);
                         zap_channel_queue_dtmf(zchan, tmp_dtmf);
                     } 
                 }