data++;
}
+ if (session) {
+ switch_caller_profile_t *cpp = NULL;
+ channel = switch_core_session_get_channel(session);
+ if ((cpp = switch_channel_get_caller_profile(channel))) {
+ cp = switch_caller_profile_dup(pool, cpp);
+ }
+ }
+
if (ovars) {
var_event = ovars;
} else {
switch_goto_status(SWITCH_STATUS_FALSE, end);
}
- if (session) {
- switch_caller_profile_t *cpp = NULL;
- channel = switch_core_session_get_channel(session);
- if ((cpp = switch_channel_get_caller_profile(channel))) {
- cp = switch_caller_profile_dup(pool, cpp);
- }
- }
-
switch_threadattr_create(&thd_attr, pool);
switch_threadattr_stacksize_set(thd_attr, SWITCH_THREAD_STACKSIZE);