search for: idivfil

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

Did you mean: idivfile
2023 Oct 10
1
Deleting voicemail by program
...lcount=0 for ((x=0;x<=${highest};x+=1)); do chkname=msg$(printf "%04d" $x) # build name - pad with zeros... if [ -e ${msgdir}/${chkname}.txt ]; then if [ $realcount -ne $x ];then newname=msg$(printf "%04d" $realcount) for idivfile in $(ls -A ${msgdir}/${chkname}.*); do mv ${idivfile} ${msgdir}/${newname}.${idivfile/*\/*./} done fi let realcount++ fi done } #--------------------------------------------------------------main: for ext in "$@"; do if [ -d ${BASEDIR}${ext} ];then for...
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