Asterisk func extension_state

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



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



Created by: zktech, Last modification: Thu 10 of May, 2012 (19:12 UTC) by admin
Please update this page with new information, just login and click on the "Edit" or "Discussion" tab. Get a free login here: Register Thanks! - Find us on Google+