Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
#!/bin/sh
##1. Dans le GUI :
##Modules Administration/Download and install Languages/Apply Config
##Asterisk SIP Settings/Advanced General Settings/Language = fr/Apply config
##2. En console :
##amportal restart
##3. Téléchargement des fichiers
REP=http://downloads.asterisk.org/pub/telephony/sounds
DIR=/var/lib/asterisk/sounds/fr
mkdir $DIR
cd $DIR
wget $REP/asterisk-core-sounds-fr-alaw-current.tar.gz
wget $REP/asterisk-core-sounds-fr-gsm-current.tar.gz
wget $REP/asterisk-core-sounds-fr-ulaw-current.tar.gz
wget $REP/asterisk-extra-sounds-fr-alaw-current.tar.gz
wget $REP/asterisk-extra-sounds-fr-gsm-current.tar.gz
wget $REP/asterisk-extra-sounds-fr-ulaw-current.tar.gz
wget $REP/asterisk-moh-opsound-alaw-current.tar.gz
wget $REP/asterisk-moh-opsound-gsm-current.tar.gz
wget $REP/asterisk-moh-opsound-ulaw-current.tar.gz
gunzip *.gz
tar xfv asterisk-core-sounds-fr-alaw-current.tar
tar xfv asterisk-core-sounds-fr-gsm-current.tar
tar xfv sounds/asterisk-core-sounds-fr-ulaw-current.tar
tar xfv asterisk-extra-sounds-fr-alaw-current.tar
tar xfv asterisk-extra-sounds-fr-gsm-current.tar
tar xfv asterisk-extra-sounds-fr-ulaw-current.tar
tar xfv asterisk-moh-opsound-alaw-current.tar
tar xfv asterisk-moh-opsound-gsm-current.tar
tar xfv asterisk-moh-opsound-ulaw-current.tar
rm asterisk-*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment