Hi I’m in an internal project of the company where I work, I’m working on a web interface to login and track the time of agents, the project is very simple, I’m trying to add members to the queues using AMI on FreePBX, the syntax that I’m using to add a member is:
Interface: Local/1000@from-queue/n from hint:1000@ext-local
Next step I’m doing is to type a queue show command on asterisk CLI and the output I get is:
1000 (Local/1000@from-queue/n from hint:1000@ext-local) (ringinuse enabled) (dynamic) (Not in use) has taken no calls yet
I have the extension 1000 configured as a Dynamic agent in queue 6000 settings. When the extension receives an inbound call (queue call or internal call) the status of the extension changed to IN USE on CLI but when I do an outbound call from the extension 1000 the status doesn’t change and appears Not in use, that is a problem because if an agent with an active outbound call receives an inbound call the softphone rings at the same time the active outbound call is placed.
I don’t know what is the difference between login from AMI the Dynamic Agent and login the agent with the feature code *45, I notice with the output of queue show that the member of the queue appears exactly the same in the both scenarios, but only if I log the agent with the feature code the problems disappear, the extension appears IN USE doing outbound calls.
The other problem that I found is related to CDR report, if I use my method using AMI the activity of calls on the CDR report of FreePBX of the inbound calls differ from one method to the other, with feature code method the calls appear with the App column as “DIAL” and with the AMI method the App column shows as “QUEUE”.
I don´t know what I’m making wrong or if I missing something in how to use correctly AMI, I appreciate if some can provide me some guidance.