At the end of the ivr.agi, i forward the call to a queue (2000) with perl command :
$AGI->set_extension(“2000”);
This make Asterisk go to an endless loop with 100% CPU . Logs report millions of block:
– Executing [h@from-queue:1] Set(“Local/500@from-queue-91a5;2”, “QAGENT=h”) in new stack
– Executing [h@from-queue:2] Goto(“Local/500@from-queue-91a5;2”, “,1”) in new stack
– Goto (from-queue,h,1)
you set the extension, but what about the priority, etc.
it sounds like you are not redirecting it properly. Furthermore, there could be other issues going on depending on your dialplan and how the original AGI script is called in the first place.
Generally speaking, if you fire a call to prioirty 1 of the Queue code, then it should take care of everything else you need.