Language selection

Hi there,

I’ve got a book open on my desk, and I’ve read various documentation, but can’t seen to get asterisk to honour my chosen default language; undoubtedly, I’m doing it wrong. This is a fresh test installation.

I’ve placed English audio prompts in /var/lib/asterisk/sounds/uk and I’ve included language=uk in the SIP/DAHDI config files.

When I make a call, it plays the regular en files, as shown in the Asterisk output:

Could anyone point me in the right direction?

If everything fail you can try with Set(CHANNEL(language)=UK) in the dialplan.

Hi there, thank you for your reply.

I’ve given that a try, but I encounter the same problem - the system still goes straight to ‘en’.

Are you sure you meant Ukrainian? I wonder if it is doing a fallback because there are no grammar rules for Ukrainian, or because they require recordings you haven’t made.

I rather suspect you wanted en_GB, although I’m not sure how well Asterisk understands regional modifiers.

Also, assume that everything is case sensitive (languages may or may not be).

Hi there,

To be honest, I rather thought that the language code was just a lookup for a directory with the same name; If that’s not the case, I’ll have to try again with an alternative code. I did originally try with en_GB as the directory name, and also with GB as a subdirectory of en - the same problem occurred.

I gave up and replaced the audio files in the en directory, but if anyone is able to shed some light on this in the future, I’d appreciate it. I’ll obviously post back if I nail the reason.