To fix it you have to repair the damaged table.

From an ssh client, connect to MySQL:

Yoy will be asked for the root password of MySQL.

After login type the following rows:

That’s all.

 

Source: https://www.soluciones.si/blog/2016/04/18/error-table-asteriskcdrdbcdr-is-marked-as-crashed-and-should-be-repaired-en-asterisk