User Tools

Site Tools


This is an old revision of the document!


Chan_dongle runs only in asterisk 1.6.2 and asterisk 1.8. Asterisk 1.4 is not supported.

Asterisk Installation

There is a lot of very good howto's explaining Asterisk installation. Take a look at this brief summary (Debian), but you can take a look at 1, 2 or 3 (in spanish).

Note that we don't need Dahdi channel to run chan_dongle, so it can be avoided.


Be careful with iptables and selinux. If needed, edit /etc/selinux/config and write:


Then, disable iptables

iptables -F
iptables-save > /etc/iptables.up.rules

or configure it to allow SIP (port 5060) and RTP (port 10000-20000) if you plan to use these protocols.

Now upgrade your system

apt-get update
apt-get upgrade

And install packages needed for compilation of asterisk

apt-get install linux-headers-`uname -r` gcc g++ make libnewt-dev libncurses5-dev openssl libssl-dev zlib1g-dev

Asterisk Installation

Download source files and untar. Asterisk 1.6 is explained, but 1.8 looks similar.

tar zxvf asterisk-

If you will use FreePBX, then install asterisk-addons

tar zxvf asterisk-addons-

Now compile

cd asterisk-
make clean && ./configure --disable-xmldocs && make && make install && make config

If needed

make samples

Install chan_dongle

Obtain source code

If you installed asterisk as described here, go ahead. Anyway, check some dependencies like automake and autoconf. Also must have asterisk sources and development tools like make, gcc and so on.

SVN Method

svn checkout dongle-read-only
cd dongle-read-only
aclocal && autoconf && automake -a

Compressed package

Go to and download .tgz package, then

tar -zxvf chan_donle_%VERSION.r%REVISION.tgz
cd chan_donle_%VERSION.r%REVISION

Set Build options


configure options:

  • --enable-debug
  • --disable-debug
  • --enable-manager
  • --disable-manager
  • --enable-apps
  • --disable-apps
  • --with-asterisk=/path_to_source/asterisk.h

usefull environment variables



  • DESTDIR=“/usr/lib/asterisk/modules” ./configure
  • ./configure –with-asterisk=/usr/src/asterisk-
  • CFLAGS=“-I /usr/src/asterisk-” ./configure
  • ./configure --enable-debug
  • ./configure --disable-apps --disable-manager
  • CFLAGS=“-O0 -g” ./configure
  • CFLAGS=“-Os” ./configure

default is

  • ./configure --disable-debug --enable-apps --enable-manager
  • DESTDIR searching in /usr/lib/asterisk/modules /usr/local/lib/asterisk/modules /opt/local/lib/asterisk/modules


  • asterisk.h searching in ../include /usr/include /usr/local/include /opt/local/include


For compile and build source to module



For install property configured and build module:

sudo make install

Module Configuration

Once installed, copy example file dongle-read-only/etc/dongle.conf to /path_to_asterisk_config/ (i.e. /etc/asterisk/). Configure it as desired and start asterisk. To load, stop or restart chan_dongle:

CLI>module load
CLI>module unload
CLI>module reload
installation.1383393511.txt.gz · Last modified: 2015/04/16 13:44 (external edit)