[Kamailio-Users] Accounting: How to avoid a fraudulent BYE with lower CSeq?

Andreas Granig agranig at sipwise.com
Thu Dec 18 15:47:31 CET 2008


Iñaki Baz Castillo wrote:
>> Stop accounting:
>> 1) On 200 OK (or maybe 481 or other response) from the gateway in response to
>> a BYE.
>> 2) On BYE from the gateway
> 
> Is it feasible with the acc module? Can the acc be stoped depending on
> the response? is it valid to set the acc flag in on_reply_route?
> 

You could do it manually by checking $T_reply_code and using 
acc_db_request() from a failure route.

Andreas




More information about the Users mailing list