<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'><div dir='ltr'>
<br><br><div>
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:<br></div><br> t_on_reply(3);<br> route(TOMS);<br><br>Also I make sure that there is a matching onreply_route[FROMMS]<br><br>In the mean time I have to use this format,<br><br>onreply_route[3] {<br>//commands here<br><br>}<br><br>Hope this helps<br><br>fborot<br><div><hr id="stopSpelling">From: fborot@hotmail.com<br>To: sr-users@lists.sip-router.org<br>Subject: RE: on_reply and failure route names<br>Date: Fri, 8 Jul 2011 14:09:08 -0400<br><br>
<meta http-equiv="Content-Type" content="text/html; charset=unicode">
<meta name="Generator" content="Microsoft SafeHTML">
<style>
.ExternalClass .ecxhmmessage P
{padding:0px;}
.ExternalClass body.ecxhmmessage
{font-size:10pt;font-family:Tahoma;}
</style>
<div dir="ltr">
<br>3.1.4<br><div>
<div> </div></div><br><br><div><hr id="ecxstopSpelling">From: fborot@hotmail.com<br>To: sr-users@lists.sip-router.org<br>Subject: on_reply and failure route names<br>Date: Fri, 8 Jul 2011 10:13:44 -0400<br><br>
<style>
.ExternalClass .ecxhmmessage P
{padding:0px;}
.ExternalClass body.ecxhmmessage
{font-size:10pt;font-family:Tahoma;}
</style>
<div dir="ltr">
<br>Hi<br>Is it possible to use string names also for on_reply and failure_route blocks?<br><br><div>
<div> I guess these errors when starting kamailio<br><br>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<br>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)<br>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<br>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<br><br>thank you<br>fborot<br></div></div> </div></div> </div></div> </div></body>
</html>