how to set freepbx calls to mp3 stereo? Currently, the recordings in mixmonitor WAV. Please help
-freepbx 12.0.76 -ubuntu 14 -asterisk 11
how to set freepbx calls to mp3 stereo? Currently, the recordings in mixmonitor WAV. Please help
-freepbx 12.0.76 -ubuntu 14 -asterisk 11
Note, I use Centos. The following may need to be adjusted for your OS.
I use the following script to convert the MixMonitor output to MP3. You need to install lame on your machine to use this script.
#!/bin/bash
wavfile=/path/to/RecordedWavFiles/$1
lame -b 192 -m m $wavfile ${wavfile%.*}.mp3
rm -f $1
Note that the script deletes the wav file, so maybe remove that line until you are sure it's working properly.
Save it somewhere as converttomp3.sh and set the permissions accordingly with chmod
so it can be executed.
In FreePBX, go to Settings> Advanced Settings.
Change Display Readonly Settings
to True and save.
Change Override Readonly Settings
to True and save.
Refresh the page.
Now you'll find a setting called Post Call Recording Script
Put in the full path to the converttomp3.sh script along with ^${CALLFILENAME}
eg. /usr/bin/converttomp3.sh ^${CALLFILENAME}
I'm not sure you need the ^ character, but that's what the documentation recommends. If it doesn't work, try removing it.
Save and update, and then give it a go.
You need create script which convert wav to mp3(or hire someone).
After that put that script in mixmonitor script field in general options(freepbx options in some versions) tab.