Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Asterisk: Get queue agent

Tags:

voip

asterisk

Is there an easy way to capture the agent extension into an asterisk variable when a call is transfered to an agent from a queue?

Edit: We are using dynamic agents. After the agent takes the call, he transfers the call to another extension. In the context for that extension, we need to utilize an asterisk variable that contains the extension of the agent that transferred the call.

like image 385
Ryan Nel Avatar asked Jun 04 '26 10:06

Ryan Nel


1 Answers

From within the dialplan? Not particularly. Asterisk does not give as many tie-ins when it comes to accessing queue call channels at the dialplan level as some would like.

A non-trivial, but very possible way of solving this issue is to build an application that interfaces with the Asterisk Management Interface. From there, you can effectively watch for queue events, tracking a call throughout its lifetime on your PBX and providing that information to your agents out-of-band. Whether this works for you really depends upon your particular objective.

If you do plan on taking this route, you will want to do two things.

  1. When connecting to the AMI, be sure to set Events: on right after authenticating.
  2. Set eventmemberstatus=yes in queues.conf for any queue that you want to track.

Hope this helps!

like image 105
YWCA Hello Avatar answered Jun 06 '26 01:06

YWCA Hello



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!