[asterisk-users] send record file to email
Carlos Alvarez
carlos at televolve.com
Fri Feb 1 09:55:41 CST 2013
On Fri, Feb 1, 2013 at 8:35 AM, A J Stiles <asterisk_list at earthshod.co.uk>wrote:
> On Friday 01 February 2013, Bob Kyeyune wrote:
> > Hello;
> > how do i embed and send the recorded file to email automagically
> >
> > exten => _1XXX,3,MixMonitor(${CALLFILENAME}|b|/usr/sbin/wav2mp3
> > ${CALLFILENAME} ${peeremail} ${EXTEN}
> ${STRFTIME(${EPOCH},,%Y%m%d-%H%M%S)}
> > )
> >
>
Here's an example of how we record and e-mail. You will need to download
the sendEmail binary.
[conference-record]
exten => s,1,Answer
exten =>
s,n,Set(MEETME_RECORDINGFILE=/var/spool/asterisk/monitor/TelEvolve-conf-${UNIQUEID})
exten => s,n,Set(MEETME_RECORDINGFORMAT=wav49)
exten => s,n,Wait(1)
exten => s,n,MeetMe(televolve,cDr)
exten => h,1,System(/usr/sbin/sendEmail -t carlos at televolve.com -f
notifications at televolve.com -u "Conference call recording" -m "Conference
call ${UNIQUEID}")
--
Carlos Alvarez
TelEvolve
602-889-3003
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20130201/2e3ed409/attachment.htm>
More information about the asterisk-users
mailing list