Summary:ASTERISK-07987: WaitExten broken for sub-1-second times
Reporter:Mike Slemmer (mikeslemmer)Labels:
Date Opened:2006-10-23 20:47:53Date Closed:2006-10-24 23:59:14
Versions:Frequency of
Description:If you put in WaitExten(0.5) into the dialplan, it now waits for 10 seconds, which is the default when no argument is supplied. I'm assuming this is a problem converting floats to ints or some such. The problem is in pbx_builtin_waitexten

The following lines of code operate as a workaround for me for now, as I basically just make it assume that 0.5 seconds is the default time instead of 10s. In the below if statement, a timeout of 0.5 should cause the first if statement to be true, not the second one.:

       /* Wait for "n" seconds */
       if (args.timeout && (ms = atof(args.timeout)) > 0)
                ms *= 1000;
       else if (chan->pbx)
               ms = 500; /* KLUDGE */ //chan->pbx->rtimeout * 1000;
               ms = 10000;

Comments:By: Tilghman Lesher (tilghman) 2006-10-24 23:59:14

Fixed in 46165.