[Users] Serial forking and accounting
Daniel-Constantin Mierla
daniel at voice-system.ro
Mon Aug 7 18:48:23 CEST 2006
Hello,
On 08/07/06 16:32, Andreas Granig wrote:
> Hi,
>
> In a scenario A -> OpenSER -> B with the request being INVITE, B
> sends back 404 to OpenSER (the flag "db_missed_flag" of the acc module
> is set). OpenSER forks serially and sends another request to C, which
> is answered with 200.
>
> Now I get two acc records, the 404 from B because of the missed-flag
> and the 200 from C. Now is there a way to selectively suppress the acc
> record for the 404 in the failure route? Concretely I'd like to decide
> in the failure route whether that transaction is being accounted.
try to use acc_db_request() instead of db_missed_flag for failed
transactions. Maybe a look into the code would reveal how the callbacks
for accounting are executed and so see if resetting the missed flag in
failure route will prevent logging the 404.
Cheers,
Daniel
>
>
> Thanks,
> Andy
>
> _______________________________________________
> Users mailing list
> Users at openser.org
> http://openser.org/cgi-bin/mailman/listinfo/users
>
More information about the Users
mailing list