Fallback languages?


I’m reading in the documentation that Asterisk falls back to the “en” sound recordings.
We would like to configure our Norwegian and Danish channels to fallback to using Swedish sound recordings. What would be the best way to do this?



in directory /var/lib/asterisk/sounds make additional directory for each language which you would like to use then, record sounds in each language and save it with this same name then put that to right directory (you created before)


after that in your dialplan set language wich you want to use
same => n,Set(channel(language)=PL)
from now, asterisk will look any records in PL directory and (if not find) it will use default directory

Thanks. But what is the default directory? Where is it configured?

The default directory where Asterisk looks for sound files is /var/lib/asterisk/sounds. And probably you cant change it

You can also set the default language in asterisk.conf:

defaultlanguage = en
1 Like