[OpenSIPS-Devel] [nat_traversal] "nat_keepalive()" doesn't work before "t_newtran()"

Dan Pascu dan at ag-projects.com
Sat Mar 21 20:02:25 CET 2009


The problem you reported should be fixed in the latest trunk revision. As 
explained back then, it only affected trunk after it added the signaling 
module, 1.4 was not affected.

Please let me know if it works for you or do you see any more problems.

On Wednesday 12 November 2008, Iñaki Baz Castillo wrote:
> 2008/11/12 Dan Pascu <dan at ag-projects.com>:
> > On Wednesday 12 November 2008, Iñaki Baz Castillo wrote:
> >> 2008/11/12 Dan Pascu <dan at ag-projects.com>:
> >> > for SUBSCRIBE:
> >> >
> >> >  nat_traversal();
> >> >  ...
> >> >  t_newtran();
> >> >  handle_subscribe();
> >> >  t_release();
> >>
> >> The above code produces no keepalive in my system. I will rechek it.
> >
> > Please post the output from:
> >
> > opensipsctl fifo get_statistics nat_traversal:
>
> As clarification, I use rev 4943 with a UDP client (Twinkle) who
> doesn't register, but subscribes to presence.
>
> SUBSCRIBE:
>    nat_keepalive();
>    ...
>    t_newtran();
>    handle_subscribe();
>    t_release();
>
>
> If I delete "t_newtran()" between "nat_keepalive()" and
> "handle_subscribe()" then keepalive works and I see:
>
> # opensipsctl fifo get_statistics nat_traversal:
> nat_traversal:keepalive_endpoints = 1
> nat_traversal:registered_endpoints = 0
> nat_traversal:subscribed_endpoints = 1
> nat_traversal:dialog_endpoints = 0
>
>
> but if I leave that "t_newtran()" call then the subscriber is not
> keep-alived:
>
> # opensipsctl fifo get_statistics nat_traversal:
> nat_traversal:keepalive_endpoints = 0
> nat_traversal:registered_endpoints = 0
> nat_traversal:subscribed_endpoints = 0
> nat_traversal:dialog_endpoints = 0
>
>
> I've confirmed it right now.



-- 
Dan



More information about the Devel mailing list