This introduces a new dialplan function, DEVSTATE, which allows you to do some
authorRussell Bryant <russell@russellbryant.com>
Tue, 13 Feb 2007 22:02:20 +0000 (22:02 +0000)
committerRussell Bryant <russell@russellbryant.com>
Tue, 13 Feb 2007 22:02:20 +0000 (22:02 +0000)
commitf60efe347a9e0cceb9d2c917f86324fc6365dba6
tree6c0ae108c47a878e9cc329ef2c330982e02b80a3
parent83856d4683d5409a76f62bd1917cc5f049223651
This introduces a new dialplan function, DEVSTATE, which allows you to do some
pretty cool things.

First, you can get the device state of anything in the dialplan:
  NoOp(SIP/mypeer has state ${DEVSTATE(SIP/mypeer)})
  NoOp(The conference room 1234 has state ${DEVSTATE(MeetMe:1234)})

Most importantly, this allows you to create custom device states so you can
control phone lamps directly from the dialplan.
  Set(DEVSTATE(Custom:mycustomlamp)=BUSY)
  ...
  exten => mycustomlamp,hint,Custom:mycustomlamp

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@54261 65c4cc65-6c06-0410-ace0-fbb531ad65f3
CHANGES
apps/app_meetme.c
apps/app_queue.c
funcs/func_devstate.c [new file with mode: 0644]
include/asterisk/cli.h
include/asterisk/devicestate.h
main/cli.c
main/devicestate.c
res/res_features.c