[Home]

Summary:ASTERISK-10852: "languageprefix=yes" doesn't work
Reporter:Iñaki Baz Castillo (ibc)Labels:
Date Opened:2007-11-21 11:20:55.000-0600Date Closed:2011-06-07 14:07:46
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Sounds
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:I use Spanish language in the new directories estructure:

   /var/lib/asterisk/sounds/es
                              /digists
                              /followme
                              /letters
                              /...


** asterisk.conf
  [options]  
  languageprefix=yes

** sip.conf
   language=es

But apps as SayDigists or SayAlpha just don't work, the only way is by creating symlinks (so recreating in fact the clasic estructure):

~$ /var/lib/asterisk/sounds$ ls -l

dictate -> es/dictate/
digits -> es/digits/
es/
followme -> es/followme/
letters -> es/letters/
phonetic -> es/phonetic/
silence -> es/silence/


I can sure that the SIP channel I create has "es" language, so I don't know why it can fail.

In the UPGADE.txt there is:

"WARNING: Asterisk 1.4 supports a new layout for sound files in multiple
languages; instead of the alternate-language files being stored in
subdirectories underneath the existing files (for French, that would be
digits/fr, letters/fr, phonetic/fr, etc.) the new layout creates one
directory under /var/lib/asterisk/sounds for the language itself, then places
all the sound files for that language under that directory and its
subdirectories. This is the layout that will be created if you select
non-English languages to be installed via menuselect, HOWEVER Asterisk does
not default to this layout and will not find the files in the places it
expects them to be. If you wish to use this layout, make sure you
put 'languageprefix=yes' in your /etc/asterisk/asterisk.conf file, so that
Asterisk will know how the files were installed."
Comments:By: Tilghman Lesher (tilghman) 2007-11-21 12:01:25.000-0600

You've misread the instructions:

languageprefix=yes:

digits/fr/1.gsm

languageprefix=no:

fr/digits/1.gsm

The second one is the default now and is what you want.

By: Iñaki Baz Castillo (ibc) 2007-11-21 12:49:19.000-0600

I think the instructions are very clear, and the opposite to what you suggest:

"Asterisk does **not** default to this layout and will not find the files in the places it expects them to be. If you wish to use this layout, make sure you  put 'languageprefix=yes' in your /etc/asterisk/asterisk.conf"

In fact, I'm trying now with 'languageprefix=no' in [options] and it doesn't work.

I'm trying Asterisk 1.4.13 (not 1.4.14 as I reported, sorry), and my conclusion is that languageprefix just doesn't work, neither with "yes" or "no".

Please, could you ensure me that the new structure should work with 'languageprefix=no' in [options] section of aterisk.conf? Thanks.

By: Iñaki Baz Castillo (ibc) 2007-11-21 12:52:56.000-0600

In trunk version I've confirmed that now this options 'languageprefix' is deprecated and just exist the new structure, and it works well. But in 1.4.13 I see no way and have tryed everything.

By: Dmitry Andrianov (dimas) 2007-11-21 13:15:53.000-0600

Corydon, to me it looks like either you or UPGRADE.txt file is wrong because you are stating exactly the opposite.

By: Tilghman Lesher (tilghman) 2007-11-21 13:30:54.000-0600

Okay, in your dialplan, prior to playing the files, please add the following
instruction:

NoOp(lang=\"${CHANNEL(language)}\")

and paste the full output of your dialplan, both of this command and the command where you're trying to play back the file.  Make sure that your verbosity level is set to 3 or higher.

By: Jason Parker (jparker) 2007-11-21 13:31:48.000-0600

*cough*fixed in 1.4.14 already*cough*

By: Iñaki Baz Castillo (ibc) 2007-11-21 14:40:03.000-0600

Hi, I upgraded to 1.4.14 and it works now (not by default, it works if I set "languageprefix=yes" in [options] section).

Thanks ;)

PD: Please, close the bug.