Displaying 1 result from an estimated 1 matches for "ast_strftim".
Did you mean:
ast_strftime
2013 Sep 14
1
Asterisk-1.8.23.1 mysql cdr
...st_tvnow();
struct ast_tm tm;
char timestr[128];
ast_localtime(&tv, &tm,
ast_str_strlen(cdrzone) ? ast_str_buffer(cdrzone) : NULL);
ast_strftime(timestr,
sizeof(timestr), "%Y-%m-%d %T", &tm);
ast_cdr_setvar(cdr, "calldate",
timestr, 0);
cdrname = "calldate";
} else {...