login | register
Tue 02 of Dec, 2008 [02:38 UTC]

voip-info.org

History

Asterisk Manager API Action ExtensionState

Created by: flobi,Last modification on Wed 01 of Oct, 2008 [20:06 UTC] by jcapp
Action: ExtensionState
Parameters: Exten, Context, ActionID

SEND:
ACTION: ExtensionState
Context: default
Exten: idonno
ActionID: 1


RECEIVE:
Response: Success
ActionID: 1
Message: Extension Status
Exten: idonno
Context: default
Hint:
Status: -1


Status codes:
-1 = Extension not found
0 = Idle
1 = In Use
2 = Busy
4 = Unavailable
8 = Ringing
16 = On Hold

Back

Asterisk Manager API

Comments

Comments Filter
222

333

by juraj, Wednesday 30 of August, 2006 [15:24:16 UTC]
works also with IAX2 for me.

but do I have to send it? polling extension state is not very good solution, I would like to subscribe to extension event status automatically.

222

333using Hint with SIP

by dewbank, Thursday 03 of February, 2005 [16:47:33 UTC]
Just so it's Documented, in order for this to work, at least with SIP (Which is all I have tested it with) you have to add:

exten => 201,hint,SIP/201 (do this for each extension) in the context where the extensions are that you want to monitor

Then when doing the ExtensionState command you just use the extesion number (in this case 201)


EG

Action: ExtensionState
Exten: 201
Context: intern
ActionID: (whatever)