Hi!
I've been playing around with mediaproxy for quite some time and it's running pretty well for natted connections. On the downside it's also redirecting connections between two external hosts to the mediaproxy.
Using the client_nat_tests() function there should be a way to prevent this but it seems as if I failed to get it done correctly.
Could someone paste a config that is able to distinguish clients properly?
How would I handle connections that only have one host behind that so the INVITE comes from a not-natted connection going to a natted client (and the other way round)? I thought about calling use_media_proxy() for all initial INVITES and call it a second time on the reply route only if client_nat_test("3") found a NAT.
For my last tests I used the example config from modules/mediaproxy/config/ser.cfg so I don't have to paste it here.
I'm thinking of marking clients as 'needs NAT' when the register and client_nat_test("3") is true and when an INVITES comes I check both the source and destination to determine whether I need to use the mediaproxy. Makes sense?
Thanks, Hendrik