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:
-
/var/lib/asterisk/sounds/custom
-
/var/lib/asterisk/sounds/en
-
/usr/share/asterisk/sounds/en
First one found wins.
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.