Skip to content

Instantly share code, notes, and snippets.

@ambiorixg12
Created January 7, 2019 21:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ambiorixg12/07d1553e287a24fb9a8715ead5b10f9b to your computer and use it in GitHub Desktop.
Save ambiorixg12/07d1553e287a24fb9a8715ead5b10f9b to your computer and use it in GitHub Desktop.
chan_sip NAT settings
nat=rtp_force,comedia
directmedia=no
localnet=192.168.0.0/255.255.0.0 ; RFC 1918 addresses
localnet=10.0.0.0/255.0.0.0 ; Also RFC1918
localnet=172.16.0.0/12 ; Another RFC1918 with CIDR notation
localnet=169.254.0.0/255.255.0.0 ; Zero conf local network
externaddr = (PUBLIC IP)
media_address = X.X.X.X (PUBLIC IP)
qualify=yes
rtpkeepalive=5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment