In the Admin interface of VICIdial go to ADMIN -> System Settings
Change Webphone URL to the URL you will be loading VICIphone from. On newer installs of VICIdial this defaults to https://phone.viciphone.com/viciphone.php. You can leave this as is if you would like.
In the Admin interface of VICIdial go to Admin -> Servers.
For each server in the cluster change it’s External Server IP to the publicly accessible IP of the server. If the server is behind an external firewall then this would be the publicly accessible IP that is forwarding port 8089 to the server.
Also for each server set the “Web Socket URL” field to the actual Web Socket URL being used by this Asterisk server. Should something like wss://yourdialerurl.com:8089/ws. Be sure to replace yourdialerulr.com with the Fully Qualified Domain Name of the server.
In the Admin interface of VICIdial go to Admin -> Templates and create a new template with the following contents:
type=friend
host=dynamic
encryption=yes
avpf=yes
icesupport=yes
directmedia=no
transport=wss
force_avp=yes
dtlsenable=yes
dtlsverify=no
dtlscertfile=/PATH/TO/YOUR/SSL/CERT/FILE
dtlsprivatekey=/PATH/TO/YOUR/SSL/KEY/FILE
dtlssetup=actpass
rtcp_mux=yes
NOTE: in the above template, the text “/PATH/TO/YOUR/SSL/CERT/FILE” & “/PATH/TO/YOUR/SSL/KEY/FILE” should replaced with the exact file names or your SSL certificate and key files.
In the Admin interface of VICIdial go to Admin -> Phones and edit the agent’s phone.
On that phone change the following fields to: Set As Webphone: Y Webphone Auto-Answer: Y Use External Server IP: Y Template ID: (select the template created in step #6)
Have the agent log into the HTTPS encrypted agent web interface.
Once they have selected the campaign and clicked “submit”, VICIphone should be launched with all of the correct settings. It runs embedded in the upper right corner of the agent’s browser, as part of their VICIdial agent interface.