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
Showing
- CHANGES 3 additions, 0 deletionsCHANGES
- apps/app_meetme.c 3 additions, 3 deletionsapps/app_meetme.c
- apps/app_queue.c 1 addition, 1 deletionapps/app_queue.c
- funcs/func_devstate.c 205 additions, 0 deletionsfuncs/func_devstate.c
- include/asterisk/cli.h 2 additions, 2 deletionsinclude/asterisk/cli.h
- include/asterisk/devicestate.h 32 additions, 19 deletionsinclude/asterisk/devicestate.h
- main/cli.c 10 additions, 6 deletionsmain/cli.c
- main/devicestate.c 68 additions, 6 deletionsmain/devicestate.c
- res/res_features.c 3 additions, 3 deletionsres/res_features.c
Loading
Please register or sign in to comment