[How-To] Install Asterisk 11 and chan_dongle on Odroid C2

Raspberry projects

[How-To] Install Asterisk 11 and chan_dongle on Odroid C2

Messaggio da leggereda root » 06/10/2018, 8:15

Just a quick How-To about installing Asterisk 11 and Chan_Dongle (GSM audio & SMS channel for Huawei USB dongles) on Odroid C2.
Immagine

Chan_dongle project: https://www.google.it/url?sa=t&rct=j&q= ... FdPTce1TOc
NOTE: chan_dongle works with just a few of Huawei USB dongle models, see the above link.

Instructions:

# system update

Codice: Seleziona tutto
su - root
apt-get update
apt-get dist-upgrade
apt-get clean
apt-get autoclean
apt-get autoremove
reboot


# pre-requisites

Codice: Seleziona tutto
su - root
apt-get install git
apt-get install build-essential
apt-get install libncurses5-dev
apt-get install libxml2
apt-get install libxml2-dev
apt-get install libsqlite3-dev
apt-get install libiksemel-dev libssl-dev
apt-get install usbutils unzip autoconf automake
apt-get install linux-headers-`uname -r` gcc g++ make libnewt-dev openssl libssl-dev zlib1g-dev
apt-get clean
apt-get autoclean
apt-get autoremove
reboot


# Asterisk 11 installation

Codice: Seleziona tutto
su - root
git clone -b 11 http://gerrit.asterisk.org/asterisk asterisk-11
cd  asterisk-11
./configure
make
make menuconfig # optional
make install
make samples
/usr/sbin/asterisk # first run of asterisk
asterisk -vvvvvr # Asterisk CLI: type "core show help" to test it
killall asterisk  # kill Asterisk process
reboot


# chan dongle install

Codice: Seleziona tutto
su - root
wget https://github.com/jstasiak/asterisk-chan-dongle/archive/asterisk11.zip
unzip asterisk11.zip
cd asterisk-chan-dongle-asterisk11/
cp configure.in configure.ac
aclocal
autoconf
automake -a
./configure
make all
make install
reboot


# Asterisk configuration, modify example files for your needs

Codice: Seleziona tutto
su - root
nano /etc/asterisk/dongle.conf
nano /etc/asterisk/voicemail.conf
nano /etc/asterisk/extensions.conf
nano /etc/asterisk/asterisk.conf
nano /etc/asterisk/sip.conf
reboot


# Asterisk start & test

Codice: Seleziona tutto
su - root
/usr/sbin/asterisk
asterisk -vvvvvr # Asterisk CLI


Tips:

in the Asterisk CLI type: "core show help" to see available commands,
to test dongle type: "dongle show devices", you should see something like this:

Codice: Seleziona tutto
> dongle show devices
ID           Group State      RSSI Mode Submode Provider Name  Model      Firmware          IMEI             IMSI             Number       
dongle0      1     Free       14   5    4       3 Italy        E169       11.314.11.00.00   358109024xxxxxxx  22299210xxxxxx  +393935xxxxx


I will post configuration examples ASAP, anyway you might find a lot of interesting guides about that. ;)
Maurizio
Avatar utente
root
Amministratore
 
Messaggi: 390
Iscritto il: 10/04/2012, 10:55
Località: Turin

Torna a Raspberry

Chi c’è in linea

Visitano il forum: Nessuno e 1 ospite

cron