[asterisk-commits] dlee: trunk r397297 - /trunk/main/stasis_endpoints.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Aug 21 11:09:11 CDT 2013


Author: dlee
Date: Wed Aug 21 11:09:09 2013
New Revision: 397297

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=397297
Log:
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)


Modified:
    trunk/main/stasis_endpoints.c

Modified: trunk/main/stasis_endpoints.c
URL: http://svnview.digium.com/svn/asterisk/trunk/main/stasis_endpoints.c?view=diff&rev=397297&r1=397296&r2=397297
==============================================================================
--- trunk/main/stasis_endpoints.c (original)
+++ trunk/main/stasis_endpoints.c Wed Aug 21 11:09:09 2013
@@ -269,8 +269,7 @@
 	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;
 		}




More information about the asterisk-commits mailing list