Re: [asterisk-users] Saving the monitor file on new file always using Monitor(wav, Record1, m)

2011-01-03 Thread Sebastian
Hi, On 01/01/2011 05:43 PM, bilal ghayyad wrote: Dear List; For each call (in specific case), I need to do a record and save in a spearated file, so I am thinking the best thing is to save based on the time. Monitor(wav,Record1,m) So, how can I make the file name to be based on the current

Re: [asterisk-users] Saving the monitor file on new file always using Monitor(wav, Record1, m)

2011-01-01 Thread Nic Colledge
Try using ${UNIQUEID} to get the unique id of the current call. That or something like CDR(uniqueid). Forget which off the top of my head. Nic. -Original Message- From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of bilal ghayyad

Re: [asterisk-users] Saving the monitor file on new file always using Monitor(wav, Record1, m)

2011-01-01 Thread Bryant Zimmerman
Use a combination of ${EPOCH} with a format string and the unique call / channel id. Example: exten = s,1,Set(MY_TIMEVAR=:${STRFTIME(${EPOCH},,%d%mNaVH:NaVS)}) exten = s,n,Monitor(wav,${MY_TIMEVAR}~${CHANNEL},m) From: bilal ghayyad

Re: [asterisk-users] Saving the monitor file on new file always using Monitor(wav, Record1, m)

2011-01-01 Thread Steve Edwards
On Sat, 1 Jan 2011, bilal ghayyad wrote: For each call (in specific case), I need to do a record and save in a spearated file, so I am thinking the best thing is to save based on the time. Read up on the STRFTIME function. -- Thanks in advance,