Lenz Emilitri
2009-May-25 16:42 UTC
[asterisk-users] New tutorial: storing audio recordings per day
Hi everyone, after doing the same thing multiple times and struggling to remember how it was done, I have prepared a small tutorial that explains how to save monitored files in different folders per day. This is quite useful becausethe resultingfile system is way more manageable than having maybe 100,000 files all saved in the same folder. You can find the tutorial here: http://astrecipes.net/index.php?n=387 As always, comments and suggestions are welcome. l. PS. I am also working on some scripts to "normalize" existing recordings all-in-one-directory... if anybody is interested, please contact me. -- Loway - home of QueueMetrics - http://queuemetrics.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20090525/a90e90e3/attachment.htm
Atis Lezdins
2009-May-25 17:02 UTC
[asterisk-users] New tutorial: storing audio recordings per day
On Mon, May 25, 2009 at 7:42 PM, Lenz Emilitri <lenz.loway at gmail.com> wrote:> Hi everyone, > after doing the same thing multiple times and struggling to remember how it > was done, I have prepared a small tutorial that explains how to save > monitored files in different folders per day. This is quite useful > becausethe resultingfile system is way more manageable than having maybe > 100,000 files all saved in the same folder. > You can find the tutorial here: > > http://astrecipes.net/index.php?n=387 > > As always, comments and suggestions are welcome. > l. > PS. I am also working on some scripts to "normalize" existing recordings > all-in-one-directory... if anybody is interested, please contact me.Actually You don't have to create folders in advance, as Asterisk will automatically create them when needed. Just make sure that Asterisk process is owner of parent directory. Set(__call_day=${STRFTIME(|${TIMEZONE}|%Y/%m/%d)}); Set(MONITOR_FILENAME=${MONITOR_DIR}/${call_day}/call-${UNIQUEID}); Monitor(ulaw,${MONITOR_FILENAME},b); Regards, Atis -- Atis Lezdins, VoIP Project Manager / Developer, IQ Labs Inc, atis at iq-labs.net Skype: atis.lezdins Cell Phone: +371 28806004 Cell Phone: +1 800 7300689 Work phone: +1 800 7502835