machtudong / asterisk-chan-dongle

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

Getting IMSI number failed #58

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
While configuring my system it occurred an error:
ERROR[53466]: at_response.c:364 at_response_error: [dongle0] Getting IMSI 
number failed

Please, help to resolve it.

FreeBSD 8.2-STABLE
Asterisk - 1.8.8.1
Huawei E171
chan_dongle: Huawei 3G Dongle Channel Driver, Version 1.1, Revision 13 

/usr/local/etc/dongle.conf:
[general]
interval=15

[defaults]
context=default
group=0               
rxgain=0     
txgain=0         
autodeletesms=yes
resetdongle=yes
u2diag=-1
usecallingpres=yes
callingpres=allowed_passed_screen
disablesms=no
language=en     
smsaspdu=yes
mindtmfgap=45
mindtmfduration=80
mindtmfinterval=200
callwaiting=auto
disable=no
initstate=start
dtmf=relax

[dongle0]
context=office
audio=/dev/cuaU0.2              ; tty port for audio connection
data=/dev/cuaU0.3               ; tty port for AT commands
group=1
rxgain=3
txgain=3
autodeletesms=yes
resetdongle=yes
usecallingpres=yes
callingpres=allowed_passed_screen

/var/log/asterisk/message:

[Jan 14 20:32:05] DEBUG[53466] at_response.c: [dongle0] AT sent successfully
[Jan 14 20:32:05] DEBUG[53466] at_response.c: [dongle0] ATZ sent successfully
[Jan 14 20:32:05] DEBUG[53466] at_response.c: [dongle0] ATE sent successfully
[Jan 14 20:32:05] DEBUG[53466] at_response.c: [dongle0] Got AT_CGMI data 
(manufacturer info)
[Jan 14 20:32:05] DEBUG[53466] at_response.c: [dongle0] AT+CGMI sent 
successfully
[Jan 14 20:32:05] DEBUG[53466] at_response.c: [dongle0] Got AT_CGMM data (model 
info)
[Jan 14 20:32:05] DEBUG[53466] at_response.c: [dongle0] AT+CGMM sent 
successfully
[Jan 14 20:32:05] DEBUG[53466] at_response.c: [dongle0] Got AT+CGMR data 
(firmware info)
[Jan 14 20:32:05] DEBUG[53466] at_response.c: [dongle0] AT+CGMR sent 
successfully
[Jan 14 20:32:05] DEBUG[53466] at_response.c: [dongle0] AT+CMEE sent 
successfully
[Jan 14 20:32:05] DEBUG[53466] at_response.c: [dongle0] Got AT+CGSN data (IMEI 
number)
[Jan 14 20:32:05] DEBUG[53466] at_response.c: [dongle0] AT+CGSN sent 
successfully
[Jan 14 20:32:05] ERROR[53466] at_response.c: [dongle0] Getting IMSI number 
failed

crm*CLI> dongle show device state dongle0:

-------------- Status -------------
  Device                  : dongle0
  State                   : Not connected Start scheduled
  Audio                   : /dev/cuaU0.2
  Data                    : /dev/cuaU0.3
  Voice                   : No
  SMS                     : No
  Manufacturer            :
  Model                   :
  Firmware                :
  IMEI                    :
  IMSI                    :
  GSM Registration Status : Unknown
  RSSI                    : 0, <= -125 dBm
  Mode                    : No Service
  Submode                 : No service
  Provider Name           : NONE
  Location area code      :
  Cell ID                 :
  Subscriber Number       : Unknown
  SMS Service Center      :
  Use UCS-2 encoding      : No
  USSD use 7 bit encoding : No
  USSD use UCS-2 decoding : Yes
  Tasks in queue          : 0
  Commands in queue       : 0
  Call Waiting            : Disabled
  Current device state    : stop
  Desired device state    : start
  When change state       : now
  Calls/Channels          : 0
    Active                : 0
    Held                  : 0
    Dialing               : 0
    Alerting              : 0
    Incoming              : 0
    Waiting               : 0
    Releasing             : 0
    Initializing          : 0

Original issue reported on code.google.com by mlevel....@gmail.com on 14 Jan 2012 at 7:05

GoogleCodeExporter commented 9 years ago
Hi,

1. do you have SIM inserted in dongle ?
2. SIM has PIN verification disabled (is a requisite of chan_dongle) ?
If answer to question 2 is NO then, in CLI try execute this
AT+CLCK="SC",0,"<pin>"
where <PIN> is you code.
This AT command disable PIN verification

Original comment by gino.maf...@gmail.com on 8 Mar 2012 at 2:51

GoogleCodeExporter commented 9 years ago
Me too facing same issue , when inserted the same modem to windows with huwei 
software there is signal and working good , no pin nothing

pls help me , i tried to check with minicom -s and ots shows the signal

why asterisk is not taking up

thanks

Original comment by sathish...@gmail.com on 25 Apr 2014 at 8:52

GoogleCodeExporter commented 9 years ago
Me too but my problem was easy

1. ls /dev/ttyUSB*  if returan string /dev/ttyUSB/utps_diag and 
/dev/ttyUSB/utps_modem then write same string in 
/usr/local/etc/dongle.conf [dongle0] audio and data .

Original comment by kei...@gmail.com on 12 Jun 2014 at 1:37

GoogleCodeExporter commented 9 years ago
I had similar problem, connect to a 1.5amp 5V supply.. it worked ! 

Original comment by dwija...@gmail.com on 19 Jul 2014 at 7:06