Hi all,
I know i am missing something trivial here. I have read a lot about NAT and i do not seem to get this right.
I have a system running:
phone--->NAT router--->internet--->fusionPBX (without NAT)--->trunk provider (no NAT)
Now, when i make a call with my phone, i see in the following SIP packets (heavily redacted):
INVITE sip:0031xxxxxx@tenant.voip.domain.nl:5080 SIP/2.0
Via: SIP/2.0/UDP 192.168.1.50:5064;branch=z9hG4bK1173805850;rport
From: <sip:202@tenant.voip.domain.nl:5080>;tag=712368681
To: <sip:0031xxxxxxxxxxx@tenant.voip.domain.nl:5080>
Contact: <sip:202@192.168.1.50:5064>
User-Agent: Grandstream GXP2130 1.0.8.47
Obviously the Via and Contact contain the NAT address of my phone (and not the public address of the NAT router). The result is that the RTP stream is send to the address 192.168.1.50 which, of course, ends up nowhere...
The weird thing is: SOMEtimes the calls DO get through and the public ip of the NAT router of the extension is used.
What am i doing wrong here? Please mind: FusionPBX is NOT behind nat... the (remote) phone is.
Thank you very much in advance.
Regards,
Jeroen
I know i am missing something trivial here. I have read a lot about NAT and i do not seem to get this right.
I have a system running:
phone--->NAT router--->internet--->fusionPBX (without NAT)--->trunk provider (no NAT)
Now, when i make a call with my phone, i see in the following SIP packets (heavily redacted):
INVITE sip:0031xxxxxx@tenant.voip.domain.nl:5080 SIP/2.0
Via: SIP/2.0/UDP 192.168.1.50:5064;branch=z9hG4bK1173805850;rport
From: <sip:202@tenant.voip.domain.nl:5080>;tag=712368681
To: <sip:0031xxxxxxxxxxx@tenant.voip.domain.nl:5080>
Contact: <sip:202@192.168.1.50:5064>
User-Agent: Grandstream GXP2130 1.0.8.47
Obviously the Via and Contact contain the NAT address of my phone (and not the public address of the NAT router). The result is that the RTP stream is send to the address 192.168.1.50 which, of course, ends up nowhere...
The weird thing is: SOMEtimes the calls DO get through and the public ip of the NAT router of the extension is used.
What am i doing wrong here? Please mind: FusionPBX is NOT behind nat... the (remote) phone is.
Thank you very much in advance.
Regards,
Jeroen