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" <[email protected]> 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
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users