mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-23 03:34:15 +00:00
[core, mod_verto] add visibility filter to verto
This commit is contained in:
1 parent
46903fb13e
commit
4e84b34d30
2 files changed
+22
-3
No files matched your search
+5
-2
@@ -3608,7 +3608,8 @@ SWITCH_DECLARE(switch_status_t) switch_live_array_add(switch_live_array_t *la, c
|
||||
switch_status_t status = SWITCH_STATUS_SUCCESS;
|
||||
const char *action = "add";
|
||||
cJSON *msg = NULL, *data = NULL;
|
||||
|
||||
const char *visibility = NULL;
|
||||
|
||||
switch_mutex_lock(la->mutex);
|
||||
|
||||
if ((node = switch_core_hash_find(la->hash, name))) {
|
||||
@@ -3675,7 +3676,9 @@ SWITCH_DECLARE(switch_status_t) switch_live_array_add(switch_live_array_t *la, c
|
||||
|
||||
msg = cJSON_CreateObject();
|
||||
data = json_add_child_obj(msg, "data", NULL);
|
||||
|
||||
if ((visibility = cJSON_GetObjectCstr(node->obj, "contentVisibility"))) {
|
||||
cJSON_AddItemToObject(msg, "contentVisibility", cJSON_CreateString(visibility));
|
||||
}
|
||||
cJSON_AddItemToObject(msg, "eventChannel", cJSON_CreateString(la->event_channel));
|
||||
cJSON_AddItemToObject(data, "action", cJSON_CreateString(action));
|
||||
|
||||
|
||||
Reference in new issue
Block a user