Call's assign to agent in queue

I was experimenting with the asterisk queues, and I would like you to perform the following function:

  • When I have a queued call (it is on hold) can assign it to an agent through AMI actions.
  • If it exceeds the time (4 minutes on hold) pass it to another function

Thank you very much in advance

For the time setting use the timeout option in the queue command, default is 300 secs.

Cant help you with the AMI actions. No knowledge in that area.