aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-07-20 18:22:24 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-07-20 18:22:24 +0000
commitb25f9ef64c96ddf33e0ba88fe39066b2c6115f39 (patch)
tree2d3e62a8c7c8d5541ddfc5df4cc02513c621485f /main
parent0c75e3aa197e57040608e21d795fa66455b2fa93 (diff)
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: http://svn.digium.com/svn/asterisk/branches/1.4@76132 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main')
-rw-r--r--main/channel.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/main/channel.c b/main/channel.c
index 2853e0f55..66ae848cb 100644
--- a/main/channel.c
+++ b/main/channel.c
@@ -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)