I’m running Asterisk 13.14 on Debian 9 (Stretch). I had the package
asterisk-voicemail installed, but wanted to have voice mail messages stored in MySQL, so I replaced it with
asterisk-voicemail-odbcstorage. I’ve configured ODBC, my tests show that ODBC connects properly to my MariaDB, and the Asterisk logs show that it’s successfully connecting.
However, I’m getting some oddities when I try to actually use it. For instance, when I first installed the package, Asterisk would crash on start. I’ve narrowed it down to some parameters in
voicemail.conf. If either
pollmailboxes is defined, or even a single mailbox is defined, then Asterisk crashes on start, then it attempts to restart. When it crashes, it puts nothing in the logs other than the normal startup process. Here’s an example:
[2017-09-23 16:58:54] VERBOSE config.c: Parsing '/etc/asterisk/voicemail.conf': Found [2017-09-23 16:58:54] VERBOSE config.c: Parsing '/etc/asterisk/users.conf': Found [2017-09-23 16:58:56] Asterisk 13.14.1~dfsg-2+deb9u1 built by a2824ck @ BADWLRZ-CLBSC01 on a x86_64 running Linux on 2017-09-04 08:27:12 UTC
The first two lines are the last lines entered before the crash, and the third line is the process restarting. It will continue in a loop until I kill the the process (
systemctl stop asterisk.service).
If I comment out
pollmailboxes and don’t actually create any mailboxes, then Asterisk will start properly. Or, if I remove
asterisk-voicemail-odbcstorage and replace it with the file-based
asterisk-voicemail, it will work fine then too.
I’m not really sure how to troubleshoot this, since I’m not getting anything useful in the logs (which are turned all the way, including debug).