[HELP] PHP - Checking for new vociemails


Hey all, can anyone provide some sample PHP code on how one can check for new voicemails left in a mailbox? I’d like to have something run as a cron job, say every minute or so, but I haven’t found any info or examples on the web on how to check voicemail from PHP. This is on Asterisk 11 if it matters. Thanks!


Just poll in the appropriate path in the filesystem (/var/spool/asterisk/voicemail/…)
where … depends from Your voicemail.conf.
I’m pretty sure You won’t find a “ready-to-run” solution for this but it’s really not too complicated …