Contact

Blogs

Take a look at the things that interest us.

How to create a queue in Asterisk 18

Wesley Wesley 3 years

In today's post, we are going to set up a queue in Asterisk 18. Let's get started.

Requirements

  • Basic set up for sip accounts 1000 till 1004

1. Building the queue

Move to the asterisk directory.

$ cd /etc/asterisk

Open the queues config file.

$ vi queues.conf

Next, we'll add the queue information.

[general]
autofill=yes             ; distribute all waiting callers to available members
shared_lastcall=yes      ; respect the wrapup time for members logged into more than one queue

[StandardQueue](!)       ; template to provide common features
musicclass=default       ; play [default] music
strategy=leastrecent     ; Ring persons with least recent calls
joinempty=no             ; do not join the queue when no members available
leavewhenempty=yes       ; leave the queue when no members available
ringinuse=no             ; don't ring members when already InUse (prevents multiple calls to an agent)

[support](StandardQueue) ; create the support queue using the parameters in the StandardQueue template
member=PJSIP/1000

Save the file.

:wq!

2. Creating a dial plan

Open the extensions config file.

$ cd /etc/asterisk

Add the following to the file.

; send calls into call center queue
[extensions]
exten => _2000,1,Verbose(2,${CALLERID(all)} entering the support queue)
same => n,Playback(hello)
same => n,Wait(1)
same => n,Answer()
same => n,Queue(support)
same => n,Hangup()

Save the file.

:wq!

3. Restarting Asterisk

The last step is to restart Asterisk, this can be done with the following command.

$ systemctl restart asterisk

The queue for asterisk has now been created.

A call into the queue can be made by calling the extensions 2000 from one of your current extensions 1001 to 1002.

The agent is currently set as extensions 1000.

How to create a queue in Asterisk 18 2021-08-24 08:06:03

There are no comments.

4194

Have questions about our services?

Contact our Sales team to get answers.

Contact Us
gomibako@aska-ltd.jp