mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-14 16:15:04 +00:00
Merge pull request #1700 in FS/freeswitch from ~LAZEDO/freeswitch:bug/FS-11742 to master
* commit '68e3eae826bdfd0a9cc29bd6073dc63fdcdac695': FS-11742 [mod_kazoo] add Core-UUID to Runtime-Info
This commit is contained in:
commit
13fe6ee962
@ -39,7 +39,9 @@ void kz_nodes_collect_runtime(cJSON *container)
|
||||
cJSON *retval = NULL;
|
||||
if(kz_json_api("status", NULL, &retval) == SWITCH_STATUS_SUCCESS) {
|
||||
if(retval != NULL && (!(retval->type & cJSON_NULL))) {
|
||||
cJSON_AddItemToObject(container, "Runtime-Info", cJSON_Duplicate(retval, 1));
|
||||
cJSON *val = cJSON_Duplicate(retval, 1);
|
||||
cJSON_AddItemToObject(val, "Core-UUID", cJSON_CreateString(switch_core_get_uuid()));
|
||||
cJSON_AddItemToObject(container, "Runtime-Info", val);
|
||||
}
|
||||
}
|
||||
if(retval) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user