diff options
author | twilson <twilson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-11-20 18:23:03 +0000 |
---|---|---|
committer | twilson <twilson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-11-20 18:23:03 +0000 |
commit | 606eacbc0af62dda971c95fb793b29613ee2d99c (patch) | |
tree | 6fb743bf678930fea7978feaa2b21239c7ee1ccf /cdr/cdr_manager.c | |
parent | 319c28addab3857ac3e71bd8eee0576e4ad6fea4 (diff) |
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: http://svn.digium.com/svn/asterisk/branches/1.6.1@158135 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'cdr/cdr_manager.c')
-rw-r--r-- | cdr/cdr_manager.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/cdr/cdr_manager.c b/cdr/cdr_manager.c index 8b2ab215d..7a768632c 100644 --- a/cdr/cdr_manager.c +++ b/cdr/cdr_manager.c @@ -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); |