Stop messing about with voice prompt locations

I have noticed from recent updates that voice prompts have started to appear within the FPBX module directory, rather than the correct asterisk/sounds directory.

Please stop messing about with locations!
For example, the prompts for echo test are now located in /var/www/html/admin/modules/infoservices/sounds/en/infoservices rather than /var/lib/asterisk/sounds/en

This plays havoc with prompts which have been changed for different languages or custom voices added to the system, all of a sudden the End User starts getting american “alison” prompts again!

Please stop doing this! There is no reason why these things shouldnt be in the correct directory, its just laziness on the coding part. /var/www/html/admin/modules should be the html pages only, not for sound prompts!

Hi @cbsystems

Sorry for the confusion. Sound prompts have always been included in FreePBX modules in this way. “/var/www/html/admin/modules” has never just included HTML pages. They have always been symlinked from “/var/www/html/admin/modules//sounds” to “/var/lib/asterisk/sounds/”. It’s also not laziness, it works this way for a VERY good reason…

The reason you are noticing a change now is that we are working hard to support other languages. In the past all sound files were in the master sound folder (coming from each module). This meant that Asterisk would use those first. Meaning english would always be a priority. Now that we are supporting other languages for sound prompts we have to move them into “lang” folders.

Thus a symlink of “/var/www/html/admin/modules//sounds” to “/var/lib/asterisk/sounds/”

Turns into “/var/www/html/admin/modules//sounds/” to “/var/lib/asterisk/sounds/”

Here’s a quick summary:

  • There is a reason why these sound files are in the module directory. Firstly there is no other way to distribute sound files separately for a single module without including them WITH the module.We don’t distribute sound files separately. We install the default Asterisk sound files first. Then each module will place it’s own. It has been this way since 2007
  • Modules have always included more than just “html pages”. They have included sound prompts, agi scripts, call file generators and other non-html Asterisk related things.

So basically sound files will keep moving in all modules to their respective “en” folders. Which actually gives you better control over different languages moving forward.

3 Likes