System information

[phones]
exten => 7001,hint,SIP/0004F2060EB4
When core show hints is executed at the Asterisk CLI, the following output is presented
when the device is currently in use:
*CLI> core show hints
-= Registered Asterisk Dial Plan Hints =-
7001@phones : SIP/0004F2060EB4 State:InUse Watchers 0
----------------
- 1 hints registered
In addition to showing you the state of the extension, the output of core show hints also
provides a count of watchers. A watcher is something in Asterisk that has subscribed
to receive updates on the state of this extension. If a SIP phone subscribes to the state
of an extension, the watcher count will be increased.
Extension state can also be retrieved with a dialplan function, EXTENSION_STATE(). This
function operates similarly to the DEVICE_STATE() function described in the preceding
section. The following example shows an extension that will print the current state of
another extension to the Asterisk console:
exten => 7013,1,Answer()
same => n,Verbose(3,The state of 7001@phones is ${EXTENSION_STATE(7001@phones)})
same => n,Hangup()
When this extension is called, this is the verbose message that shows up on the Asterisk
console:
-- The state of 7001@phones is INUSE
The following list includes the possible values that may be returned back from the
EXTENSION_STATE() function:
UNKNOWN
NOT_INUSE
INUSE
BUSY
UNAVAILABLE
RINGING
RINGINUSE
HOLDINUSE
ONHOLD
Extension States | 305