Displaying 2 results from an estimated 2 matches for "realcount".
Did you mean:
readcount
2023 Oct 10
1
Deleting voicemail by program
...ename=${lastfile/*\/msg/} # get number
from file name
highest=${partfilename/.txt/}
while [[ $highest = 0* ]]; do highest=${highest#0}; done # bash does
not like leading zeros
if [ ${#highest} -eq 0 ]; then highest=0; fi # ...or
blanks for math
realcount=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 idivfi...
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