Skip to main content
Skip table of contents

CX Voice Upgrade to 4.8

Voice Connector

Voice Connector
  1. SSH onto the Debian server on which the Voice connector is installed.

    1. Use command

      CODE
      ssh <username>@<server-ip>
    2. Enter user password and press ENTER.

    3. Use command

      CODE
      su
    4. Enter root password and press ENTER.

  2. Navigate to the folder where the docker-compose.yml and env.txt files are located for the voice connector.

  3. Open the docker-compose.yml file and replace the image tag with 4.8.

  4. Save and close the file.

  5. Run the command

    CODE
    docker compose up -d
  6. Confirm that the docker container is running by using the command

    CODE
    docker ps
  7. Confirm that the container is running correctly by opening the logs with command

    CODE
    docker logs -f containerID

Media Server configuration

Scripts
  1. SSH onto the Debian server on which the Voice connector is installed.

    1. Use command

      CODE
      ssh <username>@<server-ip>
    2. Enter user password and press ENTER.

    3. Use command

      CODE
      su
    4. Enter root password and press ENTER.

  2. Confirm git is installed, and install it if is not.

  3. Clone the Media Server scripts repository:

    CODE
    git clone -b 4.8 https://efcx:RecRpsuH34yqp56YRFUb@gitlab.expertflow.com/rtc/freeswitch-scripts.git
  4. Navigate to the cloned repository to access the files:

    CODE
    cd freeswitch-scripts
  5. Move the updated scripts and prompts to their respective folders:

    CODE
    mv consult_conf.lua customTransfer.lua set_recording_name.lua /usr/share/freeswitch/scripts/
    chmod -R 777 /usr/share/freeswitch/scripts/
Changes in Custom Hangup Dialplan
  • Login to Media Server web interface. 

    • Open in browser: https://IP-addr, where IP-addr is the IP address of the Media Server.

  • Add the username and password that was shown upon installation of Media Server and press LOGIN.

  • Press the IP address in the top right and select the Domain created in the Domain creation section above:

  • Open the Dialplan Manager section under the Dialplan tab.

  •  Open the Custom_Hangup dialplan.

  • Add the following information to this dialplan, so the result looks like the image below:

Tag

Type

Data

Group

Order

Enabled

action

sleep

1000

0

12

true

Screenshot 2025-02-25 141521.png
  • Save the changes by pressing SAVE button in top right corner.

Changes in Conference Dialplan
  • Login to Media Server web interface. 

    • Open in browser: https://IP-addr, where IP-addr is the IP address of the Media Server.

  • Add the username and password that was shown upon installation of Media Server and press LOGIN.

  • Press the IP address in the top right and select the Domain created in the Domain creation section above:

  • Open the Dialplan Manager section under the Dialplan tab.

  •  Open the CustomConf dialplan.

  • Modify the last line to:

Tag

Type

Data

Group

Order

Enabled

action

conference

$1++flags{mintwo}

0

35

true

image-20250304-072004.png
  • Save the changes by pressing SAVE button in top right corner.

Exte
  • Login to Media Server web interface. 

    • Open in browser: https://IP-addr, where IP-addr is the IP address of the Media Server.

  • Add the username and password that was shown upon installation of Media Server and press LOGIN.

  • Press the IP address in the top right and select the Domain created in the Domain creation section above:

  • Open the Dialplan Manager section under the Dialplan tab.

  •  Add a new Dialplan by pressing the Add Button on the top.

  •  Fill the form with following details :

    • Name = External_Consult_and_Transfer

    • Condition 1 =  Select destination_number from list and add a random number

    • Action 1  =  Select first item from the list  

  • Save the form by pressing save button on top right Corner.

  • Re-open the created dialplan.

  • Change the value of the Data column in the destination_number row to ^99887765[-0-9a-zA-Z]*$

  • Change the value of the Type column in the Action row to lua and the Data field to customTransfer.lua

image-20250313-085303.png
  • Set the Context field to the value of the Domain set in the Domain creation section.

  • Set the Domain field to the value of the Domain set in the Domain creation section.

  • Save the changes by pressing SAVE button in top right corner.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.