From: Kevin P. Fleming Date: Sun, 29 Jan 2006 05:29:29 +0000 (+0000) Subject: don't use tone generation for DTMF if the channel driver only supports begin/end... X-Git-Tag: 1.4.0-beta1~2761 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f8b6a4db9881f45043aaa346e98286dda6abe245;p=thirdparty%2Fasterisk.git don't use tone generation for DTMF if the channel driver only supports begin/end (will need more work to translate non-variable events into begin/end events) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8852 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channel.c b/channel.c index c961f575c7..501baa8214 100644 --- a/channel.c +++ b/channel.c @@ -2184,7 +2184,8 @@ static int do_senddigit(struct ast_channel *chan, char digit) if (chan->tech->send_digit) res = chan->tech->send_digit(chan, digit); - if (!chan->tech->send_digit || res) { + if (!(chan->tech->send_digit && chan->tech->send_digit_begin) || + res) { /* * Device does not support DTMF tones, lets fake * it by doing our own generation. (PM2002)