From 39dd02d542a6bd3c25904ede618cab89a8f600ae Mon Sep 17 00:00:00 2001 From: Russell Bryant Date: Wed, 9 May 2007 16:44:33 +0000 Subject: [PATCH] Merged revisions 63608 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r63608 | russell | 2007-05-09 11:43:50 -0500 (Wed, 09 May 2007) | 5 lines Only call ast_senddigit_begin() in ast_senddigit() if the channel has a 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/trunk@63609 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- main/channel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/channel.c b/main/channel.c index e480427934..7bba24d8b6 100644 --- a/main/channel.c +++ b/main/channel.c @@ -2614,7 +2614,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 */ }