freetdm: ignore fax events for now
This commit is contained in:
parent
a4f1cbe5f4
commit
268bbf093a
|
@ -1166,6 +1166,11 @@ FIO_SPAN_NEXT_EVENT_FUNCTION(wanpipe_next_event)
|
||||||
char tmp_dtmf[2] = { tdm_api.wp_tdm_cmd.event.wp_tdm_api_event_dtmf_digit, 0 };
|
char tmp_dtmf[2] = { tdm_api.wp_tdm_cmd.event.wp_tdm_api_event_dtmf_digit, 0 };
|
||||||
event_id = FTDM_OOB_NOOP;
|
event_id = FTDM_OOB_NOOP;
|
||||||
|
|
||||||
|
if (tmp_dtmf[0] == 'f') {
|
||||||
|
ftdm_log_chan(ftdmchan, FTDM_LOG_DEBUG, "Ignoring wanpipe DTMF: %c, fax tones will be passed through!\n", tmp_dtmf[0]);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
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_locked(ftdmchan, FTDM_CHANNEL_MUTE);
|
ftdm_set_flag_locked(ftdmchan, FTDM_CHANNEL_MUTE);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue