Voicemail - changing the default recording path

Hi,

I'm trying to change the asterisk voicemail recording path from its default path:
 
/var/spool/asterisk/voiocemail/

To:
 
/asterisk/voicemail

I have altered the asterisk.conf from:

astspooldir => /home/spool/asterisk
to
astspooldir => /asterisk

Yet the messages are still following the default path.  What am I missing??

Thank you
doddeers668Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

joolsSenior Systems AdministratorCommented:
Did you reload asterisk?
doddeers668Author Commented:
Yes, asterisk reloaded. Even restarted the server.
joolsSenior Systems AdministratorCommented:
Have you tried doing a sym link from the original directory to the new one?

eg/

ln -s /var/spool/asterisk/voicemail/ /asterisk/voicemail

Doesnt the spool dir have other stuff in it? (I dont have an asterisk server available to check myself)
Acronis True Image 2019 just released!

Create a reliable backup. Make sure you always have dependable copies of your data so you can restore your entire system or individual files.

doddeers668Author Commented:
symbolic link isn't really an option.  The directory for the intended voicemail has an increased diskspace, specifically for voicemail messages and will sync with a backup server using lsyncd.

The spool dir will still support other applications, that's why I'm keeping the original as it is in addition to the new spool dir for Asterisk. Is that an issue??

Thanks for getting back.
joolsSenior Systems AdministratorCommented:
not sure why it wont be an option, you could just link the directory where the voice mails are stored to the new location with the increased disk space.

I did have a VM with Asterisk but its not working so cant try it out.
doddeers668Author Commented:
Thanks for your help Jools, I've found the solution.

All I had to simply do was delete the (!) from [directories] in asterisk.conf

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
doddeers668Author Commented:
I found the solution and added it to the string for others to see.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux

From novice to tech pro — start learning today.