How can I find out the number of calls waiting in the queue with ami?
I use node.js
https://wiki.asterisk.org/wiki/display/AST/Asterisk+18+ManagerAction_QueueSummary
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);
ami.action({
‘action’:‘QueueSummary’,
‘Queues’: 9250,
}, function(err,res) {
console.log(err);
console.log(res);
});
ami.on(‘Queuesummary’, function(evt) {
console.log(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.