From 301ea9fbceda1cdcd11a2986db760c18585cafc7 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Fri, 26 Aug 2011 08:30:15 -0500 Subject: [PATCH] locate session even when it's hungup in script constructor --- src/switch_cpp.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/switch_cpp.cpp b/src/switch_cpp.cpp index 044612792b..a284854f46 100644 --- a/src/switch_cpp.cpp +++ b/src/switch_cpp.cpp @@ -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;