manager: Add state list commands
authorKinsey Moore <kmoore@digium.com>
Wed, 30 Jul 2014 18:32:25 +0000 (18:32 +0000)
committerKinsey Moore <kmoore@digium.com>
Wed, 30 Jul 2014 18:32:25 +0000 (18:32 +0000)
commit485d0379aeac18563f2fd3b3fee8516e32f16675
tree230df76a414eefebfb510a2041337bfff52e45d2
parentcac711fc95d205d586d451c027b7e542ce9c64b3
manager: Add state list commands

This patch adds three new AMI commands:
 * ExtensionStateList (pbx.c) - list all known extension state hints
   and their current statuses. Events emitted by the list action are
   equivalent to the ExtensionStatus events.
 * PresenceStateList (res_manager_presencestate) - list all known
   presence state values. Events emitted are generated by the stasis
   message type, and hence are PresenceStateChange events.
 * DeviceStateList (res_manager_devicestate) - list all known device
   state values. Events emitted are generated by the stasis message
   type, and hence are DeviceStateChange events.

Patch-by: Matt Jordan
Review: https://reviewboard.asterisk.org/r/3799/

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@419806 65c4cc65-6c06-0410-ace0-fbb531ad65f3
main/manager.c
main/pbx.c
res/res_manager_devicestate.c
res/res_manager_presencestate.c