Hello,
I'm sorry if this question was asked before, I googled and did not found references to it.
I'm interested in reducing load of mediaproxy (using mediaproxy 1.8.0, openser-devel). Is it possible to connect callers not behind NAT directly and how configuration should look like?
I want to direct traffic by this scheme:
Caller Proxy Called
NAT <- mediaproxy -> NAT NAT <- mediaproxy -> not NAT not NAT <- mediaproxy -> NAT not NAT <- direct connect -> not NAT
I tried configuration something like this:
route { if (client_nat_test(3)) { use_media_proxy(); t_on_reply("1"); } }
onreply_route[1] { if (client_nat_test("2")) { use_media_proxy(); } }
And it works fine then caller is behind NAT and called is not (NAT <-> not NAT) - traffic was directed via mediaproxy. But, then caller is not behind NAT and called is (not NAT <-> NAT), this configuration does not work.
Any suggestions? Thanks.