Voicemail waiting reminder?

voicemail
Tags: #<Tag:0x00007fafc42a5118>

(Travis) #1

I have a general mailbox on an extension that multiple people check periodically and clear. I’m looking for a way to send a reminder to users if there are messages waiting on this mailbox.

Is there a way to do this, or a module that could help? Something like an email reminder ever morning stating there are messages waiting.


#2

You could start with something like :-

for j in $(for i in $(ls /var/spool/asterisk/voicemail/*/*/INBOX/msg0000.txt);do grep ^$(echo $i|cut -d '/' -f7)= /etc/asterisk/voicemail.conf|cut -d ',' -f3;done|grep -v ^$); do echo "echo 'You have mail'|mail -s 'MailCall' $j";done