Chan_dongle

Guys, I have FreePBX Stable-6.12.65, Release Date-2014, FreePBX 12, Linux 6.5 and
Asterisk 11. Is Chan_dongle installed by default or should I install it to be able to connect some GSM USB dongles? If there is the need to instalation is there any step by step procedure available?

kind regards

Please?

kind regards

Let´s Go:

Firist:

yum -y install tcl asterisk11-devel make automake binutils

usb_modeswitch-1.2.3-1.el6.rf.x86_64.rpm and usb_modeswitch-data-20120120-1.el6.rf.noarch.rpm

rpm -ivh usb_modeswitch-1.2.3-1.el6.rf.x86_64.rpm usb_modeswitch-data-20120120-1.el6.rf.noarch.rpm

cd /usr/src
wget https://github.com/jstasiak/asterisk-chan-dongle/archive/asterisk11.zip

unzip asterisk11.zip
cd asterisk-chan-dongle-asterisk11
aclocal && autoconf && automake -a
./configure
make
make install
cp chan_dongle.so /usr/lib64/asterisk/modules/
cp etc/dongle.conf /etc/asterisk

vim /etc/udev/rules.d/92-dongle.rules and insert this => KERNEL==“ttyUSB*”, MODE=“0666”, OWNER=“asterisk”, GROUP=“uucp”

vim /etc/asterisk/asterisk.conf and insert this: rungroup = dialout

asterisk -vvvvvvvvr

CLI: module load chan_dongle.so

:slight_smile:

Thanks for the reply!

Will this change any configuration I already have in my asterisk + freePBX?

kind regards

After installing chan_dongle.so, will have to change the rules of outgoing , usually in extensions_custom.conf

But will this update change any of my actual extensions, trunks or any other configurations I have done on asterisk so far?

kind regards

1 Like

There is no update in this case , but installation asterisk11 -dev package.

It is your criterion using chan_dongle , so went through the installation method I use . Misconfiguration can compromise your PBX .

[root@localhost ~]# sudo rpm -ivh usb_modeswitch-1.2.3-1.el6.rf.x86_64.rpm usb_modeswitch-data-20120120-1.el6.rf.noarch.rpm
error: open of usb_modeswitch-1.2.3-1.el6.rf.x86_64.rpm failed: No such file or directory
error: open of usb_modeswitch-data-20120120-1.el6.rf.noarch.rpm failed: No such file or directory

what am I doing wrong?

got it!!

I found the files online and downloaded them before installing:

wget usb_modeswitch-data-20120120-1.el6.rf.noarch.rpm
wget http://ftp.pbone.net/mirror/apt.sw.be/redhat/el6/en/x86_64/rpmforge/RPMS/usb_modeswitch-1.2.3-1.el6.rf.x86_64.rpm

After following all the steps as suggested I got when I go lsusb:
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 002: ID 1a40:0101 Terminus Technology Inc. Hub
Bus 003 Device 003: ID 1a40:0101 Terminus Technology Inc. Hub
Bus 003 Device 004: ID 1a40:0101 Terminus Technology Inc. Hub
Bus 003 Device 005: ID 1a40:0101 Terminus Technology Inc. Hub
Bus 003 Device 006: ID 1a40:0101 Terminus Technology Inc. Hub
Bus 003 Device 008: ID 12d1:1003 Huawei Technologies Co., Ltd. E220 HSDPA Modem / E230/E270/E870 HSDPA/HSUPA Modem

It seams that my E160E gsm modem is OK so far…

[root@localhost ~]# ls /dev/ttyUSB*
/dev/ttyUSB0 /dev/ttyUSB1

when I go to asterisk console I get error messages:
– [dongle0] Trying to connect on /dev/ttyUSB2…
[2014-12-04 19:08:17] WARNING[2164]: chan_dongle.c:218 opentty: unable to open /dev/ttyUSB2: No such file or directory
– [dongle0] Trying to connect on /dev/ttyUSB2…
[2014-12-04 19:08:32] WARNING[2164]: chan_dongle.c:218 opentty: unable to open /dev/ttyUSB2: No such file or directory

When I send: dongle show devices I get:

ID Group State RSSI Mode Submode Provider Name Model Firmware IMEI IMSI Number
dongle0 0 Not connec 0 0 0 NONE Unknown

What Am I doing wrong?

kind regards

Check the permissions on

/dev/ttyUSB*

[root@localhost usr]# ls -l /dev/ttyUSB*
crw-rw-rw- 1 asterisk uucp 188, 0 Dec 4 19:06 /dev/ttyUSB0
crw-rw-rw- 1 asterisk uucp 188, 1 Dec 4 19:06 /dev/ttyUSB1

http://wiki.e1550.mobi/doku.php?id=troubleshooting

A lot of people is running Asterisk as “asterisk” user. This may cause
chan_dongle not detecting USB modems properly. In that case, you need to
give permissions for ttyUSB ports. You can do that automatically by
creating file /etc/udev/rules.d/92-dongle.rules and adding:

KERNEL==“ttyUSB*”, MODE=“0666”, OWNER=“asterisk”, GROUP=“uucp”

Other posible solution is to set runuser/rungroup settings in asterisk.conf file.
rungroup = dialout

Thanks. Problem solved!!

are you brazilian jerson? is there a linux distribution with chan_dongle included?

Yes! beaglebone-asterisk dot org. You can install a GSM VoIP Gateway with Chan_dongle by running a single script: install-dongle

But, You need a BeagleBone Black or a RaspPI board

I am Brazilian! Which distribution you want to use? Chan_dongle works well in FreePBX 12.

Hello , could someone point me to the chan_dongle for Asterisk 12 and ubuntu 14.04 ?