--- asterisk-1.2.10/apps/app_voicemail.c 2006-07-13 23:22:11.000000000 +0200 +++ asterisk-1.2.10-simple-change/apps/app_voicemail.c 2006-08-11 15:07:59.222397144 +0200 @@ -3882,6 +3882,8 @@ snprintf(vms->vmbox, sizeof(vms->vmbox), "vm-%s", vms->curbox); make_dir(vms->curdir, sizeof(vms->curdir), vmu->context, vms->username, vms->curbox); + /* Create the Mailbox if it does not exists already. That's simpler than to check if the directory exists later on */ + create_dirpath(vms->curdir, sizeof(vms->curdir), vmu->context, vms->username, vms->curbox); count_msg = count_messages(vmu, vms->curdir); if (count_msg < 0) return count_msg;