]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Use the define that specifies the default length of an artificially created
authorRussell Bryant <russell@russellbryant.com>
Fri, 20 Jul 2007 18:22:24 +0000 (18:22 +0000)
committerRussell Bryant <russell@russellbryant.com>
Fri, 20 Jul 2007 18:22:24 +0000 (18:22 +0000)
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/branches/1.4@76132 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/channel.c

index 2853e0f55c99f7c94192b0d4ff3d7950e9b808e9..66ae848cb87a01e417ddcbbbf7060969ff8bccb4 100644 (file)
@@ -2710,10 +2710,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)