MixMonitor and mp3 problem

Hi All,

I am trying to get MixMonitor to output mp3-files, using the following:

MixMonitor(/var/ftp/pub/${TIMESTAMP}.mp3)

This does result in a file, but it is always 0 bytes. I have tried the same code using wav (ie: .wav instead of .mp3), and that is working correctly.

Should I be changing something else when trying to get mp3 using MixMonitor, or is there a problem with this combination ?

Regards,

Harry

Asterisk will not encode in mp3 natively, but wav, gsm, etc. If you want to have an mp3 file, I recommend encoding in wav and then making a system call to invoke LAME to encode into an mp3 as part of a pipeline.