[asterisk-commits] dlee: branch dlee/ASTERISK-22451-ari-subscribe r399219 - in /team/dlee/ASTERI...
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Mon Sep 16 15:38:21 CDT 2013
Author: dlee
Date: Mon Sep 16 15:38:19 2013
New Revision: 399219
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=399219
Log:
ast_endpoint_find_by_id
Modified:
team/dlee/ASTERISK-22451-ari-subscribe/main/endpoints.c
team/dlee/ASTERISK-22451-ari-subscribe/rest-api/api-docs/events.json
Modified: team/dlee/ASTERISK-22451-ari-subscribe/main/endpoints.c
URL: http://svnview.digium.com/svn/asterisk/team/dlee/ASTERISK-22451-ari-subscribe/main/endpoints.c?view=diff&rev=399219&r1=399218&r2=399219
==============================================================================
--- team/dlee/ASTERISK-22451-ari-subscribe/main/endpoints.c (original)
+++ team/dlee/ASTERISK-22451-ari-subscribe/main/endpoints.c Mon Sep 16 15:38:19 2013
@@ -103,6 +103,11 @@
return 0;
}
+struct ast_endpoint *ast_endpoint_find_by_id(const char *id)
+{
+ return ao2_find(endpoints, id, 0);
+}
+
struct stasis_topic *ast_endpoint_topic(struct ast_endpoint *endpoint)
{
if (!endpoint) {
Modified: team/dlee/ASTERISK-22451-ari-subscribe/rest-api/api-docs/events.json
URL: http://svnview.digium.com/svn/asterisk/team/dlee/ASTERISK-22451-ari-subscribe/rest-api/api-docs/events.json?view=diff&rev=399219&r1=399218&r2=399219
==============================================================================
--- team/dlee/ASTERISK-22451-ari-subscribe/rest-api/api-docs/events.json (original)
+++ team/dlee/ASTERISK-22451-ari-subscribe/rest-api/api-docs/events.json Mon Sep 16 15:38:19 2013
@@ -343,6 +343,17 @@
}
}
},
+ "EndpointStateChange": {
+ "id": "EndpointStateChange",
+ "extends": "Event",
+ "description": "Endpoint state changed.",
+ "properties": {
+ "endpoint": {
+ "required": true,
+ "type": "Endpoint"
+ }
+ }
+ },
"StasisEnd": {
"id": "StasisEnd",
"extends": "Event",
More information about the asterisk-commits
mailing list