From: Leif Madsen Date: Fri, 21 Jan 2011 16:12:54 +0000 (+0000) Subject: Fix changes to L() flag in Dial(). X-Git-Tag: 1.6.2.18-rc1~56 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=01dfc39eb46abf3f79c147c45bb5034d399d719a;p=thirdparty%2Fasterisk.git Fix changes to L() flag in Dial(). Tony Mountifield pointed out an error I had in my patch. I was a bit too aggressive on changing 'seconds' to 'milliseconds'. So I decided to do some additioanl testing and have no changed just the appropriate lines. One line says milliseconds, and the other says seconds. Probably should change this to be either just seconds or milliseconds, but I've spent too much time on this already :) (issue #18264) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@303273 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/apps/app_dial.c b/apps/app_dial.c index 5ff37ec837..5feb39762c 100644 --- a/apps/app_dial.c +++ b/apps/app_dial.c @@ -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 milliseconds.\n", + ast_verb(3, "Setting call duration limit to %.3lf seconds.\n", calldurationlimit->tv_sec + calldurationlimit->tv_usec / 1000000.0); config->timelimit = play_to_caller = play_to_callee = config->play_warning = config->warning_freq = 0;