From: Leif Madsen Date: Thu, 20 Jan 2011 15:38:33 +0000 (+0000) Subject: Option L() is milliseconds, not seconds. X-Git-Tag: 1.4.41-rc1~39 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9f2050cc3dfad319ddff4a0ab91ab28f9286e271;p=thirdparty%2Fasterisk.git Option L() is milliseconds, not seconds. Change the verbose output of option L() to say milliseconds and not seconds as the value is in milliseconds. (closes issue #18264) Reported by: jacco Patches: app_dial_patch.txt uploaded by lmadsen (license 10) Tested by: lmadsen, jacco git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@302916 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/apps/app_dial.c b/apps/app_dial.c index a3a32999a1..8f77b9c4a9 100644 --- a/apps/app_dial.c +++ b/apps/app_dial.c @@ -1002,7 +1002,7 @@ static int dial_exec_full(struct ast_channel *chan, void *data, struct ast_flags goto done; } if (option_verbose > 2) - ast_verbose(VERBOSE_PREFIX_3 "Setting call duration limit to %d seconds.\n", calldurationlimit); + ast_verbose(VERBOSE_PREFIX_3 "Setting call duration limit to %d milliseconds.\n", calldurationlimit); } if (ast_test_flag(&opts, OPT_SENDDTMF) && !ast_strlen_zero(opt_args[OPT_ARG_SENDDTMF])) { @@ -1069,7 +1069,7 @@ static int dial_exec_full(struct ast_channel *chan, void *data, struct ast_flags if (!play_warning && !start_sound && !end_sound && timelimit) { calldurationlimit = timelimit / 1000; if (option_verbose > 2) - ast_verbose(VERBOSE_PREFIX_3 "Setting call duration limit to %d seconds.\n", calldurationlimit); + ast_verbose(VERBOSE_PREFIX_3 "Setting call duration limit to %d milliseconds.\n", calldurationlimit); timelimit = play_to_caller = play_to_callee = play_warning = warning_freq = 0; } else if (option_verbose > 2) { ast_verbose(VERBOSE_PREFIX_3 "Limit Data for this call:\n");