EXTENSION_STATE(extension[@context])
Synopsis
Get an extension’s state.
Introduced in Asterisk 1.6 as EXTENSION_STATE(), with a backport available for 1.4 as EXTSTATE().
Description
The EXTENSION_STATE function can be used to retrieve the state from any
hinted extension.
For example:
NoOp(1234@default has state ${EXTENSION_STATE(1234)})
NoOp(4567@home has state ${EXTENSION_STATE(4567@home)})
The possible values returned by this function are:
UNKNOWN | NOT_INUSE | INUSE | BUSY | INVALID | UNAVAILABLE | RINGING
RINGINUSE | HOLDINUSE | ONHOLD
INVALID does not seem to be used on 1.6
See also
- Asterisk func hint: New HINT() function in Asterisk 1.6
- Asterisk func device_State: New DEVICE_STATE() function in Asterisk 1.6
- * Extstate() function for 1.4, get extension state instead of device
- Asterisk cmd BristuffDevstate
- Asterisk SLA