t_on_reply(..) take the argument like stribg, between double quotes:
route {
...
t_on_reply("FROMMS");
...
}
onreply_route[FROMMS] {
...
}
Cheers,
Daniel
On 7/8/11 9:01 PM, Fabian Borot wrote:
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(a)hotmail.com
To: sr-users(a)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(a)hotmail.com
To: sr-users(a)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
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users(a)lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
--
Daniel-Constantin Mierla --
http://www.asipto.com
Kamailio Advanced Training, Oct 10-13, Berlin:
http://asipto.com/u/kat
http://linkedin.com/in/miconda --
http://twitter.com/miconda