<div dir="ltr">Hi Inaki,<br><br>I'm getting the below error when using t_relay(); in onreply_route[7]....Maybe i need to you something else?<br><br>Mar 13 13:11:03 [27785] DBG:core:find_cmd_export_t: <t_relay> not found <br>
Mar 13 13:11:03 [27785] DBG:core:find_cmd_export_t: found <t_relay>(0) in module tm [/usr/local/lib/opensips/modules/]<br>Mar 13 13:11:03 [27785] CRITICAL:core:yyerror: parse error in config file, line 728, column 9-10: Command cannot be used in the block<br>
<br><br>Regards<br><br><br><br><div class="gmail_quote">On Fri, Mar 13, 2009 at 1:15 PM, Iņaki Baz Castillo <span dir="ltr"><<a href="mailto:ibc@aliax.net">ibc@aliax.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">2009/3/13 michel freiha <<a href="mailto:michofr@gmail.com">michofr@gmail.com</a>>:<br>
</div><div class="im">> Dear Inaki,<br>
><br>
> Thenaks agian for your responses and care...I did what you asked to<br>
> do...Just have a look please to the below:<br>
<br>
</div>It's wrong:<br>
<div class="im"><br>
<br>
> if(loose_route()){<br>
><br>
> t_on_reply("7");<br>
> if (is_method("INVITE")) {<br>
><br>
> t_on_failure("1");<br>
> t_on_reply("6");<br>
</div> ^^^<br>
This t_on_reply("6") is overriding the previous t_on_reply("7").<br>
<div class="im"><br>
> force_rtp_proxy();<br>
> t_relay();<br>
><br>
> }<br>
> }<br>
><br>
> And the onreply_route(7) will be:<br>
><br>
> onreply_route[7] {<br>
><br>
><br>
> if (status=~"200"){<br>
> t_on_failure("1");<br>
> t_on_reply("6");<br>
</div> ^^^<br>
You cannot use t_on_reply and t_on_failure in a onreply_route block.<br>
<div class="im"><br>
> force_rtp_proxy();<br>
> t_relay();<br>
><br>
> }<br>
> exit;<br>
> }<br>
<br>
<br>
<br>
<br>
</div><div><div></div><div class="h5">--<br>
Iņaki Baz Castillo<br>
<<a href="mailto:ibc@aliax.net">ibc@aliax.net</a>><br>
</div></div></blockquote></div><br></div>