CX Voice Upgrade Guide 5.7.0

FreeSWITCH Scripts

  1. Clone the Media Server scripts repository.

    git clone -b 5.7.0 https://efcx:RecRpsuH34yqp56YRFUb@gitlab.expertflow.com/rtc/freeswitch-scripts.git
    
  2. Navigate to the cloned repository:

    cd freeswitch-scripts
    
  3. Move the .lua script files to the Media Server scripts folder:

    mv *.lua /usr/share/freeswitch/scripts
    
  4. Move the ivr_prompts folder:

    mv ivr_prompts /usr/share/freeswitch/sounds/
    
  5. 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
    
  6. Open vcApi.lua (the main Voice Connector API file used to connect the call to Agent Desk):

    vi /usr/share/freeswitch/scripts/vcApi.lua
    
  7. Search for fsIp and replace fsIp = '192.168.1.161' with your actual Media Server public IP.

  8. 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.

  1. Navigate to the existing Voice Connector directory:

    cd voice-connector
    
  2. Open the Docker Compose file:

    vi docker-compose.yml
    
  3. 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
    
  4. Save and exit the file by pressing Esc, entering:wq, and pressing Enter.

  5. Start the updated container:

    docker compose up -d --build
    

Outbound Dialer

Changes required:

  1. Add these environment variables in the docker-variables.env file of outbound-dialer:

SLOT_FREE_FLUSH_DELAY=2
GOVERNOR_URL=<FQDN_HERE>/campaigns
  1. 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
    
  2. Use the update tenant API and add “dialerURL" in dialerobject in the tenantSettings for all tenants:

    "dialer": {
    "serviceIdentifier": "8224",
    "maxConcurrentCalls": "5",
    "maxCallTime": "60",
    "callsPerSecond": "15",
    "dialerURL": "http://192.168.1.17:6669"
    }