zmarius81 / asterisk.io

node.js asterisk pbx io
40 stars 25 forks source link

Members not showing up with Action:Command, Command: queue show #8

Open Gabriel-Klostermann opened 6 years ago

Gabriel-Klostermann commented 6 years ago

I am trying to send the info of a queue as a response to a GET request to my server. When the request hits, I issue an action to asterisk using: ami.action('Command',{ Command: 'queue show' },function(data){ console.log(data); res.write(JSON.stringify(data)); res.end(' \n \n 200 OK'); }). I get a response from asterisk, with info like number of calls, queue strategy etc, however the Members list is empty. When I do the same command directly in asterisk, the Members list successfully shows all the queue's members.