diff --git a/src/switch_cpp.cpp b/src/switch_cpp.cpp index d8684f673d..046e8db98e 100644 --- a/src/switch_cpp.cpp +++ b/src/switch_cpp.cpp @@ -973,6 +973,8 @@ SWITCH_DECLARE(int) CoreSession::originate(CoreSession *a_leg_session, char *des if (a_leg_session) a_leg_session->end_allow_threads(); channel = switch_core_session_get_channel(session); allocated = 1; + switch_safe_free(uuid); + uuid = strdup(switch_core_session_get_uuid(session)); switch_channel_set_state(switch_core_session_get_channel(session), CS_SOFT_EXECUTE); return SWITCH_STATUS_SUCCESS;