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

Iñaki Baz Castillo ibc at aliax.net
Wed Nov 12 01:52:18 CET 2008


Hi, I've realized that using "t_newtran()" after "nat_keepalive()" and 
before "handle_subscribe()" makes NAT keepalive not working.

This is:

	if nat_uac_test("19") {
		fix_contact();
		if is_method("INVITE|SUBSCRIBE") {
			nat_keepalive();
		}
	}

	if ! t_newtran() {
		sl_reply_error();
		exit;
	}

	if is_method("SUBSCRIBE") {
		handle_subscribe();
		t_release();
		exit;
	}

With this code, nat_keepalive will not work, except if we delete 
the "t_newtran" section (so ti will work).

Is it the expected behaviour? I don't think so, am I wrong?

Thanks.


-- 
Iñaki Baz Castillo



More information about the Devel mailing list