Agent end of the Queue call cannot be hungup after AMI Bridge action


I am using Asterisk 13. Sorry for the long post but i tried to explain the whole context.

Here is the scenario: I have Queue where an Agent is joined. A Customer calls the Queue and is connected to the Agent in Call 1. So Customer has channel 1.a and Agent has channel 1.b.

While connected to the queue call Agent makes a call to a Supervisor from phone gets connected in Call 2. So the Agent has channel 2.a and Supervisor has channel 2.b.

Customer channel 1.a <----Queue()----> Agent channel 1.b(Held)
Agent channel 2.a <-----Dial()-----> Supervisor channel 2.b(Active)

Now Agent wants to bridge Customer channel 1.a with Supervisor channel 2.b.
Agent executes AMI Action Bridge

Expected both channels of Agent 1.b and 2.a will hangup.

Actual result channel 2.a hangup properly. but channel 1.b hangup from phone but not from asterisk.

Executing cli command “core show channels” shows the channel 1.b in “Up” state. Also it cannot be hangup. trying “channel request hangup 1.b” fails with saying “1.b is not a known channel”.

Executing cli command “queue show” reveals the Agent is “In call and In Use”

Because of all these the Agent does not get any new Queue call until Customer 1.a channel is hungup.

Note: If the Customer was connected through Dial() instead of Queue() the agent end of the channel hangup properly.

Question: How can I use the Queue() and still get Agent released from the Queue call when Bridge action is executed?

Is this a bug? Is there any parameter that i need to change to get the expected result?

Please advise. Thanks.

this is known queue problem when transferring as stated in free pbx gui


thanks for the reply. is there any documentation on asterisk stating this issue?

from what i understand setting ‘ringinuse=yes’ will just bypass the agent end of the queue call being there but not solve the problem.

also from previous testing i found out setting ‘ringinuse=yes’ will not deliver a new queue call when already in another queue call. but it will deliver a new queue call when phone has a nonqueuecall (for example through Dial app)

also how can i set ‘Agent Restrictions’ to ‘Extensions Only’?


This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.