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

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

apps/app_dial.c

index a3a32999a1975447e33d64e5af71b7853477d372..8f77b9c4a9711c4566f98245696012283772ff65 100644 (file)
@@ -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");