summaryrefslogtreecommitdiff
path: root/main/stasis_endpoints.c
diff options
context:
space:
mode:
Diffstat (limited to 'main/stasis_endpoints.c')
-rw-r--r--main/stasis_endpoints.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/main/stasis_endpoints.c b/main/stasis_endpoints.c
index 90d968567..a6756182c 100644
--- a/main/stasis_endpoints.c
+++ b/main/stasis_endpoints.c
@@ -239,7 +239,7 @@ struct ast_json *ast_endpoint_snapshot_to_json(
"technology", snapshot->tech,
"resource", snapshot->resource,
"state", ast_endpoint_state_to_string(snapshot->state),
- "channels");
+ "channel_ids");
if (json == NULL) {
return NULL;
@@ -253,7 +253,7 @@ struct ast_json *ast_endpoint_snapshot_to_json(
}
}
- channel_array = ast_json_object_get(json, "channels");
+ channel_array = ast_json_object_get(json, "channel_ids");
ast_assert(channel_array != NULL);
for (i = 0; i < snapshot->num_channels; ++i) {
int res = ast_json_array_append(channel_array,