[asterisk-users] spool directories and filename
Steve Edwards
asterisk.org at sedwards.com
Mon Apr 5 14:20:05 CDT 2010
On Mon, 5 Apr 2010, Ricardo Coelho wrote:
> Is it possible to configure Asterisk to fetch for files from the spool
> directory in different directories? For example, fetch voicemail files
> in /abc/voicemail and call files in /cde/outgoing ?. And is it possible
> to configure the filename that Asterisk gives to files, like voicemail
> files?
Read up on asterisk.conf (usually located at /etc/asterisk/). In
particular, see astspooldir.
A casual peek of the 1.2 sources looks like both features (pbx_spool.c and
app_voicemail.c) use astspooldir as the file path.
For changing the voicemail filenames, the 1.2 app_voicemail.c sources have
this snippet:
static int make_file(char *dest, int len, char *dir, int num)
{
return snprintf(dest, len, "%s/msg%04d", dir, num);
}
which means you will probably have to hack it up a bit.
--
Thanks in advance,
-------------------------------------------------------------------------
Steve Edwards sedwards at sedwards.com Voice: +1-760-468-3867 PST
Newline Fax: +1-760-731-3000
More information about the asterisk-users
mailing list