Change TCP for registration for SIP traffic

How to configure Asterisk such that it will use TCP for registration for all sip traffic ?

Thanks
AXISHKAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
naulivConnect With a Mentor Commented:
Theoretically, this is all that's required:

shell~> asterisk -rvvv
asterisk*CLI> sip reload

To make sure you are now listening on TCP ports, you can issue the command:
shell~> netstat -an

You might want to try and restart the whole asterisk application if it doesn't seem to kick in.
0
 
naulivCommented:
Hello,

Assuming you are using the latest version of Asterisk, put the following in your sip.conf:

tcpenable=yes
tcpbindaddr=<ip_address_to_listen_on>


You can use tcpbindaddr=0.0.0.0 if you want to use all network interfaces to listen on TCP.

Good Luck !
0
 
AXISHKAuthor Commented:
After making change in SIP.conf, can I just connect to Asterisk daemon (asterisk -r) and reload the SIP (sip reload) for the change to take effect ?

Thanks
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.