[OpenSIPS-Users] Fixing the Contact Header for NAT

Iñaki Baz Castillo ibc at aliax.net
Thu Nov 27 15:07:43 CET 2008


El Jueves, 27 de Noviembre de 2008, Juan Backson escribió:
> Hi Inaki,
>
> Thank you for your kindness in helping me out.
> I think your diagnosis of the problem is exactly what I am facing right
> now.
> I tried to solve it by putting in :
>
>     if (nat_uac_test("19")) {
>         xlog("nat client detected\n");
>             if (method=="REGISTER") {
>                     fix_nated_register();
>             } else {
>                 fix_nated_contact();
>             };
>             setflag(5);
>         };
>
>      if(!is_method("REGISTER")){
>             if(nat_uac_test("19")){
>         xlog("record route with nat = yes\n");
>                record_route(";nat=yes");
>             } else {
>         xlog("normal record route\n");
>                record_route();
>             };
>      };
>
>
> But it is still not working.

In the above code there is no "onreply_route" in which you should 
run "fix_nated_contact()" in 18X and 200 responses to an INVITE.

 
> My opensips and B2BUA are within on NAT and 
> my xlite is within another NAT, is this going to work?

Sure.


-- 
Iñaki Baz Castillo



More information about the Users mailing list