mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-01-25 02:07:54 +00:00
[core] allow external ID to be same as the session UUID
This commit is contained in:
committed by
Andrey Volk
parent
c2e240d6dc
commit
6b6b721c10
@@ -48,7 +48,8 @@ FST_CORE_BEGIN("./conf")
|
||||
|
||||
FST_SESSION_BEGIN(session_external_id)
|
||||
{
|
||||
fst_check(switch_core_session_set_external_id(fst_session, switch_core_session_get_uuid(fst_session)) != SWITCH_STATUS_SUCCESS);
|
||||
fst_check(switch_core_session_set_external_id(fst_session, switch_core_session_get_uuid(fst_session)) == SWITCH_STATUS_SUCCESS);
|
||||
fst_check_string_equals(switch_core_session_get_external_id(fst_session), switch_core_session_get_uuid(fst_session));
|
||||
fst_check(switch_core_session_set_external_id(fst_session, "foo") == SWITCH_STATUS_SUCCESS);
|
||||
switch_core_session_t *session = switch_core_session_locate("foo");
|
||||
fst_requires(session);
|
||||
|
||||
Reference in New Issue
Block a user