I am using it for route blocks, but it fails with on_reply_routes, for example, the "route" command works, but the t_on_reply[FROMMS] fails, so I have to use  t_on_reply(3) for example:

                        t_on_reply(3);
                        route(TOMS);

Also I make sure that there is a matching onreply_route[FROMMS]

In the mean time  I have to use this format,

onreply_route[3] {
//commands here

}

Hope this helps

fborot

From: fborot@hotmail.com
To: sr-users@lists.sip-router.org
Subject: RE: on_reply and failure route names
Date: Fri, 8 Jul 2011 14:09:08 -0400


3.1.4
 



From: fborot@hotmail.com
To: sr-users@lists.sip-router.org
Subject: on_reply and failure route names
Date: Fri, 8 Jul 2011 10:13:44 -0400


Hi
Is it possible to use string names also for on_reply and failure_route blocks?

 I guess these errors when starting kamailio

Jul  8 10:00:25 registrar kamailio: : <core> [cfg.y:3412]: parse error in config file /usr/local/kamailio-3.1//etc/kamailio//kamailio.cfg, line 432, column 41: syntax error
Jul  8 10:00:25 registrar kamailio: : <core> [cfg.y:3412]: parse error in config file /usr/local/kamailio-3.1//etc/kamailio//kamailio.cfg, line 432, column 41: '('')' expected (function call)
Jul  8 10:00:25 registrar kamailio: : <core> [cfg.y:3412]: parse error in config file /usr/local/kamailio-3.1//etc/kamailio//kamailio.cfg, line 432, column 41: function t_on_reply: parameter 1 is not constant
Jul  8 10:00:25 registrar kamailio: : <core> [cfg.y:3412]: parse error in config file /usr/local/kamailio-3.1//etc/kamailio//kamailio.cfg, line 432, column 41: bad command

thank you
fborot