git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7214 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale 2008-01-14 16:10:56 +00:00
parent 221c32e846
commit aae0d642da
2 changed files with 12 additions and 5 deletions

View File

@ -301,6 +301,10 @@ SWITCH_DECLARE(switch_call_cause_t) switch_core_session_outgoing_channel(switch_
}
}
if ((val = switch_channel_get_variable(channel, SWITCH_PROCESS_CDR_VARIABLE))) {
switch_channel_set_variable(peer_channel, SWITCH_PROCESS_CDR_VARIABLE, val);
}
if ((val = switch_channel_get_variable(channel, SWITCH_R_SDP_VARIABLE))) {
switch_channel_set_variable(peer_channel, SWITCH_B_SDP_VARIABLE, val);
}

View File

@ -423,11 +423,14 @@ SWITCH_DECLARE(void) switch_core_session_run(switch_core_session_t *session)
const char *var = switch_channel_get_variable(session->channel, SWITCH_PROCESS_CDR_VARIABLE);
if (!switch_strlen_zero(var)) {
if (!strcasecmp(var, "a_only") && switch_channel_get_originator_caller_profile(session->channel)) {
do_extra_handlers = 0;
} else if (!strcasecmp(var, "b_only") && switch_channel_get_originatee_caller_profile(session->channel)) {
do_extra_handlers = 0;
if (!strcasecmp(var, "a_only")) {
if (switch_channel_get_originator_caller_profile(session->channel)) {
do_extra_handlers = 0;
}
} else if (!strcasecmp(var, "b_only")) {
if (switch_channel_get_originatee_caller_profile(session->channel)) {
do_extra_handlers = 0;
}
} else if (!switch_true(var)) {
do_extra_handlers = 0;
}