Deploying new changes to freeswitch

The joys of deploying new changes to FreeSWITCH!

Here's a step-by-step guide to help you deploy new changes to your FreeSWITCH installation:

Prerequisites

  1. Make sure you have a backup of your FreeSWITCH configuration and database before making any changes.
  2. Verify that you have the necessary permissions to modify the FreeSWITCH configuration files.

Step 1: Update the FreeSWITCH source code

  1. Checkout the latest version of FreeSWITCH from the official Git repository: git clone https://github.com/FreeSWITCH/FreeSWITCH.git
  2. Navigate to the FreeSWITCH source code directory: cd FreeSWITCH
  3. Update the source code to the latest version: git pull origin master

Step 2: Build and install FreeSWITCH

  1. Build FreeSWITCH using the following command: ./configure && make && make install
  2. This will compile and install the FreeSWITCH binary and its dependencies.

Step 3: Update the FreeSWITCH configuration files

  1. Update the autoload_configs directory with the new configuration files: cp -r autoload_configs/* /usr/local/freeswitch/autoload_configs/
  2. Update the conf directory with the new configuration files: cp -r conf/* /usr/local/freeswitch/conf/

Step 4: Restart FreeSWITCH

  1. Restart the FreeSWITCH service: sudo service freeswitch restart (or sudo systemctl restart freeswitch on systemd-based systems)
  2. Verify that FreeSWITCH has restarted successfully: ps -ef | grep freeswitch

Step 5: Test the new changes

  1. Test the new changes by making a test call to your FreeSWITCH installation.
  2. Verify that the changes are working as expected.

Additional tips

By following these steps, you should be able to successfully deploy new changes to your FreeSWITCH installation. Happy deploying!