search for: msgdir

Displaying 2 results from an estimated 2 matches for "msgdir".

Did you mean: magdir
2023 Oct 10
1
Deleting voicemail by program
...ar/spool/asterisk/voicemail/default/ # default context MINSIZE=12000 # 1.5 seconds #--------------------------------------------------------------subroutines: ProcessDir () { lastfile="" delcnt=0 for file in $(ls -A ${msgdir}/msg*.txt 2>/dev/null); do # the redirect supresses msg when dir empty if [ $(stat --format=%s ${file/.txt/.wav}) -lt ${MINSIZE} ]; then rm ${file/.txt/.*} let delcnt++ fi lastfile=${file} done if [ $delcnt -gt 0 ]; then echo "$delcnt short messages deleted from $...
2023 Oct 09
3
Deleting voicemail by program
Hi all, I need to be able to delete a voicemail message using a program. Is is sufficient to simply delete the .wav and .txt files in the spool directory? Or do I need to also renumber the remaining files? For example, let say a given mailbox has 20 messages in it and I want to delete message number 5. Can I just delete the 2 files and expect that asterisk will renumber them? Or do I