]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
update
authorAnthony Minessale <anthony.minessale@gmail.com>
Mon, 14 Jan 2008 16:10:56 +0000 (16:10 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Mon, 14 Jan 2008 16:10:56 +0000 (16:10 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7214 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_core_session.c
src/switch_core_state_machine.c

index ff95870594510c04c2afa168ac08d0071646e312..a7d4a9aa193e56db2cc8edc2ea6c94780192b901 100644 (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);
                        }
index 0d10c3f43024d624ef139b7cce27afcb9d210105..b83ced0d810b060b18d764a24a1e24198f2cc43b 100644 (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;
                                                }