How we can help?

Change Asterisk-based systems to use alternate SIP port 5160


  • Details in this document are for reference only and are unsupported by the Flowroute support staff.
  • Please use as purely reference material; we make no guarantees that this information is correct, or will not harm your system. Please be careful and always keep a backup of anything before you make changes, or alter settings.

This article describes how to change your Asterisk-based system to use Flowroute's alternate SIP port 5160 for all SIP signaling. Making this change is useful 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 with editing Asterisk configuration files or your PBX's admin web interface, changing the local SIP port on your desk phones or softphones, and that you have some computer networking understanding. 

  • 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 to complete this task might be required. 

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 to command line to your Asterisk system's config files or admin web interface access to your Flowroute Trunk peer details.

To change your SIP port to 5160:
  1. Do one of the following: 

    • Go to /etc/asterisk/, or 

    • Use your PBX web interface to edit your Flowroute Trunk. 

  2. Set the port to 5160 through one of the following methods:

    • In /etc/asterisk/, open sip.conf with a text editor; or

    • In the PBX web interface, edit the Trunk Peer Details in your system's web interface by adding the following information: 


      If you're using SIP registration, add 5160 to the end of your registration string, so it resembles the following:

      register => 

  3. Restart Asterisk or your reboot your PBX. 

    NOTE: Consult your PBX documentation on how to perform this. Many PBXs can restart Asterisk by running the following commands:
    service restart asterisk 
    /etc/init.d/asterisk restart

If your desk phones do not work after the changes, you might 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.