Upgrade 3CX to v18 and get it hosted free!

Asterisk func extension_state

Author image

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

Related Posts:

Get 3CX - Absolutely Free!
Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.