
DEVICE_STATE() permite obter o estado de um dispositivo a partir de qualquer provedor de estado de dispositivo. Por exemplo:NoOp(SIP/mypeer has state ${DEVICE_STATE(SIP/mypeer)})NoOp(Conference number 1234 has state ${DEVICE_STATE(MeetMe:1234)})Set(DEVICE_STATE(Custom:lamp1)=BUSY)Set(DEVICE_STATE(Custom:lamp2)=NOT_INUSE)exten => 1234,hint,Custom:lamp1UNKNOWN | NOT_INUSE | INUSE | BUSY | INVALID | UNAVAILABLE | RINGING | RINGINUSE | ONHOLDDEVICE_STATE(device)device
