aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_dial.c
diff options
context:
space:
mode:
authormmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b>2008-10-14 23:57:46 +0000
committermmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b>2008-10-14 23:57:46 +0000
commitb283e447cf2d7512c8ee2c00cdac5273b2e2fd85 (patch)
tree6647bd3e8e3d53ae32ead7d60c14155d5cf38e86 /apps/app_dial.c
parent116a8b34cb6b8c4296f0b310f49dd06ac90de222 (diff)
When specifying an invalid timeout to Dial, take it
to mean that no timeout is desired. (closes issue #13625) Reported by: atis git-svn-id: http://svn.digium.com/svn/asterisk/trunk@149279 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_dial.c')
-rw-r--r--apps/app_dial.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/app_dial.c b/apps/app_dial.c
index b26f9ddd2..bf995d898 100644
--- a/apps/app_dial.c
+++ b/apps/app_dial.c
@@ -1589,8 +1589,10 @@ static int dial_exec_full(struct ast_channel *chan, void *data, struct ast_flags
to = atoi(args.timeout);
if (to > 0)
to *= 1000;
- else
- ast_log(LOG_WARNING, "Invalid timeout specified: '%s'\n", args.timeout);
+ else {
+ ast_log(LOG_WARNING, "Invalid timeout specified: '%s'. Setting timeout to infinite\n", args.timeout);
+ to = -1;
+ }
}
if (!outgoing) {