A
A
Alice2018-08-01 08:06:58
Asterisk
Alice, 2018-08-01 08:06:58

Asterisk gathering in a conference?

Hello.
Thanks to the help of knowledgeable people, I managed to set up the collection of internal and external numbers in the conference (numbers like 7XXXX). Now I'm interested in how to assemble numbers of various lengths into a conference.
Those. I dial the number 7XXXXX and for example 98XXXXXXXXXX as well as 5XX.
While I can collect 7ХХХХ, other numbers "pass by" and only subscribers with five-digit numbers can talk and catch an incoming call.
Here is the solution for five digit numbers:

[Conference]

exten => _**XXXXX!,1,Set(Numbers=${EXTEN:1})
same => n(loop),GotoIf($["${Numbers:0:1}"!="*"]?end)
same => n(orig),Originate(OOH323/${Numbers:1:5}@avaya,exten,Conference,${CALLERID(num)},1,60)
same => n,Set(Numbers=${Numbers:6})
same => n,Goto(loop)
same => n(end),ConfBridge(${CALLERID(num)},bridge,simple)


exten => _X.,1,Wait(1)
same => n,ConfBridge(${EXTEN},bridge,simple)

Also, I have implemented a rule according to which a call to one number goes on all the time, even if the call is dropped. Those. I call 7ХХХХ -> without picking up the phone, the call is dropped (or picked up and dropped during a conversation) -> after a few seconds, the asterisk starts a second dialing attempt and will continue to do so until the caller hangs up the call.
Exactly the same scheme I need to implement for conferences. That is, for example, the conference consists of numbers 70000, 70001, 89141111111 and 555. Number 70001 took off (or hung up on its own). It is necessary to make sure that a call is immediately made to this number and the subscriber with this number ends up in the conference room from which he left earlier.
Here is how it is implemented for one number:
[autoredial]

exten => _99.,1,Dial(OOH323/${EXTEN:2}@avaya,40,g)
exten => _99.,n,Wait(5)
exten => _99.,n,Goto(${EXTEN},1)
exten => _99.,h,Goto(${EXTEN},1)
exten => _99.,h,Goto(autoredial,s,1)

(Ie, the number 70000 is dialed through 99
9970000 -> and then the call goes on all the time)
Thanks in advance.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Rsa97, 2018-08-01
@Emersis

Instead of cutting fixed-length strings, use CUT on an asterisk.
Instead of direct calls to the OOH323/${Number} channel, use a call to Local/99${Number}@autoredial.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question