On Fri, Jan 18, 2013 at 6:25 PM, Joseph <span dir="ltr"><<a href="mailto:syscon780@gmail.com" target="_blank">syscon780@gmail.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I would like to outgoing/icoming calls and email the files.<br>
This is what I have:<br>
...<br>
exten => _7.,n,Set(CALLFILENAME=${<u></u>EXTEN:1}-${TIMESTAMP})<br>
exten => _7.,n,Monitor(wav,${<u></u>CALLFILENAME},m)<br>
...<br>
<br>
How do I email these file?</blockquote><div><br></div><div>This is how we do it:</div><div><br></div><div><div>exten => _1NXXNXXXXXX,1,Set(recordfilename=/var/spool/asterisk/monitor/${EXTEN}-${TIMESTAMP:0:8}${TIMESTAMP:8}.WAV)</div>
<div>\exten => _1NXXNXXXXXX,n,MixMonitor(${recordfilename},b)</div><div>exten => _1NXXNXXXXXX,n,(dial here or whatever)</div><div>exten => h,1,System(/usr/sbin/sendEmail -t <a href="mailto:user@domain.com">user@domain.com</a> -f <a href="mailto:pbx@domain.com">pbx@domain.com</a> -u "Call recording for ${recordingfilename}" -m "There is a new call recording." -a "${recordfilename}")</div>
</div><div><br></div><div><br></div><div>Google the "sendEmail" app and download it, very useful for a lot of things.</div><div><br></div></div>-- <br><div>Carlos Alvarez</div><div>TelEvolve</div><div>602-889-3003</div>
<div><br></div>