提交 1015883e authored 作者: Anthony Minessale's avatar Anthony Minessale

commenting this out completely until a better solution is implemented. also FYI…

commenting this out completely until a better solution is implemented.  also FYI you should be refreshing .update on each commit that changes the lib or any of its mods to force a rebuild from the top level
上级 2ea5686e
Fri Oct 3 17:54:41 EDT 2008 Fri Feb 3 11:55:29 PST 2012
...@@ -1476,26 +1476,20 @@ static __inline__ ftdm_status_t wanpipe_channel_process_event(ftdm_channel_t *fc ...@@ -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) { if (tdm_api->wp_tdm_cmd.event.wp_tdm_api_event_dtmf_type == WAN_EC_TONE_PRESENT) {
ftdm_set_flag(fchan, FTDM_CHANNEL_MUTE); 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) { if (tdm_api->wp_tdm_cmd.event.wp_tdm_api_event_dtmf_type == WAN_EC_TONE_STOP) {
ftdm_clear_flag(fchan, FTDM_CHANNEL_MUTE); ftdm_clear_flag(fchan, FTDM_CHANNEL_MUTE);
if (ftdm_test_flag(fchan, FTDM_CHANNEL_INUSE)) { if (ftdm_test_flag(fchan, FTDM_CHANNEL_INUSE)) {
if (!fchan->dtmfdetect.duration_ms) { //ftdm_time_t diff = ftdm_current_time_in_ms() - fchan->dtmfdetect.start_time;
/* Do not check if DTMF duration if min DTMF duration is 0 */ //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); ftdm_channel_queue_dtmf(fchan, tmp_dtmf);
} else { //} else {
ftdm_time_t diff = ftdm_current_time_in_ms() - fchan->dtmfdetect.start_time; //ftdm_log_chan(fchan, FTDM_LOG_DEBUG, "Ignoring wanpipe DTMF: %c (duration:%d min:%d)\n", tmp_dtmf[0], diff, fchan->dtmfdetect.duration_ms);
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);
}
}
} }
} }
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论