From: Joshua Colp Date: Mon, 8 Dec 2008 18:47:32 +0000 (+0000) Subject: Fix a regression introduced when the PBX timeouts were converted to milliseconds... X-Git-Tag: 1.6.2.0-beta1~700 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=db99faa00dead98ad7f52551777c610d8ccad703;p=thirdparty%2Fasterisk.git Fix a regression introduced when the PBX timeouts were converted to milliseconds. collect_digits now gets milliseconds fed to it, not seconds. (closes issue #14012) Reported by: dveiga Patches: 14012.patch uploaded by bkruse (license 132) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@161787 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/main/pbx.c b/main/pbx.c index 8aee9e3590..eaa0c20e9e 100644 --- a/main/pbx.c +++ b/main/pbx.c @@ -4116,7 +4116,7 @@ static int collect_digits(struct ast_channel *c, int waittime, char *buf, int bu while (ast_matchmore_extension(c, c->context, buf, 1, c->cid.cid_num)) { /* As long as we're willing to wait, and as long as it's not defined, keep reading digits until we can't possibly get a right answer anymore. */ - digit = ast_waitfordigit(c, waittime * 1000); + digit = ast_waitfordigit(c, waittime); if (c->_softhangup == AST_SOFTHANGUP_ASYNCGOTO) { c->_softhangup = 0; } else {