Hi,
I’m currently already getting in realtime the device states by just listening events from AMI.
Event: DeviceStateChange
Privilege: call,all
Device: PJSIP/Gilles
State: UNAVAILABLE
Event: DeviceStateChange
Privilege: call,all
Device: PJSIP/Gilles
State: NOT_INUSE
Event: DeviceStateChange
Privilege: call,all
Device: PJSIP/Gilles
State: BUSY
“DeviceStateChange” events are sent when the state is updated.
Then, how can I get this state just after establishing the connection to AMI?
Which “Action” do I have to send?
Regarding my trunk, I have the same question:
Which “Action” to I have to send for getting the registration state of my trunk?
Thanks for your help