locate session even when it's hungup in script constructor

This commit is contained in:
Anthony Minessale 2011-08-26 08:30:15 -05:00
parent c9dbbe6989
commit 301ea9fbce

View File

@ -509,7 +509,7 @@ SWITCH_DECLARE_CONSTRUCTOR CoreSession::CoreSession(char *nuuid, CoreSession *a_
other_channel = switch_core_session_get_channel(a_leg->session); 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); uuid = strdup(nuuid);
channel = switch_core_session_get_channel(session); channel = switch_core_session_get_channel(session);
allocated = 1; allocated = 1;