Henning,

Let me attach the full cfg for clarity.

The flags are as you said; how can I do revert_uri before failure route? you mean within failure_route[20] do a revert_uri first thing before any further processing?

Thanks,
Uriel

On Mon, Mar 30, 2009 at 2:44 PM, Henning Westerholt <henning.westerholt@1und1.de> wrote:
On Monday 30 March 2009, Uriel Rozenbaum wrote:
> I'm using this piece of code as failure route:
>
>                         append_branch();

Hi Uriel,

do you do a "revert_uri()" somewhere before entering the failure_route? And
can you check if you perhaps reset the failed flag somewhere later in your
cfg?

> [..]
> And right in the main route i have:
>
> if (is_method("INVITE|BYE|CANCEL"))
>         {
>                 setflag(1);
>                 setflag(2);
>         }
>
> In order to bill all messages.
>
> Is there any error in the failure logic?

Flag 1 is the successful, and 2 the failed flag?

Cheers,

Henning