Search:
     
3CX Phone System for Windows Download the Free Edition

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



Created by: zktech,Last modification on Wed 18 of Nov, 2009 [16:23 UTC] by fhackenberger


Please update this page with new information, just login and click on the "Edit" or "Discussion" tab. Get a free login here: Register Thanks! - support@voip-info.org

Page Changes | Comments

 





Search: