On 01/18/13 19:27, Carlos Alvarez wrote:
  On Fri, Jan 18, 2013 at 6:25 PM, Joseph <[1][email protected]> 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)

Thanks Carlos
I'm just concentrating right now on ${TIMESTAMP} variable but is is not working:

I have:
exten => 
11,n,Set(recordfilename=/var/spool/asterisk/monitor/${EXTEN}-${TIMESTAMP:0:8}${TIMESTAMP:8}.WAV)
exten => 11,n,MixMonitor(${recordfilename},b)

and the file name I got was: -11.wav

Why I'm not getting any timestamp?

--
Joseph

--
_____________________________________________________________________
-- 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

Reply via email to