wdoekes / asterisk-chan-dongle

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

Error parsing incoming sms message alert + CMTI: "SM", - 1 #35

Closed vitasgul closed 7 years ago

vitasgul commented 7 years ago

Very rarely a certain sms comes in and drops the call:

[Jun 14 19:57:57] ERROR[3056]: at_response.c:1173 at_response_cmti: [m1-1] Error parsing incoming sms message alert '+CMTI: "SM",-1', disconnecting
    -- [m1-1] Dongle has disconnected

At a minimum, you can make the mistake not critical, so that the call is not reset.

at_responce.c
ast_log (LOG_ERROR, "[%s] Error parsing incoming sms message alert '%s'\n", PVT_ID(pvt), str);
return 0;

  But if anyone can, add parsing +CMTI: "SM",-1