[OpenSIPS-Users] RURI domain on NAT'd endpoints
Jeff Pyle
jpyle at fidelityvoice.com
Tue Sep 8 01:41:47 CEST 2009
Right.
I didn't have the usrloc portion configured before, and I was running
fix_contact() on everything detected as NAT. I've modified the top of
route[0] to look like this:
if (client_nat_test("3")) {
force_rport();
$avp(s:received_uri) = $source_uri;
if (!is_method("REGISTER")) fix_contact();
setbflag(7);
} # nat_keepalive() further down after some pref checks
Is this wise?
Thanks,
Jeff
On 9/6/09 11:20 AM, "Thomas Gelf" <thomas at gelf.net> wrote:
> Thomas Gelf wrote:
>> 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");
>
> Forgot to mention that those lines shall obviously only be
> called once client_nat_test discovered a problem ;-)
>
> Cheers,
> Thomas
More information about the Users
mailing list