aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_dial.c
diff options
context:
space:
mode:
authormmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b>2008-10-14 23:58:10 +0000
committermmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b>2008-10-14 23:58:10 +0000
commitee6dc54de83ceedecefeb8c193676f75cfb10064 (patch)
tree54c3f925ee3e5877464f0a37e3e34d08620f1721 /apps/app_dial.c
parent6e1ff20e264aea7b303fb0374f42d5d3a3f262b1 (diff)
Merged revisions 149279 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk ........ r149279 | mmichelson | 2008-10-14 18:57:46 -0500 (Tue, 14 Oct 2008) | 7 lines 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/branches/1.6.1@149280 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 df2dd5fe5..3fdbdb6f5 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) {