You will make the nat_uac_test() also for REGISTER requests. If the
client registers from behind NAT, set a certain flag:
setflag(6)
configure the registrar module to use this flag as NAT flag:
modparam("registrar", "nat_flag", 6)
During save() the value of the nat_flag will also be stored.
If you now have a call to this client, you can test the flag after lookup:
lookup();
if (isflagset(6))
force_rtpproxy; # and all the NAT traversal (replyroute...)
regards
klaus
Leonid Fainshtein wrote:
Hi,
I would like to force RTP proxy for calls when UAC is located on the
public Internet and the UAS is located behind a NAT system. The
nat_uac_test() doesn't help in such situation because the INVITE is
issued by endpoint located on the public Internet. In other words, I'm
looking for a way to get info about the UAS. If it is located behind NAT
than I would force RTP proxy.
Thank you in advance,
Leonid Fainshtein
_______________________________________________
Users mailing list
Users(a)openser.org
http://openser.org/cgi-bin/mailman/listinfo/users