TIPS Sound language files can't be installed on RaspPi IncrediblePBX2020

ozymike

New Member
Joined
Feb 11, 2020
Messages
4
Reaction score
0
Hi guys,

just tried to install en_AU sound language files through the sound language module on IncrediblePBX2020 on RaspPi 4B. I did check that I am on the latest patch.

Once you press Accept License Agreement you get an error: Unknown Error. Response was empty from ["https:\/\/mirror.clearlyip.com"]

The function that throws the exception is
FreePBX\modules\Soundlang getRemoteFile
Line 1063

When I try the same on a CentOS 7 install, audio files load fine.

Any ideas?

Cheers
Michael
 

drgeoff

New Member
Joined
Mar 29, 2015
Messages
22
Reaction score
4
Hi guys,

just tried to install en_AU sound language files through the sound language module on IncrediblePBX2020 on RaspPi 4B. I did check that I am on the latest patch.

Once you press Accept License Agreement you get an error: Unknown Error. Response was empty from ["https:\/\/mirror.clearlyip.com"]

The function that throws the exception is
FreePBX\modules\Soundlang getRemoteFile
Line 1063

When I try the same on a CentOS 7 install, audio files load fine.

Any ideas?

Cheers
Michael
Not just the en_AU files. Same problem with downloading any of the sound language files, including the two English (US) ones that are not in the RPi installation image.

Suspect they are not present on the ClearlyIP server.
 

ostridge

Guru
Joined
Jan 22, 2015
Messages
1,629
Reaction score
520
Here is how: (You could re-run menuselect to install the required files at compile time.)
Or adjust this script using your country code so that '_GB' becomes '_AU' everywhere or whatever country sounds you need
Code:
#!/bin/bash

# Filename update_language_sounds-en_GB.sh
# Credits: PIAF Forum @Rrrr and @ostridge from pbxinaflash.com/community/

echo "To install Asterisk core sound files (_GB english) to directory /var/lib/asterisk/sounds/en_GB"
echo "for codecs alaw, ulaw, g722, g729, gsm, siren7, siren14, sln16, ulaw, and wav"
echo "This script is provided as is, and NO WARRANTY EXPRESS OR IMPLIED IS PROVIDED.
echo "Asterisk sound files are downloadable according to the language/country and according to the sound codecs required."
echo "The available downloads can be seen at https://downloads.asterisk.org/pub/telephony/sounds/ from your browser"
echo "It is strongly recommended to keep the default sounds located in /var/lib/asterisk/sounds/en/ directory because if "
echo "a particular sound file is unavailable in the appropriate language, asterisk will play the english en/*.gsm file as fallback."
echo "Language differences may cause errors."  
echo "E.g. software 'en' usage requiring play 'the pound key' would for 'en_GB' require to play 'the hash key'."
echo "Thus the need to the play the hash sound by changing the *custom.conf or rather rename files but then '15 pound' means what?.  

mkdir -p /var/lib/asterisk/sounds/en_GB
cd /var/lib/asterisk/sounds/en_GB

# Download the core-sounds 
wget http://downloads.asterisk.org/pub/telephony/sounds/asterisk-core-sounds-en_GB-alaw-current.tar.gz
tar -xzf asterisk-core*alaw*.gz  && rm asterisk-core-sounds-en_GB-alaw-current.tar.gz
wget http://downloads.asterisk.org/pub/telephony/sounds/asterisk-core-sounds-en_GB-g722-current.tar.gz
tar -xzf asterisk-core*g722*.gz && rm asterisk-core-sounds-en_GB-g722-current.tar.gz
# wget http://downloads.asterisk.org/pub/telephony/sounds/asterisk-core-sounds-en_GB-g729-current.tar.gz
# tar -xzf asterisk-core*g729*.gz && rm asterisk-core-sounds-en_GB-g729-current.tar.gz
wget http://downloads.asterisk.org/pub/telephony/sounds/asterisk-core-sounds-en_GB-gsm-current.tar.gz
tar -xzf asterisk-core*en_GB-gsm*.gz && rm asterisk-core-sounds-en_GB-gsm-current.tar.gz
#wget http://downloads.asterisk.org/pub/telephony/sounds/asterisk-core-sounds-en_GB-slren7-current.tar.gz
# tar -xzf asterisk-core*siren7*.gz && rm asterisk-core-sounds-en_GB-slren7-current.tar.gz
#wget http://downloads.asterisk.org/pub/telephony/sounds/asterisk-core-sounds-en_GB-siren14-current.tar.gz
# tar -xzf asterisk-core*siren14*.gz && rm asterisk-core-sounds-en_GB-siren14-current.tar.gz
wget http://downloads.asterisk.org/pub/telephony/sounds/asterisk-core-sounds-en_GB-sln16-current.tar.gz
tar -xzf asterisk-core*sln16*.gz && rm asterisk-core-sounds-en_GB-sln16-current.tar.gz
wget http://downloads.asterisk.org/pub/telephony/sounds/asterisk-core-sounds-en_GB-ulaw-current.tar.gz
tar -xzf asterisk-core*ulaw*.gz && rm asterisk-core-sounds-en_GB-ulaw-current.tar.gz
#wget http://downloads.asterisk.org/pub/telephony/sounds/asterisk-core-sounds-en_GB-wav-current.tar.gz
# tar -xzf asterisk-core*wav*.gz && rm asterisk-core-sounds-en_GB-wav-current.tar.gz

echo "Install of Asterisk extra sound files (_GB english) to directory /var/lib/asterisk/sounds/en_GB"
echo "These language files will still need to be enabled in the FreePBX dialplan files as necessary.  
echo "Several FreePBX files are marked as 'Do not edit' in which case; its generally the *-custom.conf file 
echo "that should provide the corrected dialplan context."
echo "One will generally need to change 'language=en' to 'language=en_GB' (without the quotes) where en_GB represents 
echo "the ISO_639-2_code language_plus ISO 3166 country code e.g. en_AU = english_AUSTRALIA  (uk is ukranian and  not United Kingdom)" 

echo "extra-sounds for codecs alaw, ulaw, g722, g729, gsm, siren7, siren14, sln16, ulaw, and wav"
## Uncomment line pairs as required
wget http://downloads.asterisk.org/pub/telephony/sounds/asterisk-extra-sounds-en_GB-alaw-current.tar.gz
tar -xzf asterisk-extra*alaw*.gz && rm asterisk*sounds*gz
wget http://downloads.asterisk.org/pub/telephony/sounds/asterisk-extra-sounds-en_GB-g722-current.tar.gz
tar -xzf asterisk-extra*g722*.gz && rm asterisk*sounds*gz
#wget http://downloads.asterisk.org/pub/telephony/sounds/asterisk-extra-sounds-en_GB-g729-current.tar.gz
#tar -xzf asterisk-extra*g729*.gz && rm asterisk*sounds*gz
wget http://downloads.asterisk.org/pub/telephony/sounds/asterisk-extra-sounds-en_GB-gsm-current.tar.gz
tar -xzf asterisk-extra*-gsm*.gz && rm asterisk*sounds*gz
# wget http://downloads.asterisk.org/pub/telephony/sounds/asterisk-extra-sounds-en_GB-siren7-current.tar.gz
# tar -xzf asterisk-extra*siren7*.gz && rm asterisk*sounds*gz
# wget http://downloads.asterisk.org/pub/telephony/sounds/asterisk-extra-sounds-en_GB-siren14-current.tar.gz
# tar -xzf asterisk-extra*siren14*.gz && rm asterisk*sounds*gz
wget http://downloads.asterisk.org/pub/telephony/sounds/asterisk-extra-sounds-en_GB-sln16-current.tar.gz
tar -xzf asterisk-extra*sln16*.gz && rm asterisk*sounds*gz
wget http://downloads.asterisk.org/pub/telephony/sounds/asterisk-extra-sounds-en_GB-ulaw-current.tar.gz
tar -xzf asterisk-extra*ulaw*.gz && rm asterisk*sounds*gz
# wget http://downloads.asterisk.org/pub/telephony/sounds/asterisk-extra-sounds-en_GB-wav-current.tar.gz
# tar -xzf asterisk-extra*wav*.gz && rm asterisk*sounds*gz
cd /root/

echo "Install of extra-sounds files (_GB english) to directory /var/lib/asterisk/sounds/en_GB"
echo "Done"

# end of script
 
Last edited:

ostridge

Guru
Joined
Jan 22, 2015
Messages
1,629
Reaction score
520
sound language module on IncrediblePBX2020 on RaspPi
Hi just done some more on this.

If you open Admin/Sound Languages ;

AdminSoundLang1.jpg

Then click on the purple marked download action but only to find the Licence dialog :-

Accept Licencebutno licence.JPG

I says Loading .... but you can wait 'FOREVER', or just blindly 'accept' - well Not B* likely. so you cannot accept.
Solution is to create your no-gotya language. So click on the red circled {Custom Languages} at the top of the Languages page page.
This leads to: the '+Add-New-Custom-Language' dialog:

+Add-New-Custom-Language.JPG

Click on the marked edit 'Action' to the edit dialog. Here simply enter the correct 'Language Code' for your language and then some description.

EditCustmLang.JPG.

Dont bother to add sound file Archives into the Drop box as it offers to convert them for you; when you can get the available formats by using the script above.
besides - you dont really know where they will end up..

But you do need to set your language as the default by clicking as the purple arrow above onto the pop out menu
The defined custom language (in my case en_GB ) tells the GUI

Settings.JPG

Wth red arrowed dropdown set your Global Language that Asterisk uses for the dialplan sounds generally.
With the orange arrowed drop down set a bunch of codecs. It doesnot show them all for a reason that escapes me???

The place to drop your sound files is in /var/lib/astarisk/sounds/en_GB to match whatever language code you chose (or maybe made up). Caution don't create a new /var/lib/asterisk/suoni (italian for 'sounds' ) because asterisk expects all sounds to be in 'sounds directory.

Permissions for sound files and their folders:

Permissions will already be set in the Archive files to download
For Sounds: in directories permissions
chmod -R 664 * and chmod asterisk:asterisk *
for folders chmod -R 775 and chmod asterisk:asterisk
For sounds
Code:
chown -R   asterisk:asterisk /var/lib/asterisk/sounds/*
chmod -R  664 /var/lib/asterisk/sounds/en_GB/*
drwxrwxr-x 8 asterisk asterisk 4096 Apr  5 02:43 ../sounds
drwxrwxr-x 8 asterisk asterisk 69632 Apr  6 10:07 /sounds/en_GB
cd :/var/lib/asterisk/sounds/en_GB/
root@incrediblepbx:/var/lib/asterisk/sounds/en# ll ../en_GB/this-call-may-be-recorded.*
-rw-rw-r-- 1 asterisk asterisk  3003 Apr  6 10:07 ../en_GB/this-call-may-be-recorded.gsm
-rw-rw-r-- 1 asterisk asterisk 29044 Apr  6 10:07 ../en_GB/this-call-may-be-recorded.sln16
-rw-rw-r-- 1 asterisk asterisk  7261 Apr  6 10:07 ../en_GB/this-call-may-be-recorded.ulaw
-rw-rw-r-- 1 asterisk asterisk 29088 Apr  6 10:07 ../en_GB/this-call-may-be-recorded.wav
Thas it then Done
 

Attachments

  • AdminSoundLang.jpg
    AdminSoundLang.jpg
    76.9 KB · Views: 1
  • +Add-New-Custom-Language.JPG
    +Add-New-Custom-Language.JPG
    38.9 KB · Views: 1
  • EditCustmLang.JPG
    EditCustmLang.JPG
    69.5 KB · Views: 1

Members online

Forum statistics

Threads
25,811
Messages
167,758
Members
19,240
Latest member
nikko
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Top