[OpenSIPS-Users] INVITE not forwarded, call fails

Jeff Pyle jpyle at fidelityvoice.com
Tue Nov 24 14:59:00 CET 2009


Yes.  Trying adding this to the reply route:

        if (client_nat_test("1")) {
                fix_contact();
        }

For reasons I can't remember, the only test that works for the reply route
is "1", so you shouldn't change it.

Make sure you arm the reply route with t_on_reply() before t_relay.


- Jeff


On 11/24/09 8:35 AM, "lorenzo" <asymmetric at autistici.org> wrote:

> On 15/11/09 22:38, Bogdan-Andrei Iancu wrote:
>> Or maybe the INVITE from the biascica to yhe asymmetric is not going
>> through because of the NAT (maybe the client is doing a poor job in
>> keeping the pinhole opened in the nat). So, as time as the call is
>> originated from behind the nat, it will work, but when  from outside, it
>> will not be able to traverse the nat and reach the client.
>> 
>> Regards,
>> Bogdan
>> 
> 
> yeah, that is the problem. i did some ngrepping, and what happens is
> that the REGISTER reply is sent to the right port thanks to rport, while
> the INVITE forwards are sent to the wrong port (the one in the
> contact/via headers).
> 
> i tried modifying the opensips.cfg file, but to no avail..
> 
> here's what the REGISTER section of my main request routing logic looks
> like:
> 
> if (is_method("REGISTER"))
> { 
> if (client_nat_test("8")) {
> xlog(">>>nat test ok<<<\n\n");
> fix_contact();
> }
> 
> if (!save("location"))
> sl_reply_error();
> 
> exit;
> }
> 
> shouldn't the fix_contact() function do exactly what i need? should it
> be put in another route?
> 
> thanks for your help!
> 
> 
> 
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users




More information about the Users mailing list