Might not be the answer you seek, but you could put a Q&D AGI in-line to do the CLI command for you. Something like this: Exten => s,1,answer Exten => s,n,record(file.alaw) Exten => s,n,AGI(alaw2mp3.agi,file.alaw, file.mp3) Exten => s,n,hangup
Alternatively, you could replace the AGI with a System command. -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Pham Quy Sent: Friday, May 21, 2010 5:04 AM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] file command with alaw file From alaw to wav, you can use Asterisk's CLI f" file convert /var/lib/asterisk/sounds/soundfile.alaw /var/lib/asterisk/sounds/soundfile.wav I want to have my record alaw automically be converted to mp3 (or wav) right after finishing recording. How can I do it in dialplan? We are going to connect our asterisk to E1-Euro ISDN. AFASIK, it uses G711 A-law for audio codec. Is it possible for me to save my recorded audio file directly as wav files without calling CLI's file command (it will be converted to mp3 later)? Thanks for all your time and your wisdom Quyps -- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users -- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
