]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
CoreSession::originate: set the uuid on success
authorMathieu Rene <mrene@avgs.ca>
Sat, 5 Sep 2009 16:55:45 +0000 (16:55 +0000)
committerMathieu Rene <mrene@avgs.ca>
Sat, 5 Sep 2009 16:55:45 +0000 (16:55 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14773 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_cpp.cpp

index d8684f673d7f3f3598488e7fb7df789bcf299f51..046e8db98ec12b285c2b38adeb6e4d036fad8229 100644 (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;