Calls waiting in the queue

How can I find out the number of calls waiting in the queue with ami?
I use node.js

although QueueStatus will also provide the information.

where am i doing wrong?

var Ami = require(‘asterisk-manager’);
var ami = Ami(“5038”, “host”, “manager”, “secret”, true);

‘Queues’: 9250,

}, function(err,res) {



ami.on(‘Queuesummary’, function(evt) {

There is a spurious ‘s’ here. Also, I don’t know how the class library you are using handles a numeric value given to a string property.

@arsenicx I think the event name must be in PascalCase: QueueSummary

Try to enable the maganer logs to catch this type of error: manager set debug on

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.