On Fri, Jan 18, 2013 at 6:25 PM, Joseph <syscon780 at 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 user at domain.com -f
pbx at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.digium.com/pipermail/asterisk-users/attachments/20130118/39a03a79/attachment.htm>