diff options
author | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-01-29 05:29:29 +0000 |
---|---|---|
committer | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-01-29 05:29:29 +0000 |
commit | 666c469664803f6b58e7e2e4e785b71119206c74 (patch) | |
tree | 9052704cffbb7e2216b7fe5280228bec09d2f5dc /channel.c | |
parent | 9c36c7330fb7c12c8e829afac420fe883de5e3b1 (diff) |
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: http://svn.digium.com/svn/asterisk/trunk@8852 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channel.c')
-rw-r--r-- | channel.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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) |