git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@46165
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
static int pbx_builtin_waitexten(struct ast_channel *chan, void *data)
{
int ms, res;
+ double sec;
struct ast_flags flags = {0};
char *opts[1] = { NULL };
char *parse;
ast_indicate_data(chan, AST_CONTROL_HOLD, opts[0], strlen(opts[0]));
/* Wait for "n" seconds */
- if (args.timeout && (ms = atof(args.timeout)) > 0)
- ms *= 1000;
+ if (args.timeout && (sec = atof(args.timeout)) > 0.0)
+ ms = 1000 * sec;
else if (chan->pbx)
ms = chan->pbx->rtimeout * 1000;
else