Hi,

I'm currently migrating a Kamailio 1.5 installation to Kamailio 3.1.3, and I
got all config changes merged, except this one:

branch_route[1] {

        if ((isbflagset(4)) && (!isflagset(7))) {

                fix_nated_sdp("1");
                if (has_body()) {
                        force_rtp_proxy("R");
                } else {
                        setflag(5);
                }
                t_on_reply("2");
        }
}


In Kamailio 1.5 this worked without problems. In Kamailio 3.1 I get the
following error (line 1627 is the line with t_on_reply on it):


hostname:~# /usr/sbin/kamailio -c -f /etc/kamailio/proxy/kamailio.cfg
loading modules under
/urs/lib/kamailio/modules/:/usr/lib/kamailio/modules_k:/usr/lib/kamailio/modules_s/
 0(13670) : <core> [cfg.y:3412]: parse error in config file
/etc/kamailio/proxy/kamailio.cfg, line 1627, column 17: Command cannot be
used in the block

ERROR: bad config file (1 errors)
hostname:~#


In the Kamailio 1.5 documentation it was stated for every t_on_* function,
where it could be called. For t_on_reply it said:

This function can be used from REQUEST_ROUTE, BRANCH_ROUTE, ONREPLY_ROUTE
and FAILURE_ROUTE.

In the Kamailio 3.1 documentation those lines are missing. But I don't
really see a reason, why t_on_reply shouldn't be called from branch route.
We need it for every branch to possibly have different onreply_routes.

Am I missing something? Thanks in advance for any hints.

Best regards,
Sebastian
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

Reply via email to