diff options
author | Russell Bryant <russell@russellbryant.com> | 2007-07-20 18:28:15 +0000 |
---|---|---|
committer | Russell Bryant <russell@russellbryant.com> | 2007-07-20 18:28:15 +0000 |
commit | d5b4fde291a74f8004f45cb90f6307e849181684 (patch) | |
tree | 5a3b8c9c16b990a45f8988b8bd910037bb99fd7c /main | |
parent | 989b93143a3dc090e7040a460307ed9c940183e6 (diff) |
Merged revisions 76132 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r76132 | russell | 2007-07-20 13:22:24 -0500 (Fri, 20 Jul 2007) | 6 lines
Use the define that specifies the default length of an artificially created
DTMF digit in the ast_senddigit() function. The define is set to 100ms by
default, which is the same thing that this function was using. But, using
the define lets changes take effect in this case, as well as the others where
it was already used.
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@76138 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main')
-rw-r--r-- | main/channel.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/main/channel.c b/main/channel.c index 105dc030e..546fe6dbe 100644 --- a/main/channel.c +++ b/main/channel.c @@ -2643,10 +2643,10 @@ int ast_senddigit(struct ast_channel *chan, char digit) { if (chan->tech->send_digit_begin) { ast_senddigit_begin(chan, digit); - ast_safe_sleep(chan, 100); /* XXX 100ms ... probably should be configurable */ + ast_safe_sleep(chan, AST_DEFAULT_EMULATE_DTMF_DURATION); } - return ast_senddigit_end(chan, digit, 100); + return ast_senddigit_end(chan, digit, AST_DEFAULT_EMULATE_DTMF_DURATION); } int ast_prod(struct ast_channel *chan) |