Asterisk 20 default sound directory

After my ASL 3 install, I noticed that /var/lib/asterisk/sounds was empty? I copied all my previous sound files to that directory. Now I see that ’ localplay, (soundfile) does NOT work, but localplay /var/lib/asterisk/sounds/(soundfile) DOES work. Has the default sound directory changed?

Yes. It is now /usr/share/asterisk/sounds/
So, by default, /usr/share/asterisk/sounds/en

The package-provided sound files are in /usr/share/asterisk/sounds/en. Don’t change them or they will be overridden on a package upgrade. You should be able to add your own custom sounds in /var/lib/asterisk/sounds/en or, I think, /var/lib/asterisk/sounds/custom for any customization or add-ons you want to make. Asterisk should be searching for the sound file in the following order:

  1. /var/lib/asterisk/sounds/custom

  2. /var/lib/asterisk/sounds/en

  3. /usr/share/asterisk/sounds/en

First one found wins.

1 Like

Thanks. When I looked at the Asterisk 20 documentation online, it still says that /var/lib/asterisk/sounds IS the directory. Glad I asked.

When testing my scripts, only the ’ /usr/share/asterisk/sounds/en ’ directory is valid. If I put my sound files in the other directories, they are not found.

Thanks for the feedback.