]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Option L() is milliseconds, not seconds.
authorLeif Madsen <leif@leifmadsen.com>
Thu, 20 Jan 2011 15:42:05 +0000 (15:42 +0000)
committerLeif Madsen <leif@leifmadsen.com>
Thu, 20 Jan 2011 15:42:05 +0000 (15:42 +0000)
> 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)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@302917 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_dial.c

index e05a8871370985bafd132c26161eac6900c0dd81..5ff37ec8378dbcc41c00708d4be855d7db49e58d 100644 (file)
@@ -1239,7 +1239,7 @@ static int do_timelimit(struct ast_channel *chan, struct ast_bridge_config *conf
        if (!config->play_warning && !config->start_sound && !config->end_sound && config->timelimit) {
                calldurationlimit->tv_sec = config->timelimit / 1000;
                calldurationlimit->tv_usec = (config->timelimit % 1000) * 1000;
-               ast_verb(3, "Setting call duration limit to %.3lf seconds.\n",
+               ast_verb(3, "Setting call duration limit to %.3lf milliseconds.\n",
                        calldurationlimit->tv_sec + calldurationlimit->tv_usec / 1000000.0);
                config->timelimit = play_to_caller = play_to_callee =
                config->play_warning = config->warning_freq = 0;
@@ -1614,7 +1614,7 @@ static int dial_exec_full(struct ast_channel *chan, void *data, struct ast_flags
                        pbx_builtin_setvar_helper(chan, "DIALSTATUS", pa.status);
                        goto done;
                }
-               ast_verb(3, "Setting call duration limit to %.3lf seconds.\n", calldurationlimit.tv_sec + calldurationlimit.tv_usec / 1000000.0);
+               ast_verb(3, "Setting call duration limit to %.3lf milliseconds.\n", calldurationlimit.tv_sec + calldurationlimit.tv_usec / 1000000.0);
        }
 
        if (ast_test_flag64(&opts, OPT_SENDDTMF) && !ast_strlen_zero(opt_args[OPT_ARG_SENDDTMF])) {