atefsaeed2010 / datacard

Automatically exported from code.google.com/p/datacard
Other
0 stars 1 forks source link

different imei in show devices and show device settings (weird detection maybe ?) #79

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. edit datacard.conf and add imei=/imsi=
2. datacard show devices
3. datacard show device settings datacard0

What is the expected output? What do you see instead?
vaio-ubuntu-server*CLI> datacard show device settings datacard0
------------- Settings ------------
  Device                  : datacard0
  Audio                   : /dev/hw-audio-0
  Data                    : /dev/hw-data-0
  IMEI                    : 353436030085368
  IMSI                    : 226101212163385
  Channel Language        : en
  Context                 : incoming-datacard
  Exten                   : 
  Group                   : 0
  RX gain                 : 2
  TX gain                 : -5
  U2Diag                  : 0
  Use CallingPres         : Yes
  Default CallingPres     : <Not set>
  Auto delete SMS         : Yes
  Disable SMS             : No
  Reset Datacard          : Yes
  SMS PDU                 : Yes
  Call Waiting            : disabled
  DTMF                    : relax
  Minimal DTMF Gap        : 0
  Minimal DTMF Duration   : 0
  Minimal DTMF Interval   : 200
  Initial device state    : start
root@vaio-ubuntu-server:/etc/asterisk# asterisk -r
vaio-ubuntu-server*CLI> datacard show devices
ID           Group State      RSSI Mode Submode Provider Name  Model      
Firmware          IMEI             IMSI             Number        
datacard0    0     Free       21   3    3       COSMOTE@       K3520      
11.315.05.00.00   353284022313038  226030153131224  0785491209    

notice the different imei/imsi ? Those are from another datacard.

What version of the product are you using? On what operating system?
Gentoo Linux, asterisk 1.8.3.3, chan_datacard r203

Please provide any additional information below.
Also, if I don't provide an imsi/imei in the datacard.conf the IMSI:/IMEI: line 
in the show device settings will be empty for the empty variable.

it's as if I dunno :| doesn't detect them right. I use hw-{audio,data}-{0-3} ( 
udev port linking to /dev/ttyUSB* if that helps )

Original issue reported on code.google.com by dex...@d3xt3r01.tk on 2 May 2011 at 9:00

GoogleCodeExporter commented 9 years ago
read etc/datacard.conf. If provided custom imei/imsi then they must match real 
imei/imsi. If not, then ignored.

Show settings is ok.

Original comment by pag...@gmail.com on 5 May 2011 at 9:56