FreeSWITCH Scripts
-
Clone the Media Server scripts repository.
git clone -b 5.7.0 https://efcx:RecRpsuH34yqp56YRFUb@gitlab.expertflow.com/rtc/freeswitch-scripts.git -
Navigate to the cloned repository:
cd freeswitch-scripts -
Move the
.luascript files to the Media Server scripts folder:mv *.lua /usr/share/freeswitch/scripts -
Move the ivr_prompts folder:
mv ivr_prompts /usr/share/freeswitch/sounds/ -
Assign read-write permissions to the ivr_prompts and scripts folders:
chmod 777 -R /usr/share/freeswitch/sounds/ivr_prompts chmod 777 -R /usr/share/freeswitch/scripts -
Open vcApi.lua (the main Voice Connector API file used to connect the call to Agent Desk):
vi /usr/share/freeswitch/scripts/vcApi.lua -
Search for
fsIpand replacefsIp = '192.168.1.161'with your actual Media Server public IP. -
Save and exit the file by pressing Esc, entering
:wq, and pressing Enter.
Voice Connector
The Voice Connector is deployed as a Docker image. Update it to tag 5.7.0 as follows.
-
Navigate to the existing Voice Connector directory:
cd voice-connector -
Open the Docker Compose file:
vi docker-compose.yml -
Update the image tag to 5.7.0. The file should look like this:
version: "3.8" services: voice-connector: image: gitimages.expertflow.com/freeswitch/ecx_generic_connector:5.7.0 deploy: resources: limits: memory: 1024m reservations: memory: 256m container_name: unified-voice-connector ports: - 8115:8080 env_file: - ./env.txt command: ["java", "-Xms256m", "-Xmx1024m", "-XX:+UseG1GC", "-XX:MinHeapFreeRatio=10", "-XX:MaxHeapFreeRatio=30", "-jar", "/app/ecx_generic_connector.jar"] restart: always -
Save and exit the file by pressing Esc, entering
:wq, and pressing Enter. -
Start the updated container:
docker compose up -d --build
Outbound Dialer
Changes required:
-
Add these environment variables in the docker-variables.env file of outbound-dialer:
SLOT_FREE_FLUSH_DELAY=2
GOVERNOR_URL=<FQDN_HERE>/campaigns
-
Update the outbound dialer tag in the docker-compose.yml file to 5.7.0, and run/start this Docker image.
docker compose up -d -
Use the update tenant API and add “
dialerURL" indialerobject in the tenantSettings for all tenants:"dialer": { "serviceIdentifier": "8224", "maxConcurrentCalls": "5", "maxCallTime": "60", "callsPerSecond": "15", "dialerURL": "http://192.168.1.17:6669" }
Related Documentation
-
For voicemail setup after this upgrade, follow the Voicemail Configuration Guide.