From: Anthony Minessale Date: Fri, 26 Aug 2011 13:30:15 +0000 (-0500) Subject: locate session even when it's hungup in script constructor X-Git-Tag: v1.2-rc1~51^2~219 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=301ea9fbceda1cdcd11a2986db760c18585cafc7;p=thirdparty%2Ffreeswitch.git locate session even when it's hungup in script constructor --- 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;