Page 1 of 1

Voice Broadcast Campaign with Multiple Audios

PostPosted: Tue Jan 26, 2021 10:51 pm
by kaushal.raj
Hello Everyone, I have a situation with a VICIdial cluster here. But first my Hardware and version details.
1 x Web+DB (Bare Metal)
3 x Asterisk Only (Bare Metal)
Installed with ViciBox v.9.0.3 iso (200630-2117)
VERSION: 2.14-783a
BUILD: 210103-0856

The client is running voice broadcast campaign currently. Uptil now, they have been using a single caller ID everyday with a unique voice recording. They have planned to use 5 different caller IDs with 5 different call back audios, but through a single campaign in automated mode. To put that in centext, here is the layout.

DID Numbers: 1111111111, 2222222222, 3333333333, 4444444444, 5555555555
Voice recordings: 1111111111.wav, 2222222222.wav, 3333333333.wav, 4444444444.wav, 5555555555.wav

The single campaign has to be setup in such a way that it chooses one of those 5 DIDs as caller ID on every specific call, And then it chooses the related Voice file as "Answering Machine Messege" and "Survey First Audio File"

Here is the progress I have made till now. My dialplan is here..
exten => _5555X.,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _5555X.,n,Gosub(pickCallerIDnum,cell${RAND(1,5)},1)
exten => _5555X.,n,Dial(sip/${EXTEN:4}@voip,55,o)
exten => _5555X.,n,Hangup()

[pickCallerIDnum]
exten => cell1,1,Set(CALLERID(num)=1111111111)
same => n,Return
exten => cell2,1,Set(CALLERID(num)=2222222222)
same => n,Return
exten => cell3,1,Set(CALLERID(num)=3333333333)
same => n,Return
exten => cell4,1,Set(CALLERID(num)=4444444444)
same => n,Return
exten => cell5,1,Set(CALLERID(num)=5555555555)
same => n,Return

I tried playing around with DYN variables with no luck. All suggestions are welcomed and greatly appreciated.

Re: Voice Broadcast Campaign with Multiple Audios

PostPosted: Thu Jan 28, 2021 11:34 pm
by striker
it can be done in voice broadcast campaign with remote agents.
that is calls will be sent to remote agent extensions, the external extension number will be configured with custom dialplan. as shown below.

using same dialplan you have used.
exten => _5555X.,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _5555X.,n,Gosub(pickCallerIDnum,cell${RAND(1,5)},1)
exten => _5555X.,n,Set(_MYAUDIO=${CALLERID(num)})
exten => _5555X.,n,Dial(sip/${EXTEN:4}@voip,55,Tto)
exten => _5555X.,n,Hangup()

[pickCallerIDnum]
exten => cell1,1,Set(CALLERID(num)=1111111111)
same => n,Return
exten => cell2,1,Set(CALLERID(num)=2222222222)
same => n,Return
exten => cell3,1,Set(CALLERID(num)=3333333333)
same => n,Return
exten => cell4,1,Set(CALLERID(num)=4444444444)
same => n,Return
exten => cell5,1,Set(CALLERID(num)=5555555555)
same => n,Return


Now remote agent extension dialplan, lets say 889977 is the extension number i used in remote agetnt
write the below dialplan in default context or custom dialplan in vicidial

exten => 889977,1,Answer()
exten => 889977,n,Playback(${MYAUDIO})
exten => 889977,n,Hangup()

for steps to create voicebroadcast with remote agent
chekout my youtube channel
https://www.youtube.com/c/striker24x7
Or reach me on skype:striker24x7