pkgsrc-ng/comms/asterisk/patches/patch-apps_app__dial.c
2013-09-26 17:14:40 +02:00

20 lines
850 B
C

$NetBSD: patch-apps_app__dial.c,v 1.1 2012/12/11 08:22:48 jnemeth Exp $
--- apps/app_dial.c.orig 2012-08-29 18:32:35.000000000 +0000
+++ apps/app_dial.c
@@ -2003,12 +2003,12 @@ static void end_bridge_callback(void *da
ast_channel_lock(chan);
if (ast_channel_cdr(chan)->answer.tv_sec) {
- snprintf(buf, sizeof(buf), "%ld", (long) end - ast_channel_cdr(chan)->answer.tv_sec);
+ snprintf(buf, sizeof(buf), "%jd", (intmax_t) end - ast_channel_cdr(chan)->answer.tv_sec);
pbx_builtin_setvar_helper(chan, "ANSWEREDTIME", buf);
}
if (ast_channel_cdr(chan)->start.tv_sec) {
- snprintf(buf, sizeof(buf), "%ld", (long) end - ast_channel_cdr(chan)->start.tv_sec);
+ snprintf(buf, sizeof(buf), "%jd", (intmax_t) end - ast_channel_cdr(chan)->start.tv_sec);
pbx_builtin_setvar_helper(chan, "DIALEDTIME", buf);
}
ast_channel_unlock(chan);