wdoekes / asterisk-chan-dongle

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

Incoming SMS never recognized #60

Open KaitoCross opened 6 years ago

KaitoCross commented 6 years ago

Hey everyone! I am using a Huawei K3520 (voice works fine with this driver) and tried receiving sms using the example dialplan (i put it into the mail dialplan for the huawei) in the readme. But nothing is showing up in the textfile ever. How can i fix this?

KaitoCross commented 6 years ago

On top of that, whenever i send SMS, the log starts repeating the message [Aug 21 03:59:17] WARNING[30186][C-00000001] channel.c: Exceptionally long voice queue length queuing to Local/sms@dawei-00000000;2

magcks commented 4 years ago

Did you enable smsaspdu?

Could you please post the payload from the +CMGR response? You can insert the following line to at_response.c#L1210 to print the CMGR to the asterisk console: ast_log(LOG_WARNING, "[%s] CMGR: %s\n", PVT_ID(pvt), str);

sergei-mironov commented 4 years ago

@magcks could you please take a look at https://github.com/wdoekes/asterisk-chan-dongle/issues/121 Sounds like a similar issue. What is smsaspdu? I can't find an option like this

magcks commented 4 years ago

Smsaspdu was an option to force the modem to send PDU or text formatted messages. I removed this option as the text mode is very hard to maintain (you need multiple character checks, to determine if this message can actually be sent via text mode).

sergei-mironov commented 4 years ago

Thanks, got it. I can find this option in some posts, it should be an older versions. But it turns out that my problem is not related to it.