<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
t_on_reply(..) take the argument like stribg, between double quotes:<br>
<br>
route {<br>
...<br>
t_on_reply("FROMMS");<br>
...<br>
}<br>
<br>
onreply_route[FROMMS] {<br>
...<br>
}<br>
<br>
Cheers,<br>
Daniel<br>
<br>
On 7/8/11 9:01 PM, Fabian Borot wrote:
<blockquote cite="mid:SNT110-W1EE4262963B006088782ECD400@phx.gbl"
type="cite">
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
<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: <a class="moz-txt-link-abbreviated" href="mailto:fborot@hotmail.com">fborot@hotmail.com</a><br>
To: <a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><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=ISO-8859-1">
<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: <a class="moz-txt-link-abbreviated" href="mailto:fborot@hotmail.com">fborot@hotmail.com</a><br>
To: <a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><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>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla -- <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a>
Kamailio Advanced Training, Oct 10-13, Berlin: <a class="moz-txt-link-freetext" href="http://asipto.com/u/kat">http://asipto.com/u/kat</a>
<a class="moz-txt-link-freetext" href="http://linkedin.com/in/miconda">http://linkedin.com/in/miconda</a> -- <a class="moz-txt-link-freetext" href="http://twitter.com/miconda">http://twitter.com/miconda</a></pre>
</body>
</html>