From 7ddfe12affea126d4cae0a2c75fac626cabbc496 Mon Sep 17 00:00:00 2001 From: Matthew Jordan Date: Fri, 20 Dec 2013 20:05:40 +0000 Subject: res_stasis_device_state: Set resource type for subscriptions to deviceState The documentation for ARI already specifies that the device state resource when used for subscribing for events is "deviceState", not "device_state". The code, however, used "device_state"; although this was inconsistent as well in doxygen comments in resource_applications. Because the actual resource being subscribed to is /deviceStates/{device}/, it makes sense for the resource type specifier to be deviceState. Note that the key value in the events is still "device_state". ........ Merged revisions 404437 from http://svn.asterisk.org/svn/asterisk/branches/12 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@404438 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- res/ari/resource_applications.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'res/ari') diff --git a/res/ari/resource_applications.h b/res/ari/resource_applications.h index 6aebd07fd..a4d12c9c0 100644 --- a/res/ari/resource_applications.h +++ b/res/ari/resource_applications.h @@ -88,7 +88,7 @@ void ast_ari_applications_subscribe(struct ast_variable *headers, struct ast_ari struct ast_ari_applications_unsubscribe_args { /*! \brief Application's name */ const char *application_name; - /*! \brief Array of URI for event source (channel:{channelId}, bridge:{bridgeId}, endpoint:{tech}/{resource}, device_state:{deviceName} */ + /*! \brief Array of URI for event source (channel:{channelId}, bridge:{bridgeId}, endpoint:{tech}/{resource}, deviceState:{deviceName} */ const char **event_source; /*! \brief Length of event_source array. */ size_t event_source_count; -- cgit v1.2.3