[asterisk-users] odd behaviour with AGI and dial agent

Keiron Liddle keiron.liddle at gsvisionint.com
Wed Jul 22 22:14:33 CDT 2009


Hi,

I have come across an odd problem.

Basically I am transferring a call to an agent. The agent is logged in 
and set as paused.
In order to find which agent to call I am using a fastagi script to just 
set a variable.
When it falls through the agi script and dials the agent (using the 
variable) it doesn't connect the call properly to the agent. I get the 
beep but no audio (along with some other strange behaviour with the 
channel not hanging up properly, core show channels doesn't work properly).

Now if I just set the variable in the dialplan (ie. no agi), or just 
hardcode the agent being called then it works fine.

It seems that calling the fastagi is doing something to the channel 
which means that it doesn't work properly afterwards. I have also tried 
calling the agent in the agi with the same problems.

Does anyone have any idea what the agi script could be doing to the 
channel/call, what it could be changing and how I can make it work properly.


Keiron



More information about the asterisk-users mailing list