garronej / chan-dongle-extended

An extention for chan_dongle: PIN codes, multipart SMS, contacts.
https://garronej.github.io/chan-dongle-extended-pages/
23 stars 6 forks source link

roaming problem #6

Open rdmitry0911 opened 1 year ago

rdmitry0911 commented 1 year ago

Hi guys, I have a very old kirkwood device running openwrt 15.05 with Asterisk 11.22.0 and chan_dongle: Huawei 3G Dongle Channel Driver, Version 1.1, Revision 35. Everything works fine, but openwrt a while ago stop supporting this device. So I decided to move my config to a modern platform. I have installed chan-dongle-extended in Debian 11 with FreePBX 16 and asterisk 16. Everything seems working and dongle is recognized, but as far as I'm using it in roaming I'm having a problem of registering dongle in a network. This problem does not appear in openwrt box thou. a dongle looks like this:

root@FreePBX-debian:~# dongle list
[
  {
    "imei": "XXXXXXXXXXXXXXX",
    "manufacturer": "huawei",
    "model": "E1550",
    "firmwareVersion": "11.609.18.00.00",
    "isVoiceEnabled": true,
    "sim": {
      "iccid": "89357018150702209355",
      "imsi": "280019132035935",
      "country": {
        "iso": "cy",
        "code": 357,
        "name": "Cyprus"
      },
      "serviceProvider": {
        "fromImsi": "Vodafone/CyTa",
        "fromNetwork": "CytaVoda"
      },
      "storage": {
        "infos": {
          "contactNameMaxLength": 14,
          "numberMaxLength": 24,
          "storageLeft": 249
        },
        "contacts": [],
        "digest": "e16723f48e0cca3d701d24b930b8fed8"
      }
    },
    "cellSignalStrength": "GOOD",
    "isGsmConnectivityOk": false
  }
]
root@FreePBX-debian:~# asterisk -rvvv
Asterisk 16.28.0~dfsg-0+deb11u1, Copyright (C) 1999 - 2021, Sangoma Technologies Corporation and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Connected to Asterisk 16.28.0~dfsg-0+deb11u1 currently running on FreePBX-debian (pid = 826)
    -- Remote UNIX connection
FreePBX-debian*CLI> dongle show devices
ID           Group State      RSSI Mode Submode Provider Name  Model      Firmware          IMEI             IMSI             Number        
Dongle1      0     GSM not re 16   0    0       CytaVoda       E1550      11.609.18.00.00   XXXXXXXXXXXXXXX  280019132035935  Unknown       
FreePBX-debian*CLI> dongle show version 

chan_dongle: Huawei 3G Dongle Channel Driver, Version 1.1, Revision 43gh=47cg
Project Home: https://github.com/bg111/asterisk-chan-dongle/
Bug Reporting: https://github.com/bg111/asterisk-chan-dongle/issues

in my openwrt box I see something different. While the dongle is initialized I see this:

Asterisk-OpenWrt*CLI> dongle show devices
ID           Group State      RSSI Mode Submode Provider Name  Model      Firmware          IMEI             IMSI             Number        
dongle0      1     GSM not re 99   0    0       NONE           E1550      11.609.18.00.00   XXXXXXXXXXXXXXX  280019132035935  Unknown       

When it's ready, I see this:

Asterisk-OpenWrt*CLI> dongle show devices
ID           Group State      RSSI Mode Submode Provider Name  Model      Firmware          IMEI             IMSI             Number        
dongle0      1     Free       20   3    3       GR COSMOTE     E1550      11.609.18.00.00   XXXXXXXXXXXXXXX  280019132035935  Unknown       

I think that the problem is that dongle network provider is fixed by chan_dongle service to the one listed in "fromNetwork" field of dongle list command, while originally dongle chooses the best provider by itself. The question is how to either let dongle to choose provider or (which is better IMHO) to let the user to specify the desired provider in the config?

Thank you, Dmitry