T
T
Tertius2020-07-02 14:45:39
Asterisk
Tertius, 2020-07-02 14:45:39

How to create a queue correctly?

Hello dear.

The asterisk is completely zero, but there was an urgent need to do the following - there is an ivr from which, when dialing, for example, 8, you need to make a call in the following order:
- Simultaneously send a call to numbers 101, 102, 103. After no answer and 20 seconds:
- Simultaneously send a call to numbers 201, 202, 203. After no answer after 20 seconds:
- Dial 301. After no answer after 20 seconds:
- Simultaneously send a call to mobile numbers 89011111111, 89022222222. After no answer and after 20 seconds, hang up.

Did the following:
extentions.conf

exten => 8,1,Queue(testbutton,r,,,80)

queues.conf
[testbutton]
timeout = 20
strategy = linear
ringinuse = no
member => SIP/101.1
member => SIP/102.1
member => SIP/103.1
member => SIP/201.2
member => SIP/202.2
member => SIP /203.2
member => SIP/301.3
member => SIP/[email protected]_gw,4
member => SIP/[email protected]_gw,4

But doesn't work. Where is my mistake?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Armenian Radio, 2020-07-02
@Tertius

"Queue" is clearly not what you need. It's about creating a queue for callers.
The DIAL command can call several numbers and fight back on a timer
. Each line of your script is a DIAL command

A
Andrey Barbolin, 2020-07-02
@dronmaxman

https://asterisk-pbx.ru/wiki/asterisk/cf/queues.conf
Timeout section.
Hint - it's not that timeout = 20.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question