Merge pull request #1031 in FS/freeswitch from ~THEHUNMONKGROUP/freeswitch:feature/FS-9683-pass-call-recovery-status-to-verto to master

* commit '34e491ffa1dca32846d1e0fb97e71f5ac7c34d22':
  FS-9683: Pass call recovery status to Verto
This commit is contained in:
Mike Jerris committed 2017-08-10 18:41:39 +00:00
commit 9127c41316
6 files changed
+30 -1

No files matched your search

+10
View File
@@ -1232,6 +1232,11 @@ static void drop_detached(void)
static void attach_calls(jsock_t *jsock)
{
verto_pvt_t *tech_pvt;
cJSON *msg = NULL;
cJSON *params = NULL;
cJSON *reattached_sessions = NULL;
reattached_sessions = cJSON_CreateArray();
switch_thread_rwlock_rdlock(verto_globals.tech_rwlock);
for(tech_pvt = verto_globals.tech_head; tech_pvt; tech_pvt = tech_pvt->next) {
@@ -1241,9 +1246,14 @@ static void attach_calls(jsock_t *jsock)
}
tech_reattach(tech_pvt, jsock);
cJSON_AddItemToArray(reattached_sessions, cJSON_CreateString(jsock->uuid_str));
}
}
switch_thread_rwlock_unlock(verto_globals.tech_rwlock);
msg = jrpc_new_req("verto.clientReady", NULL, &params);
cJSON_AddItemToObject(params, "reattached_sessions", reattached_sessions);
jsock_queue_event(jsock, &msg, SWITCH_TRUE);
}
static void detach_calls(jsock_t *jsock)