CX Voice Upgrade to 4.5.2
Voice Connector
SSH onto the Debian server on which the Voice connector is installed.
Use command
CODEssh <username>@<server-ip>
Enter user password and press ENTER.
Use command
CODEsu
Enter root password and press ENTER.
Run the command to see the list of running containers
CODEdocker ps
Note the container ID of the current deployed 4.5.1 Voice connector.
Note the port of that container i.e. for 0.0.0.0:8116->8080/tcp, :::8116->8080/tcp, the port of the container is 8116.
Run the command to stop the container
CODEdocker stop <container-ID>
Run the command to remove the container
CODEdocker rm <container-ID>
Navigate to the folder where the docker-compose.yml and env.txt files are located for the voice connector.
Open the docker-compose.yml file and replace the text inside with text below:
CODEversion: "3.8" services: voice-connector: image: gitimages.expertflow.com/freeswitch/ecx_generic_connector:4.5.2 container_name: unified-voice-connector ports: - PORT:8080 env_file: - ./env.txt restart: always
Replace the PORT keyword with the port noted above in step 4.
Open the env.txt file and remove the fields MIDDLEWARE_API, DB_NAME, DB_URL, DB_PORT, DB_USERNAME, DB_PASS, DB_CONN_TIMEOUT and DB_DRIVER.
Run the command
CODEdocker compose up -d
Confirm that the docker container is running by using the command
CODEdocker ps
Confirm that the container is running correctly by opening the logs with command
CODEdocker logs -f containerID
Media Server configuration
SSH onto the Debian server on which the Voice connector is installed.
Use command
CODEssh <username>@<server-ip>
Enter user password and press ENTER.
Use command
CODEsu
Enter root password and press ENTER.
Confirm git is installed, and install it if is not.
Clone the Media Server scripts repository:
CODEgit clone -b 4.5.2 https://efcx:RecRpsuH34yqp56YRFUb@gitlab.expertflow.com/rtc/freeswitch-scripts.git
Navigate to the cloned repository to access the files:
CODEcd freeswitch-scripts
Move scripts to the Media Server scripts folder:
CODEmv *.lua /usr/share/freeswitch/scripts
Run the following command:
CODEchmod -R 777 /usr/share/freeswitch/scripts
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 being used::
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 = Silent Monitoring
Condition 1 = Select destination_number from list and add ^\*44(\d{2,15})$
Action 1 = Select first item from the list
Save the form by pressing save button on top right Corner.
Re-open Silent Monitoring dialplan.
Delete the line with the Action tag (Click the checkbox in the right and press SAVE in the top right)
Add the following information to this dialplan:
Tag | Type | Data | Group | Order | Enabled |
---|---|---|---|---|---|
action | set | sip_h_X-CallType=MONITOR | 0 | 10 | true |
action | export | sip_h_X-CallType=MONITOR | 0 | 15 | true |
action | lua | eavesdrop_custom.lua $1 | 0 | 20 | true |
Set the Context field to the value of the Domain being used..
Set the Domain field to the value of the Domain being used..
Save the changes by pressing SAVE button in top right corner.
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 being used.:
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 = CustomConf
Condition 1 = Select destination_number from list and add ^custom_conf_(.*)$
Action 1 = Select first item from the list
Save the form by pressing save button on top right Corner.
Re-open CustomConf dialplan.
Delete the line with the Action tag (Click the checkbox in the right and press SAVE in the top right)
Add the following information to this dialplan:
Tag | Type | Data | Group | Order | Enabled |
---|---|---|---|---|---|
action | answer | 0 | 10 | true | |
action | set | session_in_hangup_hook=true | 0 | 15 | true |
action | export | session_in_hangup_hook=true | 0 | 20 | true |
action | set | api_hangup_hook=lua cx_hangup.lua $1 | 0 | 25 | true |
action | export | api_hangup_hook=lua cx_hangup.lua $1 | 0 | 30 | true |
action | conference | $1 | 0 | 35 | true |
Set the Context field to the value of the Domain being used..
Set the Domain field to the value of the Domain being used..
Save the changes by pressing SAVE button in top right corner.
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 being used.:
Open the Dialplan Manager section under the Dialplan tab.
Find and open the user_exists dialplan.
Add the following information(to add custom values in the Type column, select a random value then click on it to edit):
Tag | Type | Data | Group | Order | Enabled |
---|---|---|---|---|---|
condition | ${sip_h_X-CallType} | ^CONSULT$ | 3 | 5 | true |
action | bind_meta_app | A a s1 lua::consult_conf.lua CONSULT_TRANSFER | 3 | 10 | true |
action | bind_meta_app | C a s1 lua::consult_conf.lua CONSULT_CONFERENCE | 3 | 15 | true |
The result will look like this:
Save the changes by pressing SAVE button in top right corner.
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 being used.:
Open the Conference Profiles section under the Applications tab:
Open the profile named default:
Under the Profile Parameters, find the following keywords under the Name column and click the checkbox:
Press TOGGLE in the top right and choose CONTINUE in the prompt shown.
Save the changes by pressing SAVE button in top right corner.
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 being used.:
Open SIP Profiles under the Advanced tab.
Open the internal profile, scroll down to the ws-binding and wss-binding fields, and set their Enabled column values to True.
Find the liberal-dtmf fields and its Value and Enabled columns to true.
At the bottom add the data:
Name | Value | Enabled |
---|---|---|
apply-candidate-acl | 0.0.0.0/0 | True |
Press the SAVE button on the top right.
Open SIP Status under the Status tab.
Locate the line sofia status profile internal and to its right press the RESCAN button, followed by the RESTART button after the page reloads.