Use CPHS version of mailbox numbers on SIM if 3GPP version not available.
PATCH 2/3 Use CPHS version of mailbox numbers on SIM if 3GPP version not available.
Otherwise just try to keep the CPHS version of the files in sync.
--- include/sim.h | 4 ++ src/message-waiting.c | 130 +++++++++++++++++++++++++++++++++++++++++++----- src/simutil.h | 1 + 3 files changed, 121 insertions(+), 14 deletions(-)
include/sim.h +4 -0
@@ -69,6 +69,10 @@ enum ofono_sim_cphs_phase { OFONO_SIM_CPHS_PHASE2, }; +enum ofono_sim_cphs_support_masks { +OFONO_SIM_CPHS_ST_MAILBOX_NUMBERS_MASK =0x30 , +}; + typedef void (*ofono_sim_file_info_cb_t)(const struct ofono_error *error, int filelength, enum ofono_sim_file_structure structure,
src/message-waiting.c +116 -14
184 lines not on this page · raw message
src/simutil.h +1 -0
@@ -23,6 +23,7 @@ enum sim_fileid {SIM_EFPL_FILEID =0x2f05 ,SIM_EFLI_FILEID =0x6f05 ,SIM_EF_CPHS_INFORMATION_FILEID =0x6f16 , +SIM_EF_CPHS_MBDN_FILEID =0x6f17 ,SIM_EFMSISDN_FILEID =0x6f40 ,SIM_EFSPN_FILEID =0x6f46 , SIM_EFSDN_FILEID = 0x6f49,
Signature · 1 line
1.6.1
Hi Andrew,
Quoted 1 line
Otherwise just try to keep the CPHS version of the files in sync.
Patch has been applied. I've had to do some major refactoring and testing. Please test more when you submit.
By the way, I've updated phonesim to support the CPHS versions of the elementary files covered here. Can you review for correctness?
Regards,
-Denis