hi, I am facing some issues while using MixMonitor. My extensions logic is attached below: exten => s,1,MixMonitor(${CALLERID(number)}-${TIMESTAMP}-${UNIQUEID}.gsm,b) in this extensions TIMESTAMP is not working in Asterisk 1.4. can any help me why TIMESTAMP is not working in Asterisk 1.4. regards, Asif
Asif, The use of ${TIMESTAMP} in Asterisk 1.4 is deprecated. The new current method is to use: ${STRFTIME(${EPOCH},,%Y%m%d-%H%M%S)} Therefore your line should look something like this: exten => s,1,MixMonitor(${CALLERID(number)}-${STRFTIME(${EPOCH},,%Y%m% d-%H%M%S)}-${UNIQUEID}.gsm,b) Eric On Mon, 2007-06-18 at 23:10 +0500, Asif Raza wrote:> hi, > I am facing some issues while using MixMonitor. My > extensions logic is attached below: > > exten => s,1,MixMonitor(${CALLERID(number)}-${TIMESTAMP}-${UNIQUEID}.gsm,b) > > in this extensions TIMESTAMP is not working in Asterisk 1.4. can any > help me why TIMESTAMP is not working in Asterisk 1.4. > > regards, > Asif > > _______________________________________________ > --Bandwidth and Colocation provided by Easynews.com -- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users-- Eric Lubow LinkExperts, Inc. Systems Administrator e: elubow at linkexperts.com w: www.linkexperts.com
Savoy, Kevin - Williston, ND
2007-Jun-18 18:58 UTC
[asterisk-users] MixMonitor Timestamp problem
I believe TIMESTAMP no longer works in 1.4. You need to use the below statement or a variation on it. The documentation does include how to use this. {STRFTIME(${EPOCH},,%Y%m%d-%H:%M:%S)} This will give you the time and date as 20070618-15:36:17. You can place the variables in any order or format per the documentation. _______________ Kevin Savoy Business Unit Telecom Analyst 2218 4th Ave W Williston, ND 58801 Ph: 701-774-4023 Fax: 701-774-2901 http://www.novo1.com Novo 1 is a service mark of Novo 1, Inc -----Original Message----- From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Asif Raza Sent: Monday, June 18, 2007 1:11 PM To: asterisk-users at lists.digium.com Subject: [asterisk-users] MixMonitor Timestamp problem hi, I am facing some issues while using MixMonitor. My extensions logic is attached below: exten => s,1,MixMonitor(${CALLERID(number)}-${TIMESTAMP}-${UNIQUEID}.gsm,b) in this extensions TIMESTAMP is not working in Asterisk 1.4. can any help me why TIMESTAMP is not working in Asterisk 1.4. regards, Asif _______________________________________________ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users