[asterisk-bugs] [Asterisk 0011338]: "languageprefix=yes" doesn't work

noreply at bugs.digium.com noreply at bugs.digium.com
Wed Nov 21 13:30:54 CST 2007


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=11338 
====================================================================== 
Reported By:                ibc
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   11338
Category:                   Sounds
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
Asterisk Version:           1.4.14  
SVN Branch (only for SVN checkouts, not tarball releases): N/A  
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             11-21-2007 11:20 CST
Last Modified:              11-21-2007 13:30 CST
====================================================================== 
Summary:                    "languageprefix=yes" doesn't work
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."

====================================================================== 

---------------------------------------------------------------------- 
 Corydon76 - 11-21-07 13:30  
---------------------------------------------------------------------- 
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. 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
11-21-07 13:30  Corydon76      Note Added: 0074156                          
======================================================================




More information about the asterisk-bugs mailing list