title: Asterisk after recording save to .wav file automatic email e.g gmail
body: <p>first i already done with recording and save to '.wav' file and also im done with the script that email the '.wav' using 'postfix', my problem is when the recording is done automatically email the '.wav' file to my email e.g 'gmail',</p>
  
  <p>What should i do?<br>
  should the script is indicate to extension.conf?<br> or 
  should i need to a set a varables that the filename of .wav file will connect to my script?</p>
  
  <p>here's the example script to my extesion.conf<br></p>
  
  <blockquote>
    <p>[outbound]<br>
    exten => s,1,Answer()<br>
    exten => s,2,Background(silence/1)<br>
    exten => s,3,ControlPlayback(/var/example)<br>
    exten => s,4,Record(/var/<strong>${callfile_name}${STRFTIME(${EPOCH},GMT-8,%m%d%y-%H%M)}.wav,0,5,qxk</strong>)<br>
    exten => s,5,Hangup()</p>
  </blockquote>
  
  <p>Here's the script that email to my gmail using 'postfix'</p>
  
  <blockquote>
    <p>(printf "%s\n" \<br>
        "Subject: Example_Subject" \<br>
        "To: example_email@gmail.com" \<br>
        "Content-Type: application/wav" \<br>
        "Content-Disposition: attachment; filename=<strong>examplewav.wav</strong>" \<br>
        "Content-Transfer-Encoding: base64" \<br>
        "";
     base64 <strong>examplewav.wav</strong>) | sendmail "example_email@gmail.com"<br></p>
  </blockquote>