diff options
author | Mark Spencer <markster@digium.com> | 2003-05-30 04:41:18 +0000 |
---|---|---|
committer | Mark Spencer <markster@digium.com> | 2003-05-30 04:41:18 +0000 |
commit | 047bc4bd88b6b49d54a5b865042dc8396d052d5d (patch) | |
tree | ce152fc7452bf039617bdb5fd213d37645419c97 /cdr | |
parent | 11325940c85e2fff43607e1eb53aa7760b25ff51 (diff) |
Add unique identifier
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1064 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'cdr')
-rwxr-xr-x | cdr/cdr_csv.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/cdr/cdr_csv.c b/cdr/cdr_csv.c index 8031b4abe..4531aab59 100755 --- a/cdr/cdr_csv.c +++ b/cdr/cdr_csv.c @@ -27,6 +27,8 @@ #define DATE_FORMAT "%Y-%m-%d %T" +/* #define CSV_LOGUNIQUEID 1 */ + #include <stdio.h> #include <string.h> @@ -57,7 +59,7 @@ // "end time" minus "answer time" "disposition", // ANSWERED, NO ANSWER, BUSY "amaflags", // DOCUMENTATION, BILL, IGNORE etc, specified on a per channel basis like accountcode. - + "uniqueid", // unique call identifier */ static char *desc = "Comma Separated Values CDR Backend"; @@ -158,6 +160,10 @@ static int build_csv_record(char *buf, int len, struct ast_cdr *cdr) /* AMA Flags */ append_string(buf, ast_cdr_flags2str(cdr->amaflags), len); +#ifdef CSV_LOGUNIQUEID + /* Unique ID */ + append_string(buf, cdr->uniqueid, len); +#endif /* If we hit the end of our buffer, log an error */ if (strlen(buf) < len - 5) { /* Trim off trailing comma */ |