Dual Sim Switching Code

Hi,everyone i’m working on writing a code for dual sim switching for WP76XX i’m new to this application please can anyone help me if you have the code for dual sim switching (how to switch sim in wp76xx) code . default sim being sim1 checking gprs connectivity and switching to sim1 or sim2 if sim2 is not present switching to default sim1 .

please if anyone has worked on dual sim switching code please help me with the code

you can see the code cm_sim_Select() here:

thank you for the code !!