Ticket #1166 (closed defect: fixed)

Opened 5 years ago

Last modified 5 years ago

cannot receive incoming SMS if the sender number is stored in SIM card

Reported by: erin_yueh@… Owned by: sean_chiang@…
Priority: high Milestone:
Component: gsmd Version: 2007.2
Severity: normal Keywords:
Cc: buglog@…, erin_yueh@… Blocked By:
Blocking: Estimated Completion (week):
HasPatchForReview: PatchReviewResult:
Reproducible:

Description

how to reproduce this bug:

  1. use libgsmd-tool to change SMS preferred storage first

"AT+CNMI=2,2,2,1,0", it means we will get an at command '+CMT:<msg data>' when
we receive incoming SMS

  1. store a phone number in SIM card, and use this number to send SMS to NEO
  2. we can receive +CMT:<msg data> in gsmd, but cannot parse it correctly in atcmd.c

please check the attached gsmd.log file!

Attachments

gsm.log (85.3 KB) - added by erin_yueh@… 5 years ago.
gsm.log
cmt_parse-failed-when--alpha-filed-include-comma.patch (3.1 KB) - added by sean_chiang@… 5 years ago.
cmt_parse failed when the alpha field include comma char

Change History

Changed 5 years ago by erin_yueh@…

gsm.log

comment:1 Changed 5 years ago by erin_yueh@…

it only happens if we store the sender number in Contacts (SIM card)

comment:2 Changed 5 years ago by sean_chiang@…

  • Status changed from new to assigned

comment:3 Changed 5 years ago by sean_chiang@…

  • rep_platform changed from PC to Neo1973

Changed 5 years ago by sean_chiang@…

cmt_parse failed when the alpha field include comma char

comment:4 Changed 5 years ago by sean_chiang@…

  • Status changed from assigned to closed
  • Resolution set to fixed

If the SMS's sender phone number was stored in SIM, when you receive the sms
you'll also get alpha field(sender's name). And if the alpha field include comma
then cmt_parse() will failed. Fix it now.

Note: See TracTickets for help on using tickets.