node.jsasteriskasterisk-ari

How to get SIP user status with ARI?


I'm trying to make a realtime application with Asterisk 15 ARI, and I need to get all agents/users (sip) status in queue... I need to know if the user has logged in queue, is on pause, in a call...

I'm reading the Asterisk ARI docs but not found anything about that.

I'm using node-ari-client to watch the Stasis events.

Thanks for u help.


Solution

  • I think AMI is more adequate for this purpose, as ARI is more suitable to build your dialplan application.

    You may use AMI action QueueStatus to see who is logged in, paused, etc. Maybe https://www.npmjs.com/package/asterisk-ami-client will help you to build the client.