From time to time, while a caller is leaving a voicemail message on Asterisk 18.7.1 with voicemail_odbc module, I get the following error and the message is truncated and the channel hangup.
[2021-10-28 12:39:17] VERBOSE[20313][C-0000098b] pbx.c: Executing [~~s~~@FollowDestination:548] VoiceMail("SIP/BandwidthSEC-00000eef", "198@AA01002,su") in new stack
[2021-10-28 12:39:17] VERBOSE[20313][C-0000098b] file.c: <SIP/BandwidthSEC-00000eef> Playing '/var/spool/asterisk/voicemail/AA01002/198/temp.slin' (language 'en')
[2021-10-28 12:39:28] VERBOSE[20313][C-0000098b] file.c: <SIP/BandwidthSEC-00000eef> Playing 'beep.ulaw' (language 'en')
[2021-10-28 12:39:29] VERBOSE[20313][C-0000098b] app_voicemail_odbc.c: Recording the message
[2021-10-28 12:39:29] VERBOSE[20313][C-0000098b] app.c: x=0, open writing: /var/spool/asterisk/voicemail/AA01002/198/tmp/7ByMum format: wav, 0x7f9b1400eec0
[2021-10-28 12:39:48] WARNING[20313][C-0000098b] file.c: Natural write failed
[2021-10-28 12:39:48] WARNING[20313][C-0000098b] app.c: Error writing frame
Any idea about the reason it is happening?
Take in mind the server uses a ramdisk to temporary store voicemail messages (but the problem was happening also when using the disk). There is plenty of space on it.