aboutsummaryrefslogtreecommitdiffstats
path: root/funcs/func_devstate.c
AgeCommit message (Collapse)AuthorFilesLines
2007-04-11Add a minor loop optimization to the custom device state callback. Once therussell1-1/+3
correct device is found, it should just break out of the loop ... git-svn-id: http://svn.digium.com/svn/asterisk/trunk@61429 f38db490-d61c-443f-a65b-d21fe96a405b
2007-02-13This introduces a new dialplan function, DEVSTATE, which allows you to do somerussell1-0/+205
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: http://svn.digium.com/svn/asterisk/trunk@54261 f38db490-d61c-443f-a65b-d21fe96a405b