I'm using Asterisk 18.104.22.168 and I'm developping an application like the FOP. In this application I send an AMI command (queuestatus) that I parse. And I have a problem with the status of agents. Because the status is 1 when the agent has no call. it change when the phone ring but come back to 1 when the agent hang the phone. So I can't check the status to know if an agent is free or if it's on phone.
Anyone has an idea how I can correct this problem ?
Thanks advance !