[asterisk-bugs] [JIRA] (ASTERISK-24319) Verify accuracy of wiki documentation on how Asterisk searches for sounds

Rusty Newton (JIRA) noreply at issues.asterisk.org
Thu Sep 11 11:28:29 CDT 2014


Rusty Newton created ASTERISK-24319:
---------------------------------------

             Summary: Verify accuracy of wiki documentation on how Asterisk searches for sounds
                 Key: ASTERISK-24319
                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-24319
             Project: Asterisk
          Issue Type: Bug
      Security Level: None
          Components: Documentation
            Reporter: Rusty Newton
            Severity: Minor


https://wiki.asterisk.org/wiki/display/AST/Sound+Prompt+Searching+based+on+Channel+Language

>From IRC

{noformat}
<Stefan27> Does the sound prompt searching as in https://wiki.asterisk.org/wiki/display/AST/Sound+Prompt+Searching+based+on+Channel+Language really work as the wiki page says? I tried putting Set(CHANNEL(language)=en_test) and then Playback(mooon.wav) but this only works when i have created a file called mooon.wav in the sounds/en directory, not when i create it in the sounds/en/test directory
{noformat}
<snip>
{noformat}
<mjordan> I'm not sure the wiki page is correct however.
<mjordan> Asterisk will do a fallback, in that if you have a sound in en_foo, it will play it - but if that sound doesn't exist, it will check en next
<mjordan> What I'm not sure of is that it will form a path search from the underscores.
<mjordan> But I haven't dug deep enough to know for sure.
<mjordan> looking all the way back to 1.8, it looks like it would not form a sub-directory search. I think the wiki page is probably just wrong.
<mjordan> Based on the example there, it would instead do the following:
<mjordan> If the channel language is "en_GB_female_BT", check for that folder first, i.e., sounds/en_GB_female_BT
<mjordan> If it didn't find the sound, check sounds/en_GB_female
<mjordan> again, if it didn't find it, check sounds/en_GB
<mjordan> and finally, check sounds/en
{noformat}



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list