[OpenSIPS-Users] CDR change before sending to database

Răzvan Crainea razvan at opensips.org
Thu Oct 9 12:17:15 UTC 2025


Hello!

The E_ACC_CDR event is executed asynchronously, thus the dialog/acc 
context may no longer be available. Thus you should not try to modify it.
Your best change is to make sure that the acc variables are final after 
the BYE/200 OK is processed.
But if you could give us more information about what you are trying to 
do, we might be able to help you.

Best regards,

Răzvan Crainea
OpenSIPS Core Developer / SIPhub CTO
http://www.opensips-solutions.com / https://www.siphub.com

On 9/27/25 2:03 PM, M S wrote:
> Hi list,
> I was wondering if anybody has any ideas about making changes to CDR
> variables before sending them to the database.
> Documents say the acc module calls E_ACC_CDR, is this before sending it to
> the database, or in a parallel branch? if I change a variable in here, does
> it change what's written to the database?
> 
> Thanks!
> 
> 
> Hi list,
> I was wondering if anybody has any ideas about making changes to CDR 
> variables before sending them to the database.
> Documents say the acc module calls E_ACC_CDR, is this before sending it 
> to the database, or in a parallel branch? if I change a variable in 
> here, does it change what's written to the database?
> 
> Thanks!
> 
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users




More information about the Users mailing list