[Home]

Summary:ASTERISK-10608: Set CHANNEL(language)=es not changing spanish digit path
Reporter:Bram Swenson (bswenson)Labels:
Date Opened:2007-10-23 21:44:38Date Closed:2011-06-07 14:07:59
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Applications/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:Using Set(CHANNEL(language)=es) then using SayNumber application errors in spanish (and maybe other langs) due to an incorrect path setting. Basically digits/200 rather than es/digits/200 is trying to be played. I have been able to reproduce this error in both 1.4.11 and 1.4.13 source installations on Debian etch. Here are some dialplan snippets and verbose messages for further verification:

exten => 8021,1,Set(CHANNEL(language)=es)
exten => 8021,n,SayNumber(21)
exten => 8021,n,SayNumber(22)
exten => 8021,n,SayNumber(23)
exten => 8021,n,SayNumber(24)
exten => 8021,n,SayNumber(25)
exten => 8021,n,SayNumber(26)
exten => 8021,n,SayNumber(27)
exten => 8021,n,SayNumber(28)
exten => 8021,n,SayNumber(29)
exten => 8021,n,SayNumber(30)
exten => 8021,n,SayNumber(31)
exten => 8021,n,SayNumber(200)
exten => 8021,n,SayNumber(300)
exten => 8021,n,SayNumber(400)
exten => 8021,n,SayNumber(500)
exten => 8021,n,SayNumber(600)
exten => 8021,n,SayNumber(700)
exten => 8021,n,SayNumber(800)
exten => 8021,n,SayNumber(900)
exten => 8021,n,Hangup


##################
# VERBOSE CONSOLE
##################

   -- Executing [8021@default:1] Set("SIP/7000-008104a0", "CHANNEL(language)=es") in new stack
   -- Executing [8021@default:2] SayNumber("SIP/7000-008104a0", "21") in new stack
[Oct 24 02:53:44] WARNING[24695]: file.c:563 ast_openstream_full: File digits/21 does not exist in any format
[Oct 24 02:53:44] WARNING[24695]: file.c:866 ast_streamfile: Unable to open digits/21 (format 0x4 (ulaw)): No such file or directory
   -- Executing [8021@default:3] SayNumber("SIP/7000-008104a0", "22") in new stack
[Oct 24 02:53:44] WARNING[24695]: file.c:563 ast_openstream_full: File digits/22 does not exist in any format
[Oct 24 02:53:44] WARNING[24695]: file.c:866 ast_streamfile: Unable to open digits/22 (format 0x4 (ulaw)): No such file or directory
   -- Executing [8021@default:4] SayNumber("SIP/7000-008104a0", "23") in new stack
[Oct 24 02:53:44] WARNING[24695]: file.c:563 ast_openstream_full: File digits/23 does not exist in any format
[Oct 24 02:53:44] WARNING[24695]: file.c:866 ast_streamfile: Unable to open digits/23 (format 0x4 (ulaw)): No such file or directory
   -- Executing [8021@default:5] SayNumber("SIP/7000-008104a0", "24") in new stack
[Oct 24 02:53:44] WARNING[24695]: file.c:563 ast_openstream_full: File digits/24 does not exist in any format
[Oct 24 02:53:44] WARNING[24695]: file.c:866 ast_streamfile: Unable to open digits/24 (format 0x4 (ulaw)): No such file or directory
   -- Executing [8021@default:6] SayNumber("SIP/7000-008104a0", "25") in new stack
[Oct 24 02:53:44] WARNING[24695]: file.c:563 ast_openstream_full: File digits/25 does not exist in any format
[Oct 24 02:53:44] WARNING[24695]: file.c:866 ast_streamfile: Unable to open digits/25 (format 0x4 (ulaw)): No such file or directory
   -- Executing [8021@default:7] SayNumber("SIP/7000-008104a0", "26") in new stack
[Oct 24 02:53:44] WARNING[24695]: file.c:563 ast_openstream_full: File digits/26 does not exist in any format
[Oct 24 02:53:44] WARNING[24695]: file.c:866 ast_streamfile: Unable to open digits/26 (format 0x4 (ulaw)): No such file or directory
   -- Executing [8021@default:8] SayNumber("SIP/7000-008104a0", "27") in new stack
[Oct 24 02:53:44] WARNING[24695]: file.c:563 ast_openstream_full: File digits/27 does not exist in any format
[Oct 24 02:53:44] WARNING[24695]: file.c:866 ast_streamfile: Unable to open digits/27 (format 0x4 (ulaw)): No such file or directory
   -- Executing [8021@default:9] SayNumber("SIP/7000-008104a0", "28") in new stack
[Oct 24 02:53:44] WARNING[24695]: file.c:563 ast_openstream_full: File digits/28 does not exist in any format
[Oct 24 02:53:44] WARNING[24695]: file.c:866 ast_streamfile: Unable to open digits/28 (format 0x4 (ulaw)): No such file or directory
   -- Executing [8021@default:10] SayNumber("SIP/7000-008104a0", "29") in new stack
[Oct 24 02:53:44] WARNING[24695]: file.c:563 ast_openstream_full: File digits/29 does not exist in any format
[Oct 24 02:53:44] WARNING[24695]: file.c:866 ast_streamfile: Unable to open digits/29 (format 0x4 (ulaw)): No such file or directory
   -- Executing [8021@default:11] SayNumber("SIP/7000-008104a0", "30") in new stack
   -- <SIP/7000-008104a0> Playing 'digits/30' (language 'es')
   -- Executing [8021@default:12] SayNumber("SIP/7000-008104a0", "31") in new stack
   -- <SIP/7000-008104a0> Playing 'digits/30' (language 'es')
[Oct 24 02:53:45] WARNING[24695]: file.c:563 ast_openstream_full: File digits/and does not exist in any format
[Oct 24 02:53:45] WARNING[24695]: file.c:866 ast_streamfile: Unable to open digits/and (format 0x4 (ulaw)): No such file or directory
   -- <SIP/7000-008104a0> Playing 'digits/1' (language 'es')
   -- Executing [8021@default:13] SayNumber("SIP/7000-008104a0", "200") in new stack
[Oct 24 02:53:46] WARNING[24695]: file.c:563 ast_openstream_full: File digits/200 does not exist in any format
[Oct 24 02:53:46] WARNING[24695]: file.c:866 ast_streamfile: Unable to open digits/200 (format 0x4 (ulaw)): No such file or directory
   -- Executing [8021@default:14] SayNumber("SIP/7000-008104a0", "300") in new stack
[Oct 24 02:53:46] WARNING[24695]: file.c:563 ast_openstream_full: File digits/300 does not exist in any format
[Oct 24 02:53:46] WARNING[24695]: file.c:866 ast_streamfile: Unable to open digits/300 (format 0x4 (ulaw)): No such file or directory
   -- Executing [8021@default:15] SayNumber("SIP/7000-008104a0", "400") in new stack
[Oct 24 02:53:46] WARNING[24695]: file.c:563 ast_openstream_full: File digits/400 does not exist in any format
[Oct 24 02:53:46] WARNING[24695]: file.c:866 ast_streamfile: Unable to open digits/400 (format 0x4 (ulaw)): No such file or directory
   -- Executing [8021@default:16] SayNumber("SIP/7000-008104a0", "500") in new stack
[Oct 24 02:53:46] WARNING[24695]: file.c:563 ast_openstream_full: File digits/500 does not exist in any format
[Oct 24 02:53:46] WARNING[24695]: file.c:866 ast_streamfile: Unable to open digits/500 (format 0x4 (ulaw)): No such file or directory
   -- Executing [8021@default:17] SayNumber("SIP/7000-008104a0", "600") in new stack
[Oct 24 02:53:46] WARNING[24695]: file.c:563 ast_openstream_full: File digits/600 does not exist in any format
[Oct 24 02:53:46] WARNING[24695]: file.c:866 ast_streamfile: Unable to open digits/600 (format 0x4 (ulaw)): No such file or directory
   -- Executing [8021@default:18] SayNumber("SIP/7000-008104a0", "700") in new stack
[Oct 24 02:53:46] WARNING[24695]: file.c:563 ast_openstream_full: File digits/700 does not exist in any format
[Oct 24 02:53:46] WARNING[24695]: file.c:866 ast_streamfile: Unable to open digits/700 (format 0x4 (ulaw)): No such file or directory
   -- Executing [8021@default:19] SayNumber("SIP/7000-008104a0", "800") in new stack
[Oct 24 02:53:46] WARNING[24695]: file.c:563 ast_openstream_full: File digits/800 does not exist in any format
[Oct 24 02:53:46] WARNING[24695]: file.c:866 ast_streamfile: Unable to open digits/800 (format 0x4 (ulaw)): No such file or directory
   -- Executing [8021@default:20] SayNumber("SIP/7000-008104a0", "900") in new stack
[Oct 24 02:53:46] WARNING[24695]: file.c:563 ast_openstream_full: File digits/900 does not exist in any format
[Oct 24 02:53:46] WARNING[24695]: file.c:866 ast_streamfile: Unable to open digits/900 (format 0x4 (ulaw)): No such file or directory
   -- Executing [8021@default:21] Hangup("SIP/7000-008104a0", "") in new stack

Comments:By: Tilghman Lesher (tilghman) 2007-10-24 23:35:29

That would be because the correct path for es sounds is digits/es/1, not es/digits/1.

By: Bram Swenson (bswenson) 2007-10-25 17:26:27

Whatever the path is supposed to be SayNumber should know not me. This issue still exists, I should be able to do SayNumber(200) after setting CHANNEL(language)=es should I not? Did you read past my typo on the path? I thought I included enough information for this bug to be understood. If not please tell me what to include next time to get a better response.



By: Jason Parker (jparker) 2007-10-25 17:53:07

He is saying that your sound pack may be incorrect.  If they are not where he stated, you will need to move them.

By: Bram Swenson (bswenson) 2007-10-25 18:07:44

No, if you read the verbose logs, it is not even adding the 'es' to the path unless SayNumber is not verbose about that change. My other point in that regard is that my sound packs were installed via make menuselect from a fresh 1.4.13 install from source and was the first thing I checked. I should also note that everything else (that I have used, ie Playback/Background) is properly playing the spanish sounds files. Should I be doing more to insure proper installation than checking the box for spanish sounds and allowing the make tools to do their job?



By: Jason Parker (jparker) 2007-10-25 18:18:11

Can you try setting languageprefix=yes in asterisk.conf, in the options section?

By: Bram Swenson (bswenson) 2007-10-27 16:31:13

Thanks for the advice and direction. That seems to have corrected the issue. It also seems that I missed this being clearly documented in asterisk/doc/asterisk-conf.txt, Sorry for wasting your time:

languageprefix = yes | no                       ; Should language code be last component of sound file name or first?
                                               ; when off, sound files are searched as <path>/<lang>/<file>
                                               ; when on, sound files are search as <lang>/<path>/<file>
                                               ; (only affects relative paths for sound files)

This setting belongs in the [options] sections  of asterisk.conf like so:
[options]
languageprefix = yes