VOIP LAB DAY 7 Enabling TCP on Asterisk

Welcome back to My VOIP LAB. Today we will continue the configuration of  Incredible PBX to act as PSTN gateway for Skype for Business.

After you set up your Incredible PBX with a static IP, try reconnecting to it with SSH. Before you reconnect, you may beed to delete your .ssh folder in home directory.

The second thing you need to configure on the Incredible PBX and this is pretty important, is to enable TCP on Asterisk. By default Asterisk uses UPD for SIP. There are numerous articles and instructions out there explaining that you can turn TCP on the Web admin.. This never worked for me. I needed to edit /etc/asterisk/sip.conf file to enable TCP on Asterisk.. This is especially tricky since Skype for Business always uses TCP for SIP. Asterisk by default uses UDP, they never talk to each other unless you make Asterisk talk TCP. To make things worse, there are articles that say you should never touch the sip.conf file.. Well in this case the only way to do it is to edit sip.conf file.. and here is how you should do it.

Connect to your Incredible PBX with SSH or telnet.

Use nano to edit the sip.conf file.

root@IncrediblePBX:/etc/asterisk $ nano sip.conf

Insert those two lines right beneath [general]
[general]
tcpenable=yes
tcpbindaddr=0.0.0.0


Do Ctrl o and Ctrl x to save and exit nano.

Restart Asterisk by doing "amportal restart"

root@IncrediblePBX:/etc/asterisk $ amportal restart

Please wait...


STOPPING ASTERISK
Waiting for Asterisk to Stop Gracefully...

Asterisk Stopped

SETTING FILE PERMISSIONS.................Done
Removing any dangling symlinks
Dangling symlinks removed

STARTING ASTERISK
Asterisk Started
WARNING: Always run Incredible PBX behind a secure hardware-based firewall.
root@IncrediblePBX:/etc/asterisk $


No comments: