<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'>
got it, now it works. thank you<br><div> </div><br><br><div><hr id="stopSpelling">Date: Fri, 8 Jul 2011 21:07:51 +0200<br>From: miconda@gmail.com<br>To: sr-users@lists.sip-router.org<br>CC: fborot@hotmail.com<br>Subject: Re: [SR-Users] on_reply and failure route names<br><br>
<meta http-equiv="Content-Type" content="text/html; charset=unicode">
<meta name="Generator" content="Microsoft SafeHTML">
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">
<style>
.ExternalClass .ecxhmmessage P
{padding:0px;}
.ExternalClass body.ecxhmmessage
{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="ecxstopSpelling">From: <a class="ecxmoz-txt-link-abbreviated" href="mailto:fborot@hotmail.com">fborot@hotmail.com</a><br>
To: <a class="ecxmoz-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>
<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="ecxmoz-txt-link-abbreviated" href="mailto:fborot@hotmail.com">fborot@hotmail.com</a><br>
To: <a class="ecxmoz-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="ecxmimeAttachmentHeader"></fieldset>
<br>
<pre>_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="ecxmoz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="ecxmoz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
<br>
<pre class="ecxmoz-signature">--
Daniel-Constantin Mierla -- <a class="ecxmoz-txt-link-freetext" href="http://www.asipto.com" target="_blank">http://www.asipto.com</a>
Kamailio Advanced Training, Oct 10-13, Berlin: <a class="ecxmoz-txt-link-freetext" href="http://asipto.com/u/kat" target="_blank">http://asipto.com/u/kat</a>
<a class="ecxmoz-txt-link-freetext" href="http://linkedin.com/in/miconda" target="_blank">http://linkedin.com/in/miconda</a> -- <a class="ecxmoz-txt-link-freetext" href="http://twitter.com/miconda" target="_blank">http://twitter.com/miconda</a></pre></div>                                            </div></body>
</html>