dect
/
asterisk
Archived
13
0
Fork 0

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: http://svn.digium.com/svn/asterisk/trunk@63609 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
russell 2007-05-09 16:44:33 +00:00
parent 2e226250ea
commit 198a9ded2a
1 changed files with 1 additions and 1 deletions

View File

@ -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 */
}