We have found this issue:
* when there is message written in UTF-8 sent via Twillio this code is used:
line 186 in application/Espo/Modules/Voip/Repositories/VoipMessage.php
$name = substr($entity->get('body'), 0, 20);
throws:
ERROR: (22007) SQLSTATE[22007]: Invalid datetime format: 1366 Incorrect string value: '\xC5...' for column `crm_wpdistro_cz`.`voip_message`.`name` at row 1; POST /VoipMessage; line: 72
when changed to:
$name = mb_substr($entity->get('body'), 0, 20);
it is working fine.
* when there is message written in UTF-8 sent via Twillio this code is used:
line 186 in application/Espo/Modules/Voip/Repositories/VoipMessage.php
$name = substr($entity->get('body'), 0, 20);
throws:
ERROR: (22007) SQLSTATE[22007]: Invalid datetime format: 1366 Incorrect string value: '\xC5...' for column `crm_wpdistro_cz`.`voip_message`.`name` at row 1; POST /VoipMessage; line: 72
when changed to:
$name = mb_substr($entity->get('body'), 0, 20);
it is working fine.