[asterisk-bugs] [JIRA] (ASTERISK-27246) app_directory.c doesn't create /var/spool/asterisk/voicemail subdirectories after server move

David Moore (JIRA) noreply at issues.asterisk.org
Thu Sep 7 08:15:09 CDT 2017


    [ https://issues.asterisk.org/jira/browse/ASTERISK-27246?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=238556#comment-238556 ] 

David Moore commented on ASTERISK-27246:
----------------------------------------

Permissions were not an issue, everything was wide open and asterisk was running as root in both cases. The problem is that asterisk does not attempt to create the folder, I've reviewed the code segment in question and I have a very high level of confidence in that assertion based on what I observed

That log message as posted in the original bug report was with everything turned up high (except sip debug) there were no other failure indications



> app_directory.c doesn't create /var/spool/asterisk/voicemail subdirectories after server move
> ---------------------------------------------------------------------------------------------
>
>                 Key: ASTERISK-27246
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-27246
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Applications/app_directory, Applications/app_voicemail/ODBC
>    Affects Versions: 13.5.0
>         Environment: Debian Jessie
>            Reporter: David Moore
>            Assignee: David Moore
>            Severity: Minor
>
> Not sure if this is actually a bug
> After migrating an (odbc-voicemail-backed) asterisk installation to a new server (installing asterisk on new server and moving config files, etc) I was testing things. I went into Directory() and I was unable to get anyone's name to play back, asterisk insisted on spelling everything out. I eventually discovered this is because nothing is attempting to create any directories in /var/spool/asterisk/voicemail/ - which is empty because it's a new server. I have to write a shell script to create a bunch of empty directories so that app_directory can playback names.
> This isn't an issue on the old server because when someone authenticates to a mailbox the directory structure is created
> afaict this affects everything in 13.x.x
> The workaround is good enough for my use case, I am reporting this only in case anyone better than I am with c code thinks it's a problem worth fixing



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list