Hi,<br><br>I&#39;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)) &amp;&amp; (!isflagset(7))) {<br>

<br>                fix_nated_sdp(&quot;1&quot;);<br>                if (has_body()) {<br>                        force_rtp_proxy(&quot;R&quot;);<br>                } else {<br>                        setflag(5);<br>                }<br>

                t_on_reply(&quot;2&quot;);<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) : &lt;core&gt; [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&#39;t really see a reason, why t_on_reply shouldn&#39;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>