]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
up
authorAnthony Minessale <anthony.minessale@gmail.com>
Tue, 30 Sep 2008 18:20:38 +0000 (18:20 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Tue, 30 Sep 2008 18:20:38 +0000 (18:20 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9762 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/event_handlers/mod_cdr_csv/mod_cdr_csv.c

index eae59695de1a8018010f91cb890fd109c67533b9..cc3894749c7d5bbefb4df64a68ff249e90b2bc08 100644 (file)
@@ -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;