]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
locate session even when it's hungup in script constructor
authorAnthony Minessale <anthm@freeswitch.org>
Fri, 26 Aug 2011 13:30:15 +0000 (08:30 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Fri, 26 Aug 2011 13:30:27 +0000 (08:30 -0500)
src/switch_cpp.cpp

index 044612792b6873362de17e0874c0af5e6869b2f7..a284854f46c5509d4a9ea6dc0035e8060912de9d 100644 (file)
@@ -509,7 +509,7 @@ SWITCH_DECLARE_CONSTRUCTOR CoreSession::CoreSession(char *nuuid, CoreSession *a_
                other_channel = switch_core_session_get_channel(a_leg->session);
        }
 
-       if (!strchr(nuuid, '/') && (session = switch_core_session_locate(nuuid))) {
+       if (!strchr(nuuid, '/') && (session = switch_core_session_force_locate(nuuid))) {
                uuid = strdup(nuuid);
                channel = switch_core_session_get_channel(session);
                allocated = 1;