]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Only call ast_senddigit_begin() in ast_senddigit() if the channel has a
authorRussell Bryant <russell@russellbryant.com>
Wed, 9 May 2007 16:43:50 +0000 (16:43 +0000)
committerRussell Bryant <russell@russellbryant.com>
Wed, 9 May 2007 16:43:50 +0000 (16:43 +0000)
send_digit_begin() callback.  Checking the END_DTMF_ONLY flag was the
wrong thing to do, because that flag indicates that a *bridged* channel
only wants DTMF END events coming from this channel.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@63608 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/channel.c

index 5c5b4899cf15c4d007fbbf09c2c0ed81bd854632..1fae15efba8fc44d0ef9ddffcfef188438010942 100644 (file)
@@ -2654,7 +2654,7 @@ int ast_senddigit_end(struct ast_channel *chan, char digit, unsigned int duratio
 
 int ast_senddigit(struct ast_channel *chan, char digit)
 {
-       if (!ast_test_flag(chan, AST_FLAG_END_DTMF_ONLY)) {
+       if (chan->tech->send_digit_begin) {
                ast_senddigit_begin(chan, digit);
                ast_safe_sleep(chan, 100); /* XXX 100ms ... probably should be configurable */
        }