1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

BUG Sound Languages screen in FreePBX broken?

Discussion in 'Open Discussion' started by CyberneticianDave, Mar 27, 2018.

  1. CyberneticianDave

    CyberneticianDave New Member

    Joined:
    Mar 9, 2018
    Messages:
    10
    Likes Received:
    1
    Hi all

    I wonder if anyone can help me. I was hoping to download the UK english voice prompts using the "sound languages" option in the Admin menu.

    However, when I load the screen I have lots of artefacts from the PBX in a flash website (see attached screenshot) and a message saying:
    Code:
    Unable to get online sound packages. Error was: [0]
    I can't click on the UK download button, but none of the others work either.

    [​IMG]
     
  2. Rrrr

    Rrrr Guru

    Joined:
    May 28, 2009
    Messages:
    314
    Likes Received:
    22
    same same here, any tips?

    Asterisk 13.18.5
    Incredible 13.0.120.10
    Centos 6.9
     
    #2 Rrrr, Apr 14, 2018 at 4:31 AM
    Last edited: Apr 17, 2018 at 3:39 AM
  3. ostridge

    ostridge Guru

    Joined:
    Jan 22, 2015
    Messages:
    306
    Likes Received:
    55
    #3 ostridge, Apr 16, 2018 at 10:58 AM
    Last edited: Apr 16, 2018 at 12:06 PM
  4. Rrrr

    Rrrr Guru

    Joined:
    May 28, 2009
    Messages:
    314
    Likes Received:
    22
    @ostridge thank you for the useful links. I need other languages.
    Can you explain further about menuselect?
     
    ostridge likes this.
  5. ostridge

    ostridge Guru

    Joined:
    Jan 22, 2015
    Messages:
    306
    Likes Received:
    55
    But did you scroll down the (long) listing of the sound files http://downloads.asterisk.org/pub/telephony/sounds/releases/
    You don't say which language(s) you are into; such as en; en_GB; fr; es; and I presume (without my looking) etc. etc. ??

    the following threads deal with upgrade asterisk to current version.

    https://pbxinaflash.com/community/threads/manually-updating-asterisk.6608/

    https://pbxinaflash.com/community/threads/original-asterisk-upgrade-script.12560/

    https://pbxinaflash.com/community/threads/asterisk-13-12-2-upgrade.20586/
    'make menuselect' is run during the upgrade and provides a menu where you can decide to install various features. Mostly the defaults are what is required unless of course you ALSO want to install your set of language files as part of the upgrade.


    The language files tarball can be downloaded, untar, and placed into their proper place on your server.
    for example mine were added in /var/lib/asterisk/sounds/en_GB
    your default en sounds are in
    /var/lib/asterisk/sounds/en (keep them in (en) for reference)
    of course some are grouped into subdirectories such as
    ..../sounds/en/dictate or digits or followme or letters or phonetic or silence .

    Getting the language files to work involves searching for the language=en
    doing a search and replace with your (=en_GB or sojmething) in various files by searching for the relevant text e.g. language=en and search/replace for en with your language directory name as 'en_GB' for example

    Before editing any files note that some files contain the fPBX warning not to edit notably *_additional.conf

    The changes are to be done in the *_custom.conf files of similar name

    my search came up with
    Code:
    /etc/default/locale
    /etc/locale.gen
    /etc/asterisk/extensions_custom.conf
    /etc/asterisk/say.conf
    Do NOT edit:  /etc/asterisk/extensions_additional.conf
    /etc/asterisk/globals_custom.conf
    Do NOT edit: /etc/asterisk/sip_general_additional.conf 
    Which language is used is just a matter of telling the dialplan which subdirectory within 'sounds' it should use.

    If your particular language recording is missing then asterisk will use the equivalent from the en directory or something.

    Don't forget to do an
    Code:
     /root/incrediblebackup 
    before you start. If you edit any files first do make a backup.

    And oh! you may also like https://wiki.asterisk.org/wiki/display/AST/Using+Menuselect+to+Select+Asterisk+Options
     
    #5 ostridge, Apr 16, 2018 at 10:23 PM
    Last edited: Apr 16, 2018 at 10:31 PM
  6. Rrrr

    Rrrr Guru

    Joined:
    May 28, 2009
    Messages:
    314
    Likes Received:
    22
    @ostridge thank again for taking the time to explain.

    I note that both http://downloads.digium.com/pub/telephony/sounds/ and http://downloads.asterisk.org/pub/telephony/sounds/releases/ resolve to the same place: It's a great source. I guess I just take the highest version number
    (I also checked https://www.asterisksounds.org/en/download, but the sound files are only in sln16 format).

    1. I see in my log asterisk selects the correct sound file based on the channel codec: gsm, ulaw, alaw, g722, but it does not select sln16 (which I assume is best quality). How do I best work with sln16?

    2. Why do you suggest I upgrade asterisk? I installed this version 13.18.5 just a few months ago;

    3. I miss greek, dutch, hebrew: would love to know where I can find the sources.
     
  7. ostridge

    ostridge Guru

    Joined:
    Jan 22, 2015
    Messages:
    306
    Likes Received:
    55
    I read that .sln is native asterisk, and asterisk can transcode but that takes precious cycles.

    Upgrade always carries a risk of going south, though I have not experienced that (yet). safer to backup download the script for your version, and if you can read the script you could find the code to just run 'make menuselect' but I have not done that for a long time, and perhaps @wardmundy might help with that?

    Ah well that's greek to me, and you will have to go dutch :biggrinjester:.

    Just noticed that (eu) is for basque, which I thought perhaps a bit of a hijack.;)

    I don't know whether as a work around you might pacify your audience by trying (de) (fr) (en_GB) ??
    Regards
     
    #7 ostridge, Apr 17, 2018 at 6:43 AM
    Last edited: Apr 17, 2018 at 7:01 AM
  8. Rrrr

    Rrrr Guru

    Joined:
    May 28, 2009
    Messages:
    314
    Likes Received:
    22
    :rolleyes:

    For info, with thanks to @ostridge:

    Code:
    mkdir /var/lib/asterisk/sounds/en_GB
    cd /var/lib/asterisk/sounds/en_GB
    
    wget http://downloads.asterisk.org/pub/telephony/sounds/asterisk-core-sounds-en_GB-alaw-current.tar.gz 
    wget http://downloads.asterisk.org/pub/telephony/sounds/asterisk-core-sounds-en_GB-ulaw-current.tar.gz  
    wget http://downloads.asterisk.org/pub/telephony/sounds/asterisk-core-sounds-en_GB-g722-current.tar.gz  
    wget http://downloads.asterisk.org/pub/telephony/sounds/asterisk-core-sounds-en_GB-sln16-current.tar.gz  
    
    tar -xzf asterisk-core*alaw*.gz
    tar -xzf asterisk-core*ulaw*.gz 
    tar -xzf asterisk-core*g722*.gz 
    tar -xzf asterisk-core*sln16*.gz 
    
    wget http://downloads.asterisk.org/pub/telephony/sounds/asterisk-extra-sounds-en_GB-alaw-current.tar.gz
    wget http://downloads.asterisk.org/pub/telephony/sounds/asterisk-extra-sounds-en_GB-ulaw-current.tar.gz
    wget http://downloads.asterisk.org/pub/telephony/sounds/asterisk-extra-sounds-en_GB-g722-current.tar.gz
    wget http://downloads.asterisk.org/pub/telephony/sounds/asterisk-extra-sounds-en_GB-sln16-current.tar.gz
    
    tar -xzf asterisk-extra*alaw*.gz
    tar -xzf asterisk-extra*ulaw*.gz
    tar -xzf asterisk-extra*g722*.gz
    tar -xzf asterisk-extra*sln16*.gz
    
    rm asterisk*sounds*gz
    
     
    #8 Rrrr, Apr 17, 2018 at 7:01 AM
    Last edited: Apr 17, 2018 at 8:21 AM
    ostridge likes this.
  9. Rrrr

    Rrrr Guru

    Joined:
    May 28, 2009
    Messages:
    314
    Likes Received:
    22
    Thanks for the effort, here is exactly where I got stuck.
    I hope the bug in the OP will be fixed.
     
  10. ostridge

    ostridge Guru

    Joined:
    Jan 22, 2015
    Messages:
    306
    Likes Received:
    55
    What repo does the OP's bug point to; it is'nt there on the raspbian8 version probably due to space; and the fact that ipbx can pick & choose. The PIAF must be looking in a repo where permission is lacking?
     
  11. Rrrr

    Rrrr Guru

    Joined:
    May 28, 2009
    Messages:
    314
    Likes Received:
    22
    I have the same problem with:
    Asterisk 13.18.5
    Incredible 13.0.120.10
    Centos 6.9
     
  12. ostridge

    ostridge Guru

    Joined:
    Jan 22, 2015
    Messages:
    306
    Likes Received:
    55

Share This Page