From 221c32e846f610622a7c80a7c483961a5eb8bc29 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Mon, 14 Jan 2008 15:44:05 +0000 Subject: [PATCH] add process_cdr variable git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7213 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/switch_core_state_machine.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/switch_core_state_machine.c b/src/switch_core_state_machine.c index 97f01b5cc0..0d10c3f430 100644 --- a/src/switch_core_state_machine.c +++ b/src/switch_core_state_machine.c @@ -424,9 +424,9 @@ SWITCH_DECLARE(void) switch_core_session_run(switch_core_session_t *session) if (!switch_strlen_zero(var)) { - if (!strcasecmp(var, "a_only") && !switch_channel_test_flag(session->channel, CF_ORIGINATOR)) { + 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_test_flag(session->channel, CF_ORIGINATOR)) { + } else if (!strcasecmp(var, "b_only") && switch_channel_get_originatee_caller_profile(session->channel)) { do_extra_handlers = 0; } else if (!switch_true(var)) { do_extra_handlers = 0;