Hi,<br><br>I'm currently migrating a Kamailio 1.5 installation to Kamailio 3.1.3, and I got all config changes merged, except this one:<br><br>branch_route[1] {<br><br> if ((isbflagset(4)) && (!isflagset(7))) {<br>
<br> fix_nated_sdp("1");<br> if (has_body()) {<br> force_rtp_proxy("R");<br> } else {<br> setflag(5);<br> }<br>
t_on_reply("2");<br> }<br>}<br><br><br>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):<br><br><br>hostname:~# /usr/sbin/kamailio -c -f /etc/kamailio/proxy/kamailio.cfg<br>
loading modules under /urs/lib/kamailio/modules/:/usr/lib/kamailio/modules_k:/usr/lib/kamailio/modules_s/<br> 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<br>
<br>ERROR: bad config file (1 errors)<br>hostname:~#<br><br><br>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:<br><br>This function can be used from REQUEST_ROUTE, BRANCH_ROUTE,
                ONREPLY_ROUTE and FAILURE_ROUTE.
                <br><br>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.<br>
<br>Am I missing something? Thanks in advance for any hints.<br><br>Best regards,<br>Sebastian<br>