How can I remove the source wav file after the call is finished? If I have to use AGI can I have an example script?
This is how I'm using MixMonitor exten => s,n,MixMonitor(${source_file}.wav,W(1),lame -V3 ${source_file}.wav ${mp3_from_source}.mp3)
Fails because it is deleted before the conversion. exten => h,n,System(rm ${source_file}.wav)
How about:
and skip the call in
h
?