Bug 85049

Summary: sim: try "ON" phonebook entry #1 if AT+CNUM fails
Product: ModemManager Reporter: Aleksander Morgado <aleksander>
Component: generalAssignee: ModemManager bug user <modemmanager>
Status: RESOLVED MOVED QA Contact:
Severity: minor    
Priority: medium    
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description Aleksander Morgado 2014-10-15 09:51:27 UTC
Originally reported at:
  https://bugzilla.gnome.org/show_bug.cgi?id=696693

Some devices always reply with ERROR to AT+CNUM, but switching to the own-numbers (ON) phonebook and checking entry #1 shows the correct number.

at+cnum?
ERROR
at+cpbs="ON"
OK
at+cpbr=1
+CPBR: 1,"16121234567",129,"004D0073006900730064006E0031"
OK

Yes, the modem is in UCS-2 character set and the UCS-2 string spells "Msisdn1". If other SIMs have "Msisdn1" here too, maybe we could use that as a check.

Another possibility would be to directly read from a SIM file through +CRSM.
Comment 1 GitLab Migration User 2018-06-10 09:03:32 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/mobile-broadband/ModemManager/issues/40.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.