M
M
MaySky2016-03-31 12:01:04
Asterisk
MaySky, 2016-03-31 12:01:04

How to organize queues (Queue) in FreePBX (Asterisk) with the same agents and different trunks?

Good day.
There is an installation of the latest version of FreePBX + Asterisk.
There are 3 internal subscribers in one queue (Queue) and an external line. A site connects to the server through AMI and implements the callback service from the site. It works as follows: a person enters his number on the site, the site accesses Asterisk, astersk calls a queue, someone from the queue picks up the phone and hears dialing beeps, the client is dialed, they are connected.
Now the task is to connect another trunk (external number) and make the same setting. The problem for me is that the agents in this queue must be the same people. But the trunk (phone number) from which the external subscriber should be called must already be different with the same operators.
I know little about naked Asterisk - I set up all of the above using a bunch of manuals and FAQs on the Internet. So I would especially appreciate help on exactly how to implement this in FreePBX. But it will work in Asterisk too - I'll try to adapt it.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Shitskov, 2016-04-12
@MaySky

Your AMI script contains the from-internal context, which makes a call through the trunk for the number 1111111. You need to create a context, for example from-internal2, which will make a call through the trunk with the number 2222222. If you have the same trunk for both numbers, you must specify Set(CALLERID(num)=2222222) in the context before calling Dial. In this case, you can use the same agent queue.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question