]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-11742 [mod_kazoo] add Core-UUID to Runtime-Info
authorlazedo <luis.azedo@factorlusitano.com>
Mon, 1 Apr 2019 13:38:07 +0000 (14:38 +0100)
committerlazedo <luis.azedo@factorlusitano.com>
Mon, 1 Apr 2019 13:38:07 +0000 (14:38 +0100)
src/mod/event_handlers/mod_kazoo/kz_node.c

index 2da5c4a658edd710a75e7f03aad8b49a27ac0a6c..26c362980be6f32203f9cee434c7a2d80608f2be 100644 (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) {