Archive

Posts Tagged ‘sip over tcp asterisk’

SIP over TCP using Asterisk IPPBX

December 2nd, 2013 No comments

SIP commonly runs over UDP but there are times when you may need to run it over TCP. To allow SIP TCP clients to connect with asterisk  is easy brader :-) , you just need to update sip_general_additional.conf  with the following config.

(Already tested on our production environtment)

;--------------------------------------------------------------------------------;
; Do NOT edit this file as it is auto-generated by FreePBX. All modifications to ;
; this file must be done via the web gui. There are alternative files to make ;
; custom modifications, details at: http://freepbx.org/configuration_files ;
;--------------------------------------------------------------------------------;
;
vmexten=*97
disallow=all
allow=ulaw
allow=alaw
allow=h263
allow=h264
videosupport=yes
context=from-sip-external
callerid=Unknown
notifyringing=yes
notifyhold=yes
limitonpeers=yes
tos_sip=cs3
tos_audio=ef
tos_video=af41
alwaysauthreject=yes
; This part below you should add
tcpenable=yes
tcpbindaddr=0.0.0.0

Within your SIP clients definition you have to add transport=tcp for each individual connection, just like this; Read more…