mod_xml_cdr: add force_process_cdr var to process b leg cdr on a case by case basis when b leg cdr is disabled (XML-17)

This commit is contained in:
Michael Jerris
2010-04-24 17:48:59 -04:00
parent cac7d55580
commit b1f9dc416d
2 changed files with 5 additions and 1 deletions
+4 -1
View File
@@ -200,7 +200,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_";