Re: [dongle] Re: multiple donges problems

2,762 views
Skip to first unread message

Ramón Lozano SOLID PC, S.L.

unread,
Nov 13, 2012, 2:40:19 PM11/13/12
to chan_...@googlegroups.com
It might be related with Elastix's old CentOS kernel. 
Try compiling a newer kernel or switching to a distro that already has it.

Good luck!

Ramón Lozano
SOLID PC. S.L.



2012/11/13 Francesco Prior <gino....@gmail.com>

El lunes, 12 de noviembre de 2012 16:45:03 UTC-3, wvieira escribió:
Hello Guys,

I'm no master at linux so I need help to solve a problem in connecting multiple modems in asterisk server, I installed and am running Elastix Asterisk 1.8.17, chan_dongle-1.1.r10, usb-modeswitch-1.2.3, I'm using dongles are huawei E169, E1550 and K3565, and a HUB D-Link DUB H7, all this was taking the forums I found on the net like these here:

http://wiki.e1550.mobi/doku.php
http://www.elastix.org/index.php/en/component/kunena/25-newbies-corner-/40521-elastix-16-huawei-3g-and-sebi-odicha.html?limit=10&start=110

the problem is: when I connect a dongle it works well with good quality voice, if I put in another dongle hub, Linux finds the dongle and it shows the information but when look it in / dev nothing appears as ttyUSB * only the first dongle or so has ttyUSB0, ttyUSB1, ttyUSB2 if they plug directly into server does not appear in / dev only one of them appears as ttyUSB, will someone help me with this problem.

Regards,


Vieira

PS:
sorry for my english google translator

Hi Vieira,
  so, when you plug the second dongle, it doesn't appear in /dev, is correct  ?
If yes, probably the second dongle is detected as storage memory instead of Usb Device.
Follow this steps:
1. plug the device
2. wait 4 seconds
3. execute "dmesg"
4. write here last 30 lines of result.

Where are you from ?
Regards.
Francesco




wvieira

unread,
Nov 22, 2012, 2:25:07 PM11/22/12
to chan_...@googlegroups.com, sol...@gmail.com
Actually the problem was in linux, I installed linux 5.8 kernel 2.6.18.308 and problem of dongles finish, eventually follows the resulmo than I did here, now the problem is this, even with the setting so that the dongles they are discovered by IMEI always change position, any ideas?


#install centos 5.7

#vault.centos.org/5.7/os/i386

# desable firewall and selinux

yum -y update

reboot

# user asterisk

useradd -c "Asterisk PBX" -d /var/lib/asterisk asterisk


#install dependencis
yum -y install bison flex gcc-c++ gcc mc kernel-devel
yum -y install php-mysql php-pear php-gd newt-devel
yum -y install sox ncurses-devel openssl-devel mysql-devel
yum -y install gtk2-devel libxml2-devel libsepol-devel libtiff-devel
yum -y groupinstall "MySQL Database"
yum -y install e2fsprogs-devel keyutils-libs-devel krb5-devel libogg libselinux-devel
yum -y install gmp php-pear-DB php-pdo audiofile-devel libogg-devel
yum -y install zlib-devel perl-DateManip sendmail-cf

#install asterisk

cd /usr/src
wget http://downloads.asterisk.org/pub/telephony/dahdi-linux-complete/dahdi-linux-complete-current.tar.gz
tar xfvz dahdi-linux-complete-current.tar.gz
cd /usr/src/dahdi-linux-complete*
make
make install
make config
cd ..

cd /usr/src
wget http://downloads.digium.com/pub/libpri/libpri-1.4-current.tar.gz
tar xfvz libpri-1.4-current.tar.gz
cd `find . -name "libpri-1.4.*" -print`
make
make install
cd ..

#instalar asterisk 1.8
cd /usr/src
wget http://downloads.digium.com/pub/asterisk/asterisk-1.8-current.tar.gz
tar xfvz asterisk-1.8-current.tar.gz
cd `find . -name "asterisk-1.8.*" -print`
./configure
make
make install
make samples
asterisk start
cd ..


#instalar chan_dongle

cd /usr/src
wget http://asterisk-chan-dongle.googlecode.com/files/chan_dongle-1.1.r14.tgz
tar -zxvf chan_dongle-1.1.r14.tgz
cd chan_dongle-1.1.r14
./configure -with-asterisk=/usr/src/asterisk-1.8.18.0/include
make
make install


#cmake dongle file
touch /etc/asterisk/dongle.conf
vi /etc/asterisk/dongle.conf



[general]

interval=60            ; Number of seconds between trying to connect to devices


[defaults]

context=default            ; context for incoming calls
group=0                ; calling group
rxgain=2            ; increase the incoming volume; may be negative
txgain=2            ; increase the outgoint volume; may be negative
autodeletesms=yes        ; auto delete incoming sms
resetdongle=yes            ; reset dongle during initialization with ATZ command
u2diag=-1            ; set ^U2DIAG parameter on device (0 = disable everything except modem function) ; -1 not use ^U2DIAG command
usecallingpres=yes        ; use the caller ID presentation or not
callingpres=allowed_passed_screen ; set caller ID presentation        by default use default network settings
disablesms=no            ; disable of SMS reading from device when received

language=en            ; set channel default language
smsaspdu=yes            ; if 'yes' send SMS in PDU mode, feature implementation incomplete and we strongly recommend say 'yes'
mindtmfgap=45            ; minimal interval from end of previews DTMF from begining of next in ms
mindtmfduration=80        ; minimal DTMF tone duration in ms
mindtmfinterval=200        ; minimal interval between ends of DTMF of same digits in ms

callwaiting=auto        ; if 'yes' allow incoming calls waiting; by default use network settings
                ; if 'no' waiting calls just ignored
disable=no            ; OBSOLETED by initstate: if 'yes' no load this device and just ignore this section

initstate=start            ; specified initial state of device, must be one of 'stop' 'start' 'remote'
                ;   'remove' same as 'disable=yes'

exten=+1234567890        ; exten for start incoming calls, only in case of Subscriber Number not available!, also set to CALLERID(ndid)

dtmf=relax            ; control of incoming DTMF detection, possible values:
                ;   off       - off DTMF tones detection, voice data passed to asterisk unaltered
                ;              use this value for gateways or if not use DTMF for AVR or inside dialplan
                ;   inband - do DTMF tones detection
                ;   relax  - like inband but with relaxdtmf option
                ;  default is 'relax' by compatibility reason

; dongle required settings
[dongle0]
audio=/dev/ttyUSB1        ; tty port for audio connection;     no default value
data=/dev/ttyUSB2        ; tty port for AT commands;         no default value
imei=358109028285960
imsi=268069611172357

[dongle1]
audio=/dev/ttyUSB4        ; tty port for audio connection;     no default value
data=/dev/ttyUSB5        ; tty port for AT commands;         no default value
imei=354638048236565
imsi=268069611172432

[dongle2]
audio=/dev/ttyUSB7        ; tty port for audio connection;     no default value
data=/dev/ttyUSB8        ; tty port for AT commands;         no default value
imei=356052046305562
imsi=268060001596744

[dongle3]
;audio=/dev/ttyUSB10        ; tty port for audio connection;     no default value
;data=/dev/ttyUSB11        ; tty port for AT commands;         no default value
imei=355855029462064
imsi=268016000261840

[dongle4]
;audio=/dev/ttyUSB13        ; tty port for audio connection;     no default value
;data=/dev/ttyUSB15        ; tty port for AT commands;         no default value
imei=354638048247737
imsi=268040000039867

sorry same partes is write in Portugues, i from Brasil








Gino Maffeo

unread,
Nov 22, 2012, 2:42:46 PM11/22/12
to chan_...@googlegroups.com
2012/11/22 wvieira <wviei...@gmail.com>
Actually the problem was in linux, I installed linux 5.8 kernel 2.6.18.308 and problem of dongles finish, eventually follows the resulmo than I did here, now the problem is this, even with the setting so that the dongles they are discovered by IMEI always change position,
any ideas?



Hi  Vieira,
   I think you had forgot comments on dongle0/dongle1/dongle2
to disable audio and data lines.
So, try this:

[dongle0]
imei=358109028285960
imsi=268069611172357

[dongle1]
imei=354638048236565
imsi=268069611172432

[dongle2]
imei=356052046305562
imsi=268060001596744

[dongle3]
imei=355855029462064
imsi=268016000261840

[dongle4]
imei=354638048247737
imsi=268040000039867


Regards.
Francesco.

wvieira

unread,
Nov 22, 2012, 5:29:04 PM11/22/12
to chan_...@googlegroups.com
I had already done that but the asterisk does not even try to connect dongles, I reload the settings but nothing appears in asterisk, if you have an example so I can try to understand the settings file, I appreciate

Alejandro Donato

unread,
Nov 22, 2012, 10:01:28 PM11/22/12
to chan_...@googlegroups.com
you don't need to "declare" both IMEI IMSI and DATA PORTS.

Only data ports, or IMEI or IMSI (just one value in last 2) is needed.

You can use UDEV to make dongles more static in discover. Google for it.

Check full asterisk log, to see if there is no a permissions issue
accessing ttyUSBx devices. (you can even try to chmod 666 to the ttyUSBx
devices to test this)

Hope this helps


On 22/11/12 19:29, wvieira wrote:
> I had already done that but the asterisk does not even try to connect
> dongles, I reload the settings but nothing appears in asterisk, if you
> have an example so I can try to understand the settings file, I appreciate
>
> Quinta-feira, 22 de Novembro de 2012 19:42:48 UTC, Francesco Prior escreveu:
>
> 2012/11/22 wvieira <wviei...@gmail.com <javascript:>>

Elias Andrade

unread,
Nov 23, 2012, 12:51:18 AM11/23/12
to chan_...@googlegroups.com
If it helps, here are my configurations (i have two E173 on debian
6.0 as gateway):

cat /etc/asterisk/dongle.conf
cat /etc/udev/rules.d/99-huawei-link.rules


============================
voltaire:~# cat /etc/asterisk/dongle.conf
[general]

interval=15 ; Number of seconds between trying to
connect to devices

[defaults]
context=dongle-incoming ; context for incoming calls
group=1 ; calling group
u2diag=0
language=en ; set channel default language
mindtmfgap=45 ; minimal interval from end of previews
DTMF from begining of next in ms
mindtmfduration=80 ; minimal DTMF tone duration in ms
mindtmfinterval=200 ; minimal interval between ends of DTMF
of same digits in ms
dtmf=relax ; control of incoming DTMF detection,
possible values:
; off - off DTMF tones detection,
voice data passed to asterisk unaltered
; use this value for
gateways or if not use DTMF for AVR or inside dialplan
; inband - do DTMF tones detection
; relax - like inband but with
relaxdtmf option


[dongle0]
u2diag=0
audio=/dev/hw-audio-0
data=/dev/hw-data-0

[dongle1]
u2diag=0
audio=/dev/hw-audio-1
data=/dev/hw-data-1
============================

voltaire:~# cat /etc/udev/rules.d/99-huawei-link.rules
# add symlinks for device based on USB bus address i.e. physical USB slot
ACTION!="add|change", GOTO="device_huawei_end"
#SUBSYSTEM!="usb", GOTO="device_huawei_end"
#ATTRS{idVendor}!="12d1", GOTO="device_huawei_end"
#ATTRS{idProduct}=="1446", GOTO="device_huawei_link"
#ATTRS{idProduct}=="140c", GOTO="device_huawei_link"
#ATTRS{idProduct}=="1001", GOTO="device_huawei_link"
#GOTO="device_huawei_end"

LABEL="device_huawei_link"

# USB slot from left to right (back look)
# left up
KERNEL=="ttyUSB[0-9]*", ID=="5-1:1.0", SYMLINK+="hw-modem-0"
KERNEL=="ttyUSB[0-9]*", ID=="5-1:1.1", SYMLINK+="hw-audio-0"
KERNEL=="ttyUSB[0-9]*", ID=="5-1:1.2", SYMLINK+="hw-data-0"
KERNEL=="ttyUSB[0-9]*", ID=="5-1:1.3", SYMLINK+="hw-net-0"

# right down
KERNEL=="ttyUSB[0-9]*", ID=="5-3:1.0", SYMLINK+="hw-modem-1"
KERNEL=="ttyUSB[0-9]*", ID=="5-3:1.1", SYMLINK+="hw-audio-1"
KERNEL=="ttyUSB[0-9]*", ID=="5-3:1.2", SYMLINK+="hw-data-1"
KERNEL=="ttyUSB[0-9]*", ID=="5-3:1.3", SYMLINK+="hw-net-1"

LABEL="device_huawei_end"
--
[ ]'s
Elias Andrade
Linux User 229468 | PGP/GPG: 0x40770C9F
http://eliasandrade.wordpress.com
Paranaguá - Paraná - BR [<o>]

wvieira

unread,
Nov 23, 2012, 7:25:42 PM11/23/12
to chan_...@googlegroups.com
sorry to ask but I'm have here 2 E173 dongles unlocked, but I can not enable them voice, which firmware you use them and if you know how they have or have you send me?

Francesco Prior

unread,
Nov 27, 2012, 7:33:13 AM11/27/12
to chan_...@googlegroups.com

You can unlock Voice features using DC Unlocker Software.
http://www.dc-unlocker.com/

Francesco.

wvieira

unread,
Nov 29, 2012, 10:12:02 AM11/29/12
to chan_...@googlegroups.com
the dongles is already unlocked, I can not activate the voice because of the firmware that error when I try to activate the voice

Icham Achtir

unread,
Nov 29, 2013, 11:22:58 AM11/29/13
to chan_...@googlegroups.com
hi,

could you confirm the huawei K3565 is fonctioning?
If the K3565 is unlocked do i need to use dc-unlock to activate the voice ?

thanks

Chandraprakash Karande

unread,
Sep 17, 2014, 8:48:44 AM9/17/14
to chan_...@googlegroups.com
I know its an old post. Not sure if its relevant any more. The main is with the support for Linux family. Chan Dongle was developed on Debian version. So if you swtich to either Debian or Ubuntu your problem will be fixed for sure. Issue is that Chan Dongle driver is not detected properly in CentOS & Redhat flavors. After connecting it supposed to create 3 device files in /dev folder viz. ttyUSB0,ttyUSB1(Audio),ttyUSB2 (Data) but in Centos it fails to create these files hence the issue,

CP
Reply all
Reply to author
Forward
0 new messages