Hallo,
we have the following networking setup:
LAN 10.10.10.0 with phones
|
10.10.10.1
Asterisk with two NICs
192.168.0.3
|
LAN 192.168.0.0
|
192.168.0.1
Router with two NICs
Public IP
At the moment we have this pjsip.conf:
[global]
; keep alive for TCP-connections
keep_alive_interval=20[transport-udp-lan]
;PHONES LAN
type = transport
protocol = udp
bind = 10.10.10.1[transport-tcp-wan]
;OFFICE LAN
type = transport
protocol = tcp
bind = 192.168.0.3[provider]
type = registration
outbound_auth = provider
server_uri = sip:provider.net
client_uri = sip:000xxxxxxxxx@provider.net
contact_user = 000xxxxxxxxx
auth_rejection_permanent = no
retry_interval = 45
forbidden_retry_interval = 45
max_retries = 9999
expiration = 120
transport = transport-tcp-wan[provider]
type = auth
auth_type = userpass
password = ************
username = 000xxxxxxxxx
realm = provider.net[provider]
type = aor
contact = sip:IP.OF.provider:5060[provider]
type = identify
endpoint = provider
match = IP.OF.provider[provider]
type = endpoint
context = in
rtp_symmetric = yes
disallow = all
allow = ulaw
allow = alaw
rtp_keepalive = 10
tone_zone = de
language = de
outbound_auth = provider
aors = provider
transport = transport-tcp-wan… more config of phones, AORs, etc.
I am now wondering how to correctly setup the NAT config with
local_net
external_media_address
external signalling_address
Do both transports (PHONES LAN and OFFICE LAN) need all the settings?
We have a fixed public IP and I understand it should go into
external_media_address and external signalling_address
But does it need to be set in both transports or into one of them only?
Same question for local_net. Should it go into both transports or just into on of them?
Sadly the only documentation I was able to find was the example pjsip.conf that didn’t cover my case with 2 different subnets.
An explanation would be very appreciated.
Thank you very much!