CoreSession::originate: set the uuid on success

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14773 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Mathieu Rene 2009-09-05 16:55:45 +00:00
parent 72d3c4cbda
commit 2a3be1dc98

View File

@ -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;