Around version 1.4 or 1.6, TIMESTAMP was phased out and replaced with STRFTIME. See this page for details on how to properly generate a timestamp:
http://www.voip-info.org/wiki/view/Asterisk+func+strftime On Fri, Jan 18, 2013 at 8:46 PM, Joseph <syscon...@gmail.com> wrote: > On 01/18/13 19:27, Carlos Alvarez wrote: > > On Fri, Jan 18, 2013 at 6:25 PM, Joseph <[1]syscon...@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) >> > > 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<http://lists.digium.com/mailman/listinfo/asterisk-users> > -- Thanks, --Warren Selby, dCAP http://www.SelbyTech.com <http://www.selbytech.com>
-- _____________________________________________________________________ -- 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