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

_______________________________________________
Devel mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/devel

Reply via email to