- Joined
- Jan 13, 2022
- Messages
- 6
- Reaction score
- 0
I have a problem with my SIP Trunk. It registers fine and I can make outbound calls, but inbound calls do not work.
In particular an outbound RTP connection is created but the UAC does not respond to my 200 OK SDP thus not creating the inbound one. After some investigation I found out that this is caused by the option "Put Public IP in SIP VIA Header". When I receive the SDP INVITE in the VIA header there is the UAC IP x.y.z.w, but the 200 OK response contains instead my public IP a.b.c.d. This is rejected by the UAC. On the other hand disabling "Put Public IP in SIP VIA Header" leaves the VIA header untouched, but also naturally does not put the correct IP when it is my PBX that initiates the INVITE and also does not work. Indeed when using a different PBX - which preserves the IP on responses and puts the public IP in INVITEs - calls work correctly in both direction.
TLDR: How do I make it so that SIP packets initiated by 3CX contain my public IP in VIA, while responses contain the original IP.
In particular an outbound RTP connection is created but the UAC does not respond to my 200 OK SDP thus not creating the inbound one. After some investigation I found out that this is caused by the option "Put Public IP in SIP VIA Header". When I receive the SDP INVITE in the VIA header there is the UAC IP x.y.z.w, but the 200 OK response contains instead my public IP a.b.c.d. This is rejected by the UAC. On the other hand disabling "Put Public IP in SIP VIA Header" leaves the VIA header untouched, but also naturally does not put the correct IP when it is my PBX that initiates the INVITE and also does not work. Indeed when using a different PBX - which preserves the IP on responses and puts the public IP in INVITEs - calls work correctly in both direction.
TLDR: How do I make it so that SIP packets initiated by 3CX contain my public IP in VIA, while responses contain the original IP.