I have a simple scenario with the follow problem:
A OpenSIPS server with public address 184.108.40.206
A pair UAC behind NAT, A -> 192.168.3.100 and B -> 192.168.3.101
NAT public address -> 220.127.116.11
If i try to call from A to B using Mediaproxy no problem.
But if no use Mediaproxy there is not dialog, no hear nothing.
When parse the sip traffic can see that both UAC are sending RTP to 18.104.22.168
Further in the contact column on the location table, we can see:
sip:A@22.214.171.124 and sip:B@126.96.36.199
when i think that would must be: A@192.168.3.100 and B@192.168.3.101
or no? What's happening?
I checked that some gateways rewrite the Contact field of SIP Message Header. This can be parsed by SER to order divert RTP for Mediaproxy.