Change FreePBX 13 to use alternate SIP port 5160

This article describes how to change your FreePBX 13 system to use Flowroute's alternate SIP port 5160 for all SIP signaling. Making this change is effective in avoiding ISP or internet backbone VoIP issues that occur on the standard SIP port 5060 that most third-party VoIP systems use. This article assumes you're comfortable navigating the FreePBX web admin, changing the local SIP port on your desk phones and/or softphones, and that you have some computer networking understanding. 

IMPORTANT: Please note the following: 

  • Changing the port might require taking your system offline.
  • Because you might need to change the local SIP port on each user's phone to port 5160, a considerable amount of downtime might be required to complete this task.
We recommend only making these changes during off-hours, or when you can allow for a sufficient amount of downtime.
Before you begin
  • You will need access to the FreePBX web admin interface and the commandline.

To change your FreePBX SIP port to 5160:
  1. Log on to your FreePBX web administration application, and in the navigation pane go to your Flowroute Trunk.

  2. Set the port to 5160 by doing the following: 

    • Click Settings at the top of the page. 

    • Click Chan SIP Settings

    • Scroll down to Advanced General Settings

    • Change the Bind Port to 5160

    • Click Connectivity at the top of the page. 

  3. In the navigation pane, click Trunks and do the following: 

    • Under Actions, edit your Flowroute Trunk, 

    • Click the SIP Settings tab. 

    • On the Outgoing tab, under Peer Details, add the following: 

      port=5160 

    • Click the Incoming tab. 

    • Add 5160 to the end of your Register String if you are using SIP Registration. For example,  

      register => 55225552:GcMe7555cKnw@sip.flowroute.com:5160 

    • Click Submit

    • Click Apply Config at the top of the page to save changes. 

  4. Restart FreePBX or your reboot your server:

    NOTE: FreePBX can usually be restarted without shutting down your server by running the following command from the FreePBX commandline as root: 

    amportal restart

If your desk phones do not work after the changes, you may need to change the local SIP port on each one to 5160. Please consult with your phone manufacturer's documentation if you're unsure how to do this. 

Did you find this article helpful?