Hi Kris,that CDR procedure is working in our MySQL servers. Just remember to set a 'DELIMITER' when introducing the code in the MySQL console:DELIMITER //CREATE PROCEDURE `kamailio_cdrs`() ...END//Regards