<font style="font-family: times new roman;" size="3"><span style="color: rgb(0, 0, 127);">Hi,</span><br style="color: rgb(0, 0, 127);"><span style="color: rgb(0, 0, 127);">For timestamp a recording you can use this...</span><br style="color: rgb(0, 0, 127);"><br style="color: rgb(0, 0, 127);"><span style="color: rgb(0, 0, 127);">exten =&gt; 1XXXXXXX,1,Set(CALLFILENAME=${EXTEN}-${CALLERID(num)}-${STRFTIME(${EPOCH},GMT-5.5,%d%b%Y)}-${STRFTIME(${EPOCH},GMT-5.5,%H%M%S)})</span><br style="color: rgb(0, 0, 127);"><span style="color: rgb(0, 0, 127);">exten =&gt; 1XXXXXXX,n,Monitor(wav,/home/recording${STRFTIME(${EPOCH},Asia/Calcutta,%Y%m%d)}/${CALLFILENAME},m)</span><br style="color: rgb(0, 0, 127);"><br style="color: rgb(0, 0, 127);"><br style="color: rgb(0, 0, 127);"><span style="color: rgb(0, 0, 127);">Regards,</span><br style="color: rgb(0, 0, 127);"><span style="color: rgb(0, 0, 127);">Keshav</span></font><br><br><br><b><i>Jared Smith &lt;jsmith@digium.com&gt;</i></b>
 wrote:<blockquote class="replbq" style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"> On Sat, 2007-07-14 at 23:31 -0400, Forrest Beck wrote:<br>&gt; Has anyone come up with to timestamp a Recording?  I am using a pretty<br>&gt; simple dialplan to record a audio file for a hotline.  I'd like to<br>&gt; store the date and time it was recorded somewhere, Ast DB or MySQL DB.<br><br>In that case, the ${EPOCH} channel variable is your friend... it should<br>always contain the current system time, in Unix epoch format.  (In<br>essence, it contains the number of seconds since Jan 1, 1970.) <br><br>You can also use the STAT() dialplan function to read the file creation<br>(or modification) date and time.<br><br>&gt;  Then when the audio file is played back to a caller, the system will<br>&gt; say something like.<br><br>The SayUnixTime() application will read back the time to the caller, and<br>allow you to choose which format the time is read back
 in.<br><br><br>-- <br>Jared Smith<br>Community Relations Manager<br>Digium, Inc.<br><br><br>_______________________________________________<br>--Bandwidth and Colocation Provided by http://www.api-digital.com--<br><br>asterisk-users mailing list<br>To UNSUBSCRIBE or update options visit:<br>   http://lists.digium.com/mailman/listinfo/asterisk-users<br></blockquote><br><p>&#32;

<hr size=1>TV dinner still cooling?<br><a href="http://us.rd.yahoo.com/evt=49979/*http://tv.yahoo.com/">Check out "Tonight's Picks"</a> on Yahoo! TV.