On 5/4/11 6:43 PM, Alex Balashov wrote:
Wouldn't the same onreply_route be conserved for every branch? I can't see how any of our implementations would actually work if that weren't the case.
Yes, the onreply_route will be conserved for the entire transaction and all its branches -- the last t_on_reply() called will be effective.

Seems this was forgotten when we switched to the new tm (from ser at 3.0) and these functions were not enabled for the branch_route, but there is no reason they wouldn't work there -- probably nobody was using in this way lately. I just enabled the t_on_reply() function for branch_route, just fetch the latest version from git branch 3.1 and try again.

Cheers,
Daniel


On 05/04/2011 12:34 PM, Sebastian Damm wrote:

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



--
Daniel-Constantin Mierla
http://www.asipto.com


_______________________________________________
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