To fix it you have to repair the damaged table.
From an ssh client, connect to MySQL:
mysql -h localhost -u root -p
Yoy will be asked for the root password of MySQL.
After login type the following rows:
check table cdr;
repair table cdr;