Changing Default SIP Port in Asterisk

Asterisk by default use 5060 as its sip signaling port. It is a good idea to change the default sip port as most of the SIP vulnerable attacks occurs on its default port 5060.

To change the SIP port, open /etc/asterisk/sip.conf in your favorite text editor, look for the entry bindport and change the value of it to your new port number. If you didn’t find the bindport entry in your sip.conf file, add the below line under the [general] section inside sip.conf

bindport=portnumber

i.e., if you want to change the port number to 5080, add the line as

bindport = 5080

Reload your asterisk configuration to make the changes active. Use the below command to check if the changes are active and SIP listens on the new port number

netstat -ntulp | grep portnumber

example : netstat -ntulp | grep 5080

If you see an output for the above command, then the changes are active and SIP now listens on new port number.

New Posts

Why VoIP Phone System is better choice for businesses

Why VoIP Phone System is better choice for businesses? Having a phone is a must for any business small or large, new or old. Traditionally office phone numbers were just a medium for business to business or business to consumer voice interactions. But entry of VoIP in...

read more

SMS via Email – Receiving, Replying & Sending

SMS VIA EMAIL – RECEIVING, REPLYING & SENDINGDIDForSale’s new feature will enable its user to receive, reply & send SMS via email. This will give individuals and resellers the capability to allow anyone to receive, reply & send SMS by using an email address. Easy...

read more

Learn more about our Products

SIP TRUNKING

PHONE NUMBERS

Visit SIP Trunking Pricing to see which plan best suits your business!

With so many options to pick from it can often be hard to decide what’s best.
Our plans have been packaged together to give you optimum output.

Our SIP Trunks are Compatible with wide range of PBX & Platforms.

Share This