Try use it for INVITE, BYE and CANCEL as well.
On Jul 16, 2004, at 11:49 AM, Andrea Bondavalli wrote:
No,
I do that only in case of REGISTER .
if (client_nat_test("3")) {
if (method == "REGISTER" || ! search("Record-Route:")) {
fix_contact();
force_rport();
}
}
Thank you,
Andrea
----- Original Message -----
From: "Adrian Georgescu" <ag(a)ag-projects.com>
To: "Andrea Bondavalli" <a.bondavalli(a)inet.it>
Cc: <serusers(a)lists.iptel.org>
Sent: Friday, July 16, 2004 11:39 AM
Subject: Re: [Serdev] NAT traversal of the BYE transaction
> Do you have something like this into your configuration?
>
> if (client_nat_test("3")) {
> force_rport();
> fix_contact();
> };
>
> On Jul 16, 2004, at 11:27 AM, Andrea Bondavalli wrote:
>
>> As you can see from the following traces the Via field
>> (Via: SIP/2.0/UDP
>> 192.168.0.10:5060;received=213.92.1.143;branch=z9hG4bK-fdee73bb)
>> of the BYE sent by 213.92.1.178:5060 to 213.92.1.197:5060 doesn't
>> report
>> the port number of the incoming interface (rport=1029).
>
> The final result is that the answer (200 OK) is sent back to
> the wrong port number (5060 instead of 1029).