Raul,<br>This is very interesting, I did not know that. Can anyone explain the reason for this? <br><br>I always figured that calling a route from a failure/branch/onreply/etc route was the same as if the codeblock was in that section.<br>
<br>-Brett<br><br><br><div class="gmail_quote">2009/3/30 Raúl Alexis Betancor Santana <span dir="ltr"><<a href="mailto:rabs@dimension-virtual.com">rabs@dimension-virtual.com</a>></span><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">On Monday 30 March 2009 21:34:29 Brett Nemeroff wrote:<br>
><br>
> I always had the failed_transaction_flag defined, but I only set that flag<br>
> in my failure route. For some reason, I wasn't getting failed transactions<br>
> ever.<br>
</div>AFAIK, it's a very bad idea to change flag status inside failure_route,<br>
branch_route or reply_route. I suggest you to do it on route[] blocks, and<br>
call it from failure_route.<br>
<br>
For example, instead of something like:<br>
<br>
failure_route[1]<br>
{<br>
....<br>
if(....)<br>
{<br>
setflag(15);<br>
....<br>
}<br>
<br>
Just do:<br>
<br>
route(XX):<br>
{<br>
setflag(15);<br>
}<br>
<br>
...<br>
<br>
failure_route[1]:<br>
{<br>
...<br>
if(...)<br>
{<br>
route(XX);<br>
...<br>
}<br>
...<br>
}<br>
<font color="#888888"><br>
--<br>
Raúl Alexis Betancor Santana<br>
Dimensión Virtual<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</font></blockquote></div><br>