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.
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.