[OpenSIPS-Users] RURI domain on NAT'd endpoints

Thomas Gelf thomas at gelf.net
Sun Sep 6 11:03:30 CEST 2009


Jeff Pyle wrote:
> It seems to me when I first started playing with the nat_traversal style
> commands one difference was the way the contact field was stored in the
> location table.  The new commands stored the public IP (post-fix_contact)
> while the old commands stored the private IP (pre-fix_contact).  At the
> moment I don't see the private IP at all in the location record.  Before I
> can get it into the RURI I'm going to need it here somewhere.
> 
> Are there any comments on the 'proper' way to do all this?  Order of
> commands, for example?  The documentation was a little thin on big-picture,
> practical implementation.

The following should help you:

modparam("registrar", "received_avp", "$avp(i:123)")
modparam("usrloc",    "nat_bflag",    6)

setbflag(6);
$avp(i:123) = $source_uri;
nat_keepalive();
save("location");

Best regards,
Thomas Gelf




More information about the Users mailing list