1
0
mirror of https://github.com/signalwire/freeswitch.git synced 2025-03-07 10:48:06 +00:00
This commit is contained in:
Mathieu Rene 2011-03-09 19:01:50 -05:00
parent 0c5222a460
commit 8cb2bad004

@ -1423,7 +1423,9 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_enterprise_originate(switch_core_sess
}
}
switch_event_add_header_string(var_event, SWITCH_STACK_BOTTOM, "ent_originate_aleg_uuid", switch_core_session_get_uuid(session));
if (session) {
switch_event_add_header_string(var_event, SWITCH_STACK_BOTTOM, "ent_originate_aleg_uuid", switch_core_session_get_uuid(session));
}
if (channel) {
switch_channel_process_export(channel, NULL, var_event, SWITCH_EXPORT_VARS_VARIABLE);