]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_stasis_device_state: Set resource type for subscriptions to deviceState
authorMatthew Jordan <mjordan@digium.com>
Fri, 20 Dec 2013 20:04:41 +0000 (20:04 +0000)
committerMatthew Jordan <mjordan@digium.com>
Fri, 20 Dec 2013 20:04:41 +0000 (20:04 +0000)
commit795d3542b61cbc6345ea8ea806123854599491da
treea12194aec12470a6424625dd8eee08cad7133921
parent4576cdc925c61669969f74ffe4028a9774b6b773
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".

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/12@404437 65c4cc65-6c06-0410-ace0-fbb531ad65f3
res/ari/resource_applications.h
res/res_stasis_device_state.c