wdoekes / asterisk-chan-dongle

chan_dongle channel driver for Huawei UMTS cards, works with Asterisk 14+
Other
295 stars 104 forks source link

E173 modem receives SMS only during initialization #121

Open sergei-mironov opened 3 years ago

sergei-mironov commented 3 years ago

Related to E173 Huawei modem. Dongle seems to communicate with it correctly. I could send SMS from Asterisk CLI. Unfortunately, receiving SMS works only during the initialization of dongle: either on Asterisk restart or after dongle restart now dongle0. I can’t see any reaction from the software when I send SMS if asterisk is already running.

Are there any 'monitoring' modes in gsm modems, that I should enter into to receive SMSs?

Configuration (please ignore unusual format, they are built-in into NixOS expression):

Some status commands:

*CLI> dongle show devices
ID           Group State      RSSI Mode Submode Provider Name  Model      Firmware          IMEI             IMSI             Number        
dongle0      0     Free       16   0    0       Beeline        E173       11.126.85.00.209  35561504xxxxxx  250997216xxxxx  Unknown       
*CLI> 
*CLI> dialplan show dongle-incoming
[ Context 'dongle-incoming' created by 'pbx_config' ]
  'sms' =>          1. Verbose(Incoming SMS)                      [extensions.conf:4]
                    2. Hangup()                                   [extensions.conf:5]

-= 1 extension (2 priorities) in 1 context. =-
*CLI> 
sergei-mironov commented 3 years ago

Talking to myself: A workaround for this issue is

dongle cmd dongle0 AT^PORTSEL=1

One probably need to add it to the chan-driver somewhere.

Thanks, https://github.com/antirek/asterisk-chan-dongle/issues/147

miopa commented 3 years ago

I have some E173 with the same firmware as you, they receive SMS without any issue on asterisk 1.8, 13 and 15 (at least with my fork https://github.com/miopa/asterisk-chan-dongle)

Talking to myself: A workaround for this issue is

dongle cmd dongle0 AT^PORTSEL=1

I tried this on two E173 (ast 1.8), both modems got stuck on 'dialing' soon

rusxakep commented 3 years ago

Same problem with SMS (only at initialization stage):

E171 21.156.00.00.143 E171 21.157.00.01.143 Asterisk 17.8.1 / FreePBX 15.x