mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-03 03:20:57 +00:00
Modify TIMEOUT() to be accurate down to the millisecond.
(closes issue #10540) Reported by: spendergrass Patches: 20080417__bug10540.diff.txt uploaded by Corydon76 (license 14) Tested by: blitzrage git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@115076 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -121,10 +121,10 @@ static int readexten_exec(struct ast_channel *chan, void *data)
|
||||
}
|
||||
|
||||
if (timeout <= 0)
|
||||
timeout = chan->pbx ? chan->pbx->rtimeout * 1000 : 10000;
|
||||
timeout = chan->pbx ? chan->pbx->rtimeoutms : 10000;
|
||||
|
||||
if (digit_timeout <= 0)
|
||||
digit_timeout = chan->pbx ? chan->pbx->dtimeout * 1000 : 5000;
|
||||
digit_timeout = chan->pbx ? chan->pbx->dtimeoutms : 5000;
|
||||
|
||||
if (ast_test_flag(&flags, OPT_INDICATION) && !ast_strlen_zero(arglist.filename))
|
||||
ts = ast_get_indication_tone(chan->zone, arglist.filename);
|
||||
|
Reference in New Issue
Block a user