[Asterisk-Dev] Bug in app_directory.c - bad hardcoded filename path
John Todd
jtodd at loligo.com
Wed May 28 13:56:00 MST 2003
At or around line 175 in app_directory.c, there appears this line:
snprintf(fn, sizeof(fn), "%s/vm/%s/greet", (char
*)ast_config_AST_SPOOL_DIR, v->name);
This line specifically refers to the directory (usually)
/var/spool/mail/asterisk/vm which in turn is a symlink to
/var/spool/mail/asterisk/voicemail/default - this doesn't work with
virtual mailbox configurations, or at least it's not obvious to me
how it is supposed to work.
This logic needs to be extended, as the Voicemail2 application now
has multiple "virtual" mailboxes. The "Directory" application needs
to know into which virtual directory to look for the "greet.gsm" file
for a particular user, so that it can play that person's name at the
appropriate point in the Directory application call flow.
JT
More information about the asterisk-dev
mailing list