[OpenSIPS-Users] Changes in ACC Modules for 1.5?

Brett Nemeroff brett at nemeroff.com
Tue Mar 31 01:55:07 CEST 2009


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 <rabs at dimension-virtual.com>

> 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
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.opensips.org/pipermail/users/attachments/20090330/91e26b34/attachment.htm 


More information about the Users mailing list