[mod_verto] clientReady - reattached_sessions array

Make mod_verto clientReady reattached_sessions array send channel IDs that have been reattached, rather than the same connection ID repeatedly.

Co-authored-by: davidp <davidp@cyfas.co.uk>
This commit is contained in:
aslgithub 2021-05-10 23:56:36 +01:00 committed by Andrey Volk
parent f289721147
commit fa78235baf
1 changed files with 1 additions and 1 deletions

View File

@ -1320,7 +1320,7 @@ static void attach_calls(jsock_t *jsock)
}
tech_reattach(tech_pvt, jsock);
cJSON_AddItemToArray(reattached_sessions, cJSON_CreateString(jsock->uuid_str));
cJSON_AddItemToArray(reattached_sessions, cJSON_CreateString(switch_core_session_get_uuid(tech_pvt->session)));
}
}
switch_thread_rwlock_unlock(verto_globals.tech_rwlock);