pipobscure / NodeJS-AsteriskManager

NodeJS Asterisk Manager API
Other
248 stars 103 forks source link

Action: Queues failed #41

Closed Seafnox closed 7 years ago

Seafnox commented 9 years ago

When sending action 'Queues' on server, result are not comming because parsing are failed

Code: ami.action({ "action":"Queues" }, function(err, res){ console.log(err, res); });

Server answer: QUEUE_NAME1 has 0 calls (max unlimited) in 'ringall' strategy (2s holdtime, 4s talktime), W:0, C:2, A:3, SL:100.0% within 60s Members: 111 (Local/111@from-internal/n from Local/111@from-internal/n) with penalty 2 (ringinuse disabled) (realtime) (paused) (Not in use) has taken no calls yet 222 (Local/222@from-internal/n from Local/222@from-internal/n) with penalty 3 (ringinuse disabled) (realtime) (Not in use) has taken 2 calls (last was 10 secs ago) No Callers

QUEUE_NAME2 has 0 calls (max unlimited) in 'ringall' strategy (0s holdtime, 0s talktime), W:0, C:0, A:0, SL:0.0% within 0s No Members No Callers

pipobscure commented 7 years ago

Feel free to send PR