freeswitch scripts
-
Clone the Media Server scripts repository.
git clone -b 5.12.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 -
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.12.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.12.0. The file should look like this:
version: "3.8" services: voice-connector: image: gitimages.expertflow.com/freeswitch/ecx_generic_connector:5.12.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:
-
Navigate to the existing outbound-dialer directory:
cd outbound-dialer -
Open the Docker Compose file:
vi docker-compose.yml -
Update the Variables in docker-variables.env and outbound dialer tag in the docker-compose.yml file, and run/start this Docker image.
# Outbound Dialer: rtc/outbound-dialer tag: 5.12.0 #variables FQDN:http://<CX VM IP> GOVERNOR_ENDPOINT=<CAMPAIGN-Backend NodePort> ROUTING_ENGINE_ENDPOINT=<Routing engine NodePort> -
Save and exit the file by pressing Esc, entering
:wq, and pressing Enter. -
docker compose up -d
apis (backend)
Changes required:
-
Navigate to the existing outbound-dialer directory:
cd recording-solution -
Open the docker-compose-efcx file:
vi docker/docker-compose-efcx.yml#change tag vrs-apis: image: gitlab.expertflow.com:9242/voice-recording-solution/apis:14.9.0 #add new variable in the docker/config.env file CONVERSATION_MANAGER=http://efcx_machineIP:Conversation_Manager_Nodeport e.g. (http://80.241.213.235:31201) -
#run script
./install-efcx.sh