On Fri, Jan 18, 2013 at 6:25 PM, Joseph <syscon...@gmail.com> wrote: > I would like to outgoing/icoming calls and email the files. > This is what I have: > ... > exten => _7.,n,Set(CALLFILENAME=${**EXTEN:1}-${TIMESTAMP}) > exten => _7.,n,Monitor(wav,${**CALLFILENAME},m) > ... > > How do I email these file?
This is how we do it: exten => _1NXXNXXXXXX,1,Set(recordfilename=/var/spool/asterisk/monitor/${EXTEN}-${TIMESTAMP:0:8}${TIMESTAMP:8}.WAV) \exten => _1NXXNXXXXXX,n,MixMonitor(${recordfilename},b) exten => _1NXXNXXXXXX,n,(dial here or whatever) exten => h,1,System(/usr/sbin/sendEmail -t u...@domain.com -f p...@domain.com-u "Call recording for ${recordingfilename}" -m "There is a new call recording." -a "${recordfilename}") Google the "sendEmail" app and download it, very useful for a lot of things. -- Carlos Alvarez TelEvolve 602-889-3003
-- _____________________________________________________________________ -- 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