dect
/
asterisk
Archived
13
0
Fork 0

ensure proper variables are returned from CDR function (bug #4521)

git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5916 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
kpfleming 2005-06-15 15:01:40 +00:00
parent f738eaa7fe
commit 09f5c8d4e6
1 changed files with 2 additions and 2 deletions

4
cdr.c
View File

@ -203,13 +203,13 @@ void ast_cdr_getvar(struct ast_cdr *cdr, const char *name, char **ret, char *wor
strftime(workspace, workspacelen, fmt, &tm);
}
} else if (!strcasecmp(name, "answer")) {
t = cdr->start.tv_sec;
t = cdr->answer.tv_sec;
if (t) {
localtime_r(&t, &tm);
strftime(workspace, workspacelen, fmt, &tm);
}
} else if (!strcasecmp(name, "end")) {
t = cdr->start.tv_sec;
t = cdr->end.tv_sec;
if (t) {
localtime_r(&t, &tm);
strftime(workspace, workspacelen, fmt, &tm);