summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Spencer <markster@digium.com>2006-05-08 14:45:18 +0000
committerMark Spencer <markster@digium.com>2006-05-08 14:45:18 +0000
commit4d73c80fa1660f4aea74a9c6b4df79a857c5ec42 (patch)
tree4f66d47644fb676df8ddf5978c64587f984279db
parentb4b36d6b83b7fa6b962aa89264929ec14fa5ddf9 (diff)
Minor cleanup on dtmf calling (bug #7076)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@25567 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-rw-r--r--channel.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/channel.c b/channel.c
index 81af67100..800ad847d 100644
--- a/channel.c
+++ b/channel.c
@@ -2186,8 +2186,7 @@ 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 && chan->tech->send_digit_begin) ||
- res) {
+ if (res) {
/*
* Device does not support DTMF tones, lets fake
* it by doing our own generation. (PM2002)