From: cseket Date: Mon, 26 Apr 2010 06:59:07 +0000 (+0200) Subject: use force_process_cdr variable added in XML-17 X-Git-Tag: git2svn-syncpoint-master~196 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=750aa7e29beafed22b40745c66cc1f222a069bf6;p=thirdparty%2Ffreeswitch.git use force_process_cdr variable added in XML-17 --- diff --git a/src/mod/event_handlers/mod_json_cdr/mod_json_cdr.c b/src/mod/event_handlers/mod_json_cdr/mod_json_cdr.c index 31a635dda3..d2ecca4dcb 100644 --- a/src/mod/event_handlers/mod_json_cdr/mod_json_cdr.c +++ b/src/mod/event_handlers/mod_json_cdr/mod_json_cdr.c @@ -620,7 +620,10 @@ static switch_status_t my_on_reporting(switch_core_session_t *session) is_b = channel && switch_channel_get_originator_caller_profile(channel); if (!globals.log_b && is_b) { - return SWITCH_STATUS_SUCCESS; + const char *force_cdr = switch_channel_get_variable(channel, SWITCH_FORCE_PROCESS_CDR_VARIABLE); + if (!switch_true(force_cdr)) { + return SWITCH_STATUS_SUCCESS; + } } if (!is_b && globals.prefix_a) a_prefix = "a_";