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

Guides and tutorials for various stuff. Posted by DietPi users.
Post Reply
User avatar
pilovis
Posts: 19
Joined: Sat Sep 29, 2018 4:32 pm
Location: Italy
Contact:

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

Post by pilovis » Sun Sep 30, 2018 7:32 am

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

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

Code: Select all

su - root
apt-get update
apt-get dist-upgrade
apt-get clean
apt-get autoclean
apt-get autoremove
reboot
# pre-requisites

Code: Select all

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

Code: Select all

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

Code: Select all

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

Code: Select all

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

Code: Select all

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:

Code: Select all

> 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. ;)
too old to rock 'n' roll too young to die.

Post Reply