CDR & mp3

Up
0
Down
  • Post
    Gary
    Participant

    If I run the script to change the wav recordings to mp3 they no longer show in the cdr reports for downloads/playback, is it possible to change this so it’s available.

    0
Viewing 6 replies - 1 through 6 (of 6 total)
  • Replies

    Which script are you using?

    0
    Gary
    Participant

    #!/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 0

    The conversion work good I can see all the file using the command line just can not see them in the gui cdr reports.

    0

    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
    oromero31
    Participant

    Why you don’t uses sonata recording..? It is great¬†

    0
    Gary
    Participant

    How do I update the database.

    0
    Gary
    Participant

    I did not realise the recordings module did mp3 conversion it works well, just wished it had more options for uploading files like s3cmd so we could use a Amazon bucket. I could do it through a cron job but would be nice to have it in the gui.

     

    0
Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.