Summary: | ASTERISK-24319: Verify accuracy of wiki documentation on how Asterisk searches for sounds | ||
Reporter: | Rusty Newton (rnewton) | Labels: | |
Date Opened: | 2014-09-11 11:26:35 | Date Closed: | 2015-08-14 13:03:21 |
Priority: | Minor | Regression? | |
Status: | Closed/Complete | Components: | Documentation |
Versions: | Frequency of Occurrence | ||
Related Issues: | |||
Environment: | Attachments: | ( 0) soundlevelsasterisk.txt | |
Description: | 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} | ||
Comments: | By: Stefan Engström (StefanEng86) 2014-09-11 11:52:21.267-0500 Here are my tests with commented output (easy to reproduce) http://pastebin.com/r48BJhge By: Rusty Newton (rnewton) 2015-01-30 14:13:56.326-0600 Stefan, can you attach your tests to the issue in a file? One of the reason we discourage links to external services(for debug info) is demonstrated by the fact that your pastebin has been removed and is no longer available. By: Stefan Engström (StefanEng86) 2015-02-02 03:22:47.439-0600 I'm sorry. I won't make that mistake for future JIRAS. My asterisk 12 test environment for which this issue was produced is lost, but I managed to recreate most of the contents of that old pastebin in the attached text file. I hope you can reproduce it. Anyways -- the current sound system works fine for us now -- we just created a symlink called /var/lib/asterisk/sounds/en_test which points to /var/lib/asterisk/sounds/en/test By: Rusty Newton (rnewton) 2015-08-14 13:00:10.242-0500 Fixed the wiki documentation. By: Asterisk Team (asteriskteam) 2015-08-14 13:00:11.313-0500 This issue has been reopened as a result of your commenting on it as the reporter. It will be triaged once again as applicable. |