]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
[mod_verto] clientReady - reattached_sessions array
authoraslgithub <63076808+aslgithub@users.noreply.github.com>
Mon, 10 May 2021 22:56:36 +0000 (23:56 +0100)
committerAndrey Volk <andywolk@gmail.com>
Sat, 23 Oct 2021 19:00:42 +0000 (22:00 +0300)
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>
src/mod/endpoints/mod_verto/mod_verto.c

index 804f612ff0f498cafa412dbcf40c39d8c91d1890..32480ac9cc5599520e267aacbe3c88860cf0f606 100644 (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);