Modified: freeswitch/trunk/src/mod/event_handlers/mod_json_cdr/mod_json_cdr.c (17391 => 17392)
--- freeswitch/trunk/src/mod/event_handlers/mod_json_cdr/mod_json_cdr.c 2010-04-26 06:58:40 UTC (rev 17391)
+++ freeswitch/trunk/src/mod/event_handlers/mod_json_cdr/mod_json_cdr.c 2010-04-26 06:59:48 UTC (rev 17392)
@@ -620,7 +620,10 @@
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_";