I have enabled ODBC storage for voicemails of Asterisk 11.25.1. It is working fine and users can record greetings and leave voicemails; which are being successfully added in MySQL 5.7 database table voicemessages.
The issue arises when two users simultaneously try to leave voicemail for same voicemail box. In most cases, the asterisk crashes. I have enabled pooling, max-connections, limit and slow_query_limit params with different values in res_odbc.conf. Sometimes, it works but still asterisk crashes after 3-4 attempts. The successful attempts behave abnormally i.e. sometimes it plays different greetings for both users or doesn’t play greetings for either of the users.
It shows errors as below:
app_voicemail.c: Unable to truncate '/var/spool/asterisk/voicemail/default/XXXX/temp.wav': No such file or directory
Please note that I am using latest unixODBC version 3.7.1 and MySQL ODBCdriver version 8.0.
I have tried different options for ODBC but still it is not working, the asterisk crashes for above scenario.
Can you please suggest any change or share any success story in this regard? Is there any other option which will not require Asterisk version upgrade?