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:
Mike Jerris 2019-04-01 10:13:53 -05:00
commit 13fe6ee962
1 changed files with 3 additions and 1 deletions

View File

@ -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) {