]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
commenting this out completely until a better solution is implemented. also FYI...
authorAnthony Minessale <anthm@freeswitch.org>
Fri, 3 Feb 2012 21:23:46 +0000 (15:23 -0600)
committerAnthony Minessale <anthm@freeswitch.org>
Fri, 3 Feb 2012 21:23:46 +0000 (15:23 -0600)
libs/freetdm/.update
libs/freetdm/src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c

index e9475b68ed8666fe4d30bb71cff8af632f28ba6b..b537cc4f2d1d82dbfa3e2e6fa8a3767d917af6ff 100644 (file)
@@ -1 +1 @@
-Fri Oct  3 17:54:41 EDT 2008
+Fri Feb  3 11:55:29 PST 2012
index e4367b8f707fa01fe6d3e650f063c2e2b9ebc3bb..3c53b0edbc9436f9286839167198fd582982896b 100644 (file)
@@ -1476,26 +1476,20 @@ static __inline__ ftdm_status_t wanpipe_channel_process_event(ftdm_channel_t *fc
 
                        if (tdm_api->wp_tdm_cmd.event.wp_tdm_api_event_dtmf_type == WAN_EC_TONE_PRESENT) {
                                ftdm_set_flag(fchan, FTDM_CHANNEL_MUTE);
-                               if (fchan->dtmfdetect.duration_ms) {
-                                       fchan->dtmfdetect.start_time = ftdm_current_time_in_ms();
-                               }
+                               //fchan->dtmfdetect.start_time = ftdm_current_time_in_ms();
                        }
 
                        if (tdm_api->wp_tdm_cmd.event.wp_tdm_api_event_dtmf_type == WAN_EC_TONE_STOP) {
                                ftdm_clear_flag(fchan, FTDM_CHANNEL_MUTE);
                                if (ftdm_test_flag(fchan, FTDM_CHANNEL_INUSE)) {
-                                       if (!fchan->dtmfdetect.duration_ms) {
-                                               /* Do not check if DTMF duration if min DTMF duration is 0 */
+                                       //ftdm_time_t diff = ftdm_current_time_in_ms() - fchan->dtmfdetect.start_time;
+                                       //if (diff > fchan->dtmfdetect.duration_ms) {
+                                       //ftdm_log_chan(fchan, FTDM_LOG_DEBUG, "Queuing wanpipe DTMF: %c (duration:%d min:%d)\n", tmp_dtmf[0], diff, fchan->dtmfdetect.duration_ms);
+                                       ftdm_log_chan(fchan, FTDM_LOG_DEBUG, "Queuing wanpipe DTMF: %c\n", tmp_dtmf[0]);
                                                ftdm_channel_queue_dtmf(fchan, tmp_dtmf);
-                                       } else {
-                                               ftdm_time_t diff = ftdm_current_time_in_ms() - fchan->dtmfdetect.start_time;
-                                               if (diff > fchan->dtmfdetect.duration_ms) {
-                                                       ftdm_log_chan(fchan, FTDM_LOG_DEBUG, "Queuing wanpipe DTMF: %c (duration:%d min:%d)\n", tmp_dtmf[0], diff, fchan->dtmfdetect.duration_ms);
-                                                       ftdm_channel_queue_dtmf(fchan, tmp_dtmf);
-                                               } else {
-                                                       ftdm_log_chan(fchan, FTDM_LOG_DEBUG, "Ignoring wanpipe DTMF: %c (duration:%d min:%d)\n", tmp_dtmf[0], diff, fchan->dtmfdetect.duration_ms);
-                                               }
-                                       }
+                                               //} else {
+                                               //ftdm_log_chan(fchan, FTDM_LOG_DEBUG, "Ignoring wanpipe DTMF: %c (duration:%d min:%d)\n", tmp_dtmf[0], diff, fchan->dtmfdetect.duration_ms);
+                                               //}
                                }
                        } 
                }