[Kamailio-Users] ACC on Failure route

alex pappas rebel.pappas at gmail.com
Fri Jan 22 15:13:11 CET 2010


Hi Daniel,

I use in the Failure Route the dispatcher to try in serial mode some
gateways against a call. If I set in the failure route :

setflag(1); # do accounting ...
setflag(3); # ... even if the transaction fails

then I get in the syslog the acc of the  last gateway that Dispatcher tried
to terminate the call.

For the second you are asking(failure flag) I have:
modparam("acc", "failed_transaction_flag", 6)

And setflag(6) int request route and in failure route but I don't get ACC
for every try from failure route

I'm I doing something wrong in the configuration script ?

Thank you
Alex



On Fri, Jan 22, 2010 at 3:33 PM, Daniel-Constantin Mierla <miconda at gmail.com
> wrote:

> Hello,
>
>
> On 1/22/10 1:08 PM, alex pappas wrote:
>
>> Dear Friends,
>>
>> In case of a call failure I'm trying from failure route to send the call
>> through other gateways with Dispatcher module.
>> I would like to have ACC for all failures that a call can possibly pass.
>> If the call fails in the 3 first gateways  I want them also in my mysql ACC
>> table. I tried that with AVPs in the syslog and it works fine BUT is there
>> any way that I can simply setflag(1) for accounting and I can have ACC for
>> every try?
>>
>> I tryied to add  in failure route :
>>
>> setflag(1); # do accounting ...
>> setflag(3); # ... even if the transaction fails
>>
>> but I'm getting ACC only the last try.
>>
>>  last failed try? Or what you mean by "the last try"? IIRC, failed
> transaction flag should be set for each leg if you want all failures.
>
> Cheers,
> Daniel
>
> --
> Daniel-Constantin Mierla
> * http://www.asipto.com/
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/users/attachments/20100122/2f3469d6/attachment.htm>


More information about the Users mailing list