Merged revisions 158072 via svnmerge from

https://origsvn.digium.com/svn/asterisk/trunk

........
  r158072 | twilson | 2008-11-20 11:48:58 -0600 (Thu, 20 Nov 2008) | 2 lines
  
  Begin on a crusade to end trailing whitespace!
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@158135 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Terry Wilson
2008-11-20 18:23:03 +00:00
parent a76dd11ef2
commit d0c238a8f8
10 changed files with 62 additions and 62 deletions

View File

@@ -17,7 +17,7 @@
/*! \file
*
* \brief Asterisk Call Manager CDR records.
*
*
* See also
* \arg \ref AstCDR
* \arg \ref AstAMI
@@ -75,14 +75,14 @@ static int load_config(int reload)
enablecdr = 0;
return 0;
}
while ( (cat = ast_category_browse(cfg, cat)) ) {
if (!strcasecmp(cat, "general")) {
v = ast_variable_browse(cfg, cat);
while (v) {
if (!strcasecmp(v->name, "enabled"))
newenablecdr = ast_true(v->value);
v = v->next;
}
} else if (!strcasecmp(cat, "mappings")) {
@@ -97,13 +97,13 @@ static int load_config(int reload)
ast_log(LOG_WARNING, "No more buffer space to add other custom fields\n");
break;
}
}
v = v->next;
}
}
}
ast_config_destroy(cfg);
if (enablecdr && !newenablecdr)
@@ -129,7 +129,7 @@ static int manager_log(struct ast_cdr *cdr)
ast_localtime(&cdr->start, &timeresult, NULL);
ast_strftime(strStartTime, sizeof(strStartTime), DATE_FORMAT, &timeresult);
if (cdr->answer.tv_sec) {
ast_localtime(&cdr->answer, &timeresult, NULL);
ast_strftime(strAnswerTime, sizeof(strAnswerTime), DATE_FORMAT, &timeresult);