[OpenSIPS-Users] Fixing the Contact Header for NAT

Juan Backson juanbackson at gmail.com
Thu Nov 27 15:47:05 CET 2008


Hi Inaki,

Thanks for the help.  I think I should be closed to getting the final
resolution.

In my onreply_route, I have:

onreply_route[1] {
fix_nated_contact();
exit;

}

But that alone does not work.  Is ther anything else that I should add to
thie onrply_route?

JB



On Thu, Nov 27, 2008 at 10:07 PM, Iñaki Baz Castillo <ibc at aliax.net> wrote:

> 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
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.opensips.org/pipermail/users/attachments/20081127/07db6cbb/attachment.htm 


More information about the Users mailing list