From 40578724929f14d85714b9a70eb96771b868ddde Mon Sep 17 00:00:00 2001 From: Moises Silva Date: Wed, 23 Jun 2010 12:29:47 -0400 Subject: [PATCH] freetdm: no need for hw dtmf events on startup --- libs/freetdm/src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/libs/freetdm/src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c b/libs/freetdm/src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c index 352d9b1534..539d411884 100644 --- a/libs/freetdm/src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c +++ b/libs/freetdm/src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c @@ -274,11 +274,8 @@ static unsigned wp_open_range(ftdm_span_t *span, unsigned spanno, unsigned start err = sangoma_tdm_get_hw_dtmf(chan->sockfd, &tdm_api); if (err > 0) { - err = sangoma_tdm_enable_dtmf_events(chan->sockfd, &tdm_api); - if (err == 0) { - ftdm_channel_set_feature(chan, FTDM_CHANNEL_FEATURE_DTMF_DETECT); - dtmf = "hardware"; - } + ftdm_channel_set_feature(chan, FTDM_CHANNEL_FEATURE_DTMF_DETECT); + dtmf = "hardware"; } }