After many attempts I solved the issue by removing : t_newtran(); from if (has_totag()) { and accounting cdr started working. -- Best Regards: Marcin Groszek Business Voip Resource. http://www.voipplus.net