Raul, This is very interesting, I did not know that. Can anyone explain the reason for this?
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. -Brett 2009/3/30 Raúl Alexis Betancor Santana <[email protected]> > On Monday 30 March 2009 21:34:29 Brett Nemeroff wrote: > > > > I always had the failed_transaction_flag defined, but I only set that > flag > > in my failure route. For some reason, I wasn't getting failed > transactions > > ever. > AFAIK, it's a very bad idea to change flag status inside failure_route, > branch_route or reply_route. I suggest you to do it on route[] blocks, and > call it from failure_route. > > For example, instead of something like: > > failure_route[1] > { > .... > if(....) > { > setflag(15); > .... > } > > Just do: > > route(XX): > { > setflag(15); > } > > ... > > failure_route[1]: > { > ... > if(...) > { > route(XX); > ... > } > ... > } > > -- > Raúl Alexis Betancor Santana > Dimensión Virtual > > _______________________________________________ > Users mailing list > [email protected] > http://lists.opensips.org/cgi-bin/mailman/listinfo/users >
_______________________________________________ Users mailing list [email protected] http://lists.opensips.org/cgi-bin/mailman/listinfo/users
