[Freeswitch-svn] [commit] r7214 - freeswitch/trunk/src
Freeswitch SVN
anthm at freeswitch.org
Mon Jan 14 11:10:56 EST 2008
Author: anthm
Date: Mon Jan 14 11:10:56 2008
New Revision: 7214
Modified:
freeswitch/trunk/src/switch_core_session.c
freeswitch/trunk/src/switch_core_state_machine.c
Log:
update
Modified: freeswitch/trunk/src/switch_core_session.c
==============================================================================
--- freeswitch/trunk/src/switch_core_session.c (original)
+++ freeswitch/trunk/src/switch_core_session.c Mon Jan 14 11:10:56 2008
@@ -301,6 +301,10 @@
}
}
+ 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);
}
Modified: freeswitch/trunk/src/switch_core_state_machine.c
==============================================================================
--- freeswitch/trunk/src/switch_core_state_machine.c (original)
+++ freeswitch/trunk/src/switch_core_state_machine.c Mon Jan 14 11:10:56 2008
@@ -423,11 +423,14 @@
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;
}
More information about the Freeswitch-svn
mailing list