Assuming your acc log_flag is set to FLT_ACC, it should be as simple as not setting or resetting the FLT_ACC flag, depending on the script logic.

You will probably need to do that for both INVITEs and BYEs


On Fri, Jul 20, 2018 at 2:48 PM M S <shaheryarkh@gmail.com> wrote:
Hi,

I have a kamailio v5.0 setup where cdrs are enabled using acc module. Is there a way to enable / disable cdrs on per call basis in kamailio script? For example i want to allow cdrs only for offnet calls and disable them for onnet calls? 

May be a dialog flag configurable in module parameters to signal acc module whether or not to generate cdr for current dialog at the end of call?
_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users