From a6da087716478b4a54defb17d56a9574548a8d2a Mon Sep 17 00:00:00 2001 From: "David M. Lee" Date: Wed, 21 Aug 2013 16:09:09 +0000 Subject: ARI: Remove the 'channel:' scheme from endpoint's channel list. For times when a reference in ARI might be ambiguous, the reference is built as an URI (such as channel:1376341790.3). An endpoint's channel list is not ambiguous, and in fact the field is named 'channel_ids', but it had channel URI's instead of channel id's. This patch changes the list to be the raw id instead of the URI. (closes issue ASTERISK-22291) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@397297 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- main/stasis_endpoints.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/main/stasis_endpoints.c b/main/stasis_endpoints.c index 831b4aee0..4a183784c 100644 --- a/main/stasis_endpoints.c +++ b/main/stasis_endpoints.c @@ -269,8 +269,7 @@ struct ast_json *ast_endpoint_snapshot_to_json( ast_assert(channel_array != NULL); for (i = 0; i < snapshot->num_channels; ++i) { int res = ast_json_array_append(channel_array, - ast_json_stringf("channel:%s", - snapshot->channel_ids[i])); + ast_json_string_create(snapshot->channel_ids[i])); if (res != 0) { return NULL; } -- cgit v1.2.3