From: Anthony Minessale Date: Tue, 30 Sep 2008 18:20:38 +0000 (+0000) Subject: up X-Git-Tag: v1.0.2~1027 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4a05f147660c62f633dcb8c7a08662e7652c4a16;p=thirdparty%2Ffreeswitch.git up git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9762 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/mod/event_handlers/mod_cdr_csv/mod_cdr_csv.c b/src/mod/event_handlers/mod_cdr_csv/mod_cdr_csv.c index eae59695de..cc3894749c 100644 --- a/src/mod/event_handlers/mod_cdr_csv/mod_cdr_csv.c +++ b/src/mod/event_handlers/mod_cdr_csv/mod_cdr_csv.c @@ -215,6 +215,10 @@ static switch_status_t my_on_hangup(switch_core_session_t *session) if ((accountcode = switch_channel_get_variable(channel, "ACCOUNTCODE"))) { a_template_str = (const char *) switch_core_hash_find(globals.template_hash, accountcode); } + + if (!g_template_str) { + g_template_str = "\"${accountcode}\",\"${caller_id_number}\",\"${destination_number}\",\"${context}\",\"${caller_id}\",\"${channel_name}\",\"${bridge_channel}\",\"${last_app}\",\"${last_arg}\",\"${start_stamp}\",\"${answer_stamp}\",\"${end_stamp}\",\"${duration}\",\"${billsec}\",\"${hangup_cause}\",\"${amaflags}\",\"${uuid}\",\"${userfield}\";"; + } if (!a_template_str) { a_template_str = g_template_str;