Asterisk monitor & mp3

I set up mu dialplan like this

exten => _X.,1,Gotoif($[${EXTEN} > 3403]?2:4)
exten => _X.,2,Set(CALLFILENAME=OUT-${CALLERID(num)}-${STRFTIME(${EPOCH},%d%m%Y)}-${EXTEN})
exten => _X.,3,Monitor(wav,${CALLFILENAME},m)
exten => _X.,4,SET(CALLERID(all)=our_company)
exten => _X.,5,Dial(SIP/${EXTEN}@sipgate-out,30,trg)
exten => _X.,6,StopMonitor
exten => _X.,7,Hangup
exten => _X.,8,Dial(SIP/${EXTEN})

I don’t know how to tell asterisk to convert this wav to mp3 automaticly after call. I have one wav (in and out) file each time when call end that’s work perfectly but I need to convert file to save space. And if it is possible to send that mp3 to the some e-mail. If it’s not possible doesn’t meter conversion is my bigger problem.

10x in advice

Asterisk does not support mp3. You would need an external script to convert it and then email it out.

Can You or anybody else tell me how to do that, please

Google has all the answers: … =firefox-a

I have not worked with mailers much so you will need to look in to that yourself a bit.

Thank you Dovid you help me to solve my problem