mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-16 16:58:35 +00:00
locate session even when it's hungup in script constructor
This commit is contained in:
parent
c9dbbe6989
commit
301ea9fbce
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user