How to convert audio files to ulaw, alaw, gsm, g722, etc. for Asterisk

After ordering the voice acting from a professional announcer and cutting in the sound editor, it was necessary to save the sounds in different formats, the original was in wav, so I’ll give an example of converting through sox (it already was in the system with Asterisk):

sox -V vm-intro.wav -r 8000 -c 1 -t ul vm-intro.ulaw
sox -V vm-intro.wav -r 8000 -c 1 -t al vm-intro.alaw
sox -V vm-intro.wav -r 8000 -c 1 -t gsm vm-intro.gsm

The codec g722 does not seem to support it, at least in man sox did not find it, so it installed ffmpeg (on the Ubuntu Server system):

sudo apt-get install ffmpeg

And performed the conversion:

ffmpeg -i vm-intro.wav -ar 16000 -acodec g722 vm-intro.g722

Standard directory with Asterisk sounds – /usr/share/asterisk/sounds

Installation and configuration of the IRC server – ircd-irc2

On the test I will launch IRC (Internet Relay Chat) server ircd-irc2 in Ubuntu Server 14.04.

The first command is to install the IRC server in Ubuntu:

sudo apt-get install ircd-irc2

There are several configuration files in the /etc/ircd/ directory: /etc/ircd/ircd.conf (main), /etc/ircd/ircd.motd (message to users when connecting), /etc/ircd/iauth.conf (connection parameters ).
In the /usr/share/doc/ircd-irc2/ directory, you can see examples of configuration files.

After the changes in the configuration files, you must reboot the IRC server:

sudo /etc/init.d/ircd-irc2 restart

Users can create and connect to channels with this command:

/join #channel_name

Installing Tarantool in Ubuntu

To install Tarantool in Ubuntu, execute the following commands:

sudo apt-get update
sudo apt-get install tarantool

I installed version 1.5 on the test, and the newest at that time was 1.7rc (the version can be viewed on the official site by the link below), so update the sources:

curl http://download.tarantool.org/tarantool/1.7/gpgkey | sudo apt-key add -
release=`lsb_release -c -s`
sudo apt-get -y install apt-transport-https
sudo rm -f /etc/apt/sources.list.d/*tarantool*.list
sudo tee /etc/apt/sources.list.d/tarantool_1_7.list <<- EOF
deb http://download.tarantool.org/tarantool/1.7/ubuntu/ $release main
deb-src http://download.tarantool.org/tarantool/1.7/ubuntu/ $release main
EOF

And we will perform the installation of the newest version, if the installation of Tarantool has already been performed, the update will be:

sudo apt-get update
sudo apt-get -y install tarantool

Installing system-config-samba

system-config-samba – a simple application for configuring samba with a graphical interface.

Installing by the command:

sudo apt-get install system-config-samba

Running:

sudo system-config-samba

Allows you to add shared folders, samba users, assign permissions to folders, etc., all changes are saved to samba configuration files.

See also:
Installing and Configuring Samba on Linux