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?
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
[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
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
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: