MaxSok / asterisk-chan-dongle

Automatically exported from code.google.com/p/asterisk-chan-dongle
Other
0 stars 0 forks source link

IMSI discovery error, probably due to additional CR/LF #64

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Let the asterisk to run discovery
2. See asterisk debug logs
3. Correct response from the modem is seen but getting "unmatched" error

What is the expected output? What do you see instead?

=======
[Feb 20 11:48:10] DEBUG[1252] pdiscovery.c: [dongle2 discovery] checking 
/sys/bus/usb/devices/1-3:1.0
[Feb 20 11:48:10] DEBUG[1252] pdiscovery.c: [dongle2 discovery] checking 
/sys/bus/usb/devices/1-3:1.1
[Feb 20 11:48:10] DEBUG[1252] pdiscovery.c: [dongle2 discovery] checking 
/sys/bus/usb/devices/1-3:1.2
[Feb 20 11:48:10] DEBUG[1252] pdiscovery.c: [dongle2 discovery] checking 
/sys/bus/usb/devices/1-7
[Feb 20 11:48:10] DEBUG[1252] pdiscovery.c: [dongle2 discovery] found 
/sys/bus/usb/devices/1-7 is idVendor 12d1 idProduct 1001
[Feb 20 11:48:10] DEBUG[1252] pdiscovery.c: [dongle2 discovery] should ports 
<-> interfaces map for 12d1:1001 voice=01 data=02
[Feb 20 11:48:10] DEBUG[1252] pdiscovery.c: [dongle2 discovery] found 
InterfaceNumber 00 port /dev/ttyUSB6
[Feb 20 11:48:10] DEBUG[1252] pdiscovery.c: [dongle2 discovery] found 
InterfaceNumber 01 port /dev/ttyUSB7
[Feb 20 11:48:10] DEBUG[1252] pdiscovery.c: [dongle2 discovery] found 
InterfaceNumber 02 port /dev/ttyUSB8
[Feb 20 11:48:10] DEBUG[1252] pdiscovery.c: [dongle2 discovery] use 
/dev/ttyUSB8 for IMEI/IMSI discovery
[Feb 20 11:48:10] DEBUG[1252] at_read.c: [/dev/ttyUSB8] receive 33 byte, used 
33, free 991, read 0, write 33
[Feb 20 11:48:10] DEBUG[1252] at_read.c: [/dev/ttyUSB8] [AT+CIMI^M
255030003134515

OK
]
[Feb 20 11:48:10] DEBUG[1252] pdiscovery.c: [dongle2 discovery] < AT+CIMI^M
255030003134515

OK
[Feb 20 11:48:10] DEBUG[1252] pdiscovery.c: [dongle2 discovery] unmatched 
IMEI=/ IMSI=255030003134515/
=======

Another modem: 
=========
[Feb 20 11:58:02] DEBUG[1566] pdiscovery.c: [dongle0 discovery] use 
/dev/ttyUSB2 for IMEI/IMSI discovery
[Feb 20 11:58:02] DEBUG[1566] at_read.c: [/dev/ttyUSB2] receive 33 byte, used 
33, free 991, read 0, write 33
[Feb 20 11:58:02] DEBUG[1566] at_read.c: [/dev/ttyUSB2] [AT+CIMI^M
255014710500258

OK
]
[Feb 20 11:58:02] DEBUG[1566] pdiscovery.c: [dongle0 discovery] < AT+CIMI^M
255014710500258

OK
[Feb 20 11:58:02] DEBUG[1566] pdiscovery.c: [dongle0 discovery] unmatched 
IMEI=/ IMSI=255014710500258/
=========

What version of the product are you using? On what operating system?

Asterisk 1.6.2.9-2+squeeze4, Copyright (C) 1999 - 2010 Digium, Inc. and others.

aloha*CLI> dongle show version
chan_dongle: Huawei 3G Dongle Channel Driver, Version 1.1, Revision 10

None of four modems connected to the box are discovered. 
When reconfigured to detect by IMEI - works good. 

Please let me know if anything else will be required to investigate and fix the 
issue.

Original issue reported on code.google.com by artem.g....@gmail.com on 20 Feb 2012 at 10:01

GoogleCodeExporter commented 9 years ago
Have same problem on

voip*CLI> dongle show version

chan_dongle: Huawei 3G Dongle Channel Driver, Version 1.1, Revision 14
Project Home: http://code.google.com/p/asterisk-chan-dongle
Bug Reporting: http://code.google.com/p/asterisk-chan-dongle/issues/list

Original comment by Oleg.Gaw...@gmail.com on 23 May 2012 at 8:58

GoogleCodeExporter commented 9 years ago
whats dongle model you use ?

Original comment by bg_...@mail.ru on 27 Apr 2013 at 3:44