This section will enumerate and briefly describe the ways in which you can query or manipulate the various Asterisk state resources. Device State, Extension State and Presence State. Where mentioned, the various functions and commands will be linked to further available documentation.
The DEVICE_STATE function will return the Device State for a specified device state identifier and allow you to set Custom device states.
On the command line, the devstate command will allow you to list or modify Custom device states specifically.
devstate change -- Change a custom device state
devstate list -- List currently known custom device states