[Users] Force RTP proxy when calling NATed UAS

Klaus Darilion klaus.mailinglists at pernau.at
Tue Jul 11 11:14:51 CEST 2006

You will make the nat_uac_test() also for REGISTER requests. If the 
client registers from behind NAT, set a certain flag:


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:

if (isflagset(6))
   force_rtpproxy; # and all the NAT traversal (replyroute...)


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 at openser.org
> http://openser.org/cgi-bin/mailman/listinfo/users

More information about the sr-users mailing list