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" <bilmar...@yahoo.com>
Sent: Saturday, January 01, 2011 1:16 PM
To: asterisk-users@lists.digium.com
Subject: [asterisk-users] Saving the monitor file on new file always using 
Monitor(wav, Record1, m)

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 time (which is 
changed always, or based on the some unique paramter (related to the call 
it self).

Any advise?

Regards
Bilal

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


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