An alternative, which I haven't tried it to be 100% sure, but it should work as the accounting should happen when a reply is sent out -- anyhow, the idea is:
- set an onreply_route for the BYE requests and inside it, if the code is 481, the reset the accounting flag(ie., resetflag(FLT_ACC)).
If someone tries it, would be good to know the results whether it works or not.
Cheers, Daniel
On 01/11/16 09:32, Alex Balashov wrote:
On 11/01/2016 02:58 AM, Gholamreza Sabery wrote:
Is there an option in the ACC module for this, or I should handle dialog tracking using dialog module?
No, there's no option for it in the ACC module.
Using dialog tracking is one option. Adding a database constraint or trigger that would prevent it is another; that's my preferred approach.
The ACC module is stateless. Think of it as a relatively unintelligent logger. As with all loggers, it's your choice what to log, and to devise means by which to prevent certain things from being logged.