› VitalPBX Community Support › General Discussion › CDR & mp3
- This topic has 6 replies, 3 voices, and was last updated 2 years, 2 months ago by
Gary.
- Post
Viewing 6 replies - 1 through 6 (of 6 total)
- Replies
-
- November 1, 2018 at 7:50 pm
- November 1, 2018 at 7:59 pm
#!/bin/sh
cd /var/spool/asterisk/monitor/
/usr/bin/find . -type f -name “*.wav” -size -200k -mtime +59 | /usr/bin/xargs /bin/rm -f >/dev/null 2>&1
/usr/bin/find . -type f -name “*.wav” -mtime +59 | /usr/bin/xargs -i lame -r {}
/usr/bin/find . -type f -name “*.wav” -mtime +59 | /usr/bin/xargs /bin/rm -f >/dev/null 2>&1
exit 0The conversion work good I can see all the file using the command line just can not see them in the gui cdr reports.
0- November 1, 2018 at 8:24 pm
That’s because the audio path and name is taken directly from Asterisk CDR table, so, when you change the format from wav to mp3, is like if the file doesn’t exists anymore.
When you execute the conversion script you must to update the database also.
0- November 1, 2018 at 8:56 pm
- November 2, 2018 at 4:36 am
Viewing 6 replies - 1 through 6 (of 6 total)
- You must be logged in to reply to this topic.