[asterisk-users] New tutorial: storing audio recordings per day

Atis Lezdins atis at iq-labs.net
Mon May 25 12:02:47 CDT 2009


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



More information about the asterisk-users mailing list