I'm trying to get Kamailio to log its CDRs to text files instead of a database. The calls route ok but I get nothing in my CDR directory. Here's what I think are the relevant bits of the kamailio.cfg file. Obviously that's not everything but most of it is the default that ships with the 3.3.1 distribution. The calls route according to the distribution file but nothing gets written in the /var/log/kamailio directory on call termination. Kamailio is running as kamailio:kamailio and the directory is owned by same. A wireshark trace shows correct signalling code order (invite to IVR, trying, 200, Bye) and there's audio.

The acc module is using an internal flag to mark the transaction in order to have a callback executed when 200ok comes for the request. The forward() function is not creating a SIP transaction, therefore the acc callback is never executed on response.
–
micondaMar 7 at 21:08