[Asterisk-Dev] Bug in app_directory.c - bad hardcoded filename path

Brancaleoni Matteo mbrancaleoni at espia.it
Wed May 28 14:34:07 MST 2003


I agree.
Also, app_voicemail2 now could handle mysql as user conf
backend, so should be a good idea to code an app_directory2
that reflects voicemail2 and has also support for the db backend.

Matteo.

Il mer, 2003-05-28 alle 22:56, John Todd ha scritto:
> 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
> _______________________________________________
> Asterisk-Dev mailing list
> Asterisk-Dev at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-dev




More information about the asterisk-dev mailing list