[Home]

Summary:ASTERISK-07272: app_playback does not respect language setting
Reporter:Geoffrey Cleaves (gcleaves)Labels:
Date Opened:2006-07-02 07:18:23Date Closed:2011-06-07 14:08:27
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Applications/app_playback
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:app_playback does not respect language setting when the sound filename includes a directory path:

   -- Executing Set("SIP/201-7157", "LANGUAGE()=en") in new stack
   -- Executing Playback("SIP/201-7157", "custom/sound") in new stack
   -- Playing 'custom/sound' (language 'en')
   -- Executing Set("SIP/201-7157", "LANGUAGE()=es") in new stack
   -- Executing Playback("SIP/201-7157", "custom/sound") in new stack
   -- Playing 'custom/sound' (language 'es')

Above results in the SAME sound file - the one located in the default 'en' directory - being played despite the language change and the fact that both en/custom/sound.wav and es/custom/sound.wav exist.
Comments:By: Andrey S Pankov (casper) 2006-07-02 15:24:33

A quote from UPGRADE.txt:

---- CUT ----
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.
---- CUT ----

So it seems like 1.2 branch should not support the layout you described.

By: Clod Patry (junky) 2006-08-08 21:14:29

If you see something which is bad, feel free to re-open.