<div dir="ltr"><div>Dear,</div><div><br></div><div>I am Hyunwoo Lee. I am a newbie to configure the custom SIM card. </div><div>I have one question in configuring sysmoISIM-SJA2 to enable VoWiFi on COTS UEs. The UEs that I am working on are Samsung Galaxy A21, OnePlus 7T, and Motorola G Power. </div><div><br></div><div>I tried to make the UEs discover the ePDG by sending the DNS query and establish the IPsec channel with my IPsec server. I ran my own DNS server to reply with the IP address of my IPsec server on the DNS query. I tried to make it similar to the T-mobile setting since all of the UEs work well with the T-mobile SIM card. Unfortunately, I could not succeed in enabling VoWiFi on the UEs and I do not know why they do not work and what I can do further.</div><div><br></div><div>I would appreciate it if someone could help me with this. I described what I did in detail below the line.</div><div>Thank you in advance for your help!</div><div><br></div><div>Sincerely,</div><div>Hyunwoo Lee.</div><div><br></div><div>------------------------------</div><div><br></div><div>What I did is as follows:</div><div>1) Equipments</div><div> - Two sysmoISIM-SJA2</div><div> - PC/SC CCID ISO7816 USB Smart Card Reader</div><div> - UEs: Samsung Galaxy A21, OnePlus 7T, and Motorola G Power (all of them work well with the T-mobile SIM card)</div><div><br></div><div>2) Environment</div><div> - Ubuntu 18.04 LTS</div><div> - python 3.6.9</div><div> - pySim 1.0</div><div><br></div><div>3) Configuration of the SIM cards with pysim</div><div> - The command that I used to configure the SIM cards (to T-mobile) was:</div><div>  : python3 pySim-prog.py -p 0 -a <adm value> -n name -x 310 -y 260 --imsi=3102601234567890 --msisdn=<telephone number> --epdgid=<a href="http://epdg.epc.mnc260.mcc310.pub.3gppnetwork.org">epdg.epc.mnc260.mcc310.pub.3gppnetwork.org</a> --epdgSelection=310260 --ims-hdomain=<a href="http://ims.mnc260.mcc310.3gppnetwork.org">ims.mnc260.mcc310.3gppnetwork.org</a> --impi=<a href="mailto:sip%3A3102601234567890@ims.mnc260.mcc310.3gppnetwork.org">sip:3102601234567890@ims.mnc260.mcc310.3gppnetwork.org</a> --impu=<a href="mailto:sip%3A3102601234567890@ims.mnc260.mcc310.3gppnetwork.org">sip:3102601234567890@ims.mnc260.mcc310.3gppnetwork.org</a> --iccid=<ICCID value></div><div> - The mnclen value is set to 3</div><div><br></div><div>4) UE behavior with the SIM card<br></div><div> - Samsung Galaxy A21</div><div>  : It sends the DNS query for the ePDG, but does not execute the IKE protocol to establish the IPsec channel with the T-mobile core network.</div><div><br></div><div> - OnePlus 7T and Motorola G Power</div><div>  : It does not send the DNS query for the ePDG.</div><div><br></div><div>5) Configuration result</div><div> - The command that I used to read the SIM card</div><div>  : python3 pySim-read.py -p 0</div><div> - The result of the command</div><div>Using PC/SC reader interface<br></div><div>Reading ...<br>Autodetected card type: sysmoISIM-SJA2<br>ICCID: 8988211000000459514<br>IMSI: None<br>GID1: ffffffffffffffffffff<br>GID2: ffffffffffffffffffff<br>SMSP: ffffffffffffffffffffffffffffffffffffffffffffffffe1ffffffffffffffffffffffff0581005155f5ffffffffffff000000<br>SPN: name<br>Show in HPLMN: True<br>Hide in OPLMN: True<br>PLMNsel: 130062ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff<br>PLMNwAcT:<br>       130062ffff # MCC: 310 MNC: 260 AcT: UTRAN, E-UTRAN WB-S1, E-UTRAN NB-S1, GSM, GSM COMPACT, cdma2000 HRPD, cdma2000 1xRTT<br>      ffffff0000 # unused<br>   ffffff0000 # unused<br>   ffffff0000 # unused<br>   ffffff0000 # unused<br>   ffffff0000 # unused<br>   ffffff0000 # unused<br>   ffffff0000 # unused<br>   ffffff0000 # unused<br>   ffffff0000 # unused<br>   ffffff0000 # unused<br>   ffffff0000 # unused<br><br>OPLMNwAcT:<br>     130062ffff # MCC: 310 MNC: 260 AcT: UTRAN, E-UTRAN WB-S1, E-UTRAN NB-S1, GSM, GSM COMPACT, cdma2000 HRPD, cdma2000 1xRTT<br>      ffffff0000 # unused<br>   ffffff0000 # unused<br>   ffffff0000 # unused<br>   ffffff0000 # unused<br>   ffffff0000 # unused<br>   ffffff0000 # unused<br>   ffffff0000 # unused<br>   ffffff0000 # unused<br>   ffffff0000 # unused<br>   ffffff0000 # unused<br>   ffffff0000 # unused<br><br>HPLMNAcT:<br>      130062ffff # MCC: 310 MNC: 260 AcT: UTRAN, E-UTRAN WB-S1, E-UTRAN NB-S1, GSM, GSM COMPACT, cdma2000 HRPD, cdma2000 1xRTT<br>      ffffff0000 # unused<br>   ffffff0000 # unused<br>   ffffff0000 # unused<br>   ffffff0000 # unused<br>   ffffff0000 # unused<br>   ffffff0000 # unused<br>   ffffff0000 # unused<br>   ffffff0000 # unused<br>   ffffff0000 # unused<br>   ffffff0000 # unused<br>   ffffff0000 # unused<br><br>ACC: 0002<br>MSISDN (NPI=1 ToN=3): 17657759216<br>Administrative data: 00000003<br>    MS operation mode: normal<br>     Ciphering Indicator: disabled<br>SIM Service Table: ff33ffff3f003f0f300cf0c3f00000<br>      Service 1 - CHV1 disable function<br>     Service 2 - Abbreviated Dialling Numbers (ADN)<br>        Service 3 - Fixed Dialling Numbers (FDN)<br>      Service 4 - Short Message Storage (SMS)<br>       Service 5 - Advice of Charge (AoC)<br>    Service 6 - Capability Configuration Parameters (CCP)<br> Service 7 - PLMN selector<br>     Service 8 - RFU<br>       Service 9 - MSISDN<br>    Service 10 - Extension1<br>       Service 13 - Last Number Dialled (LND)<br>        Service 14 - Cell Broadcast Message Identifier<br>        Service 17 - Service Provider Name<br>    Service 18 - Service Dialling Numbers (SDN)<br>   Service 19 - Extension3<br>       Service 20 - RFU<br>      Service 21 - VGCS Group Identifier List (EFVGCS and EFVGCSS)<br>  Service 22 - VBS Group Identifier List (EFVBS and EFVBSS)<br>     Service 23 - enhanced Multi-Level Precedence and Pre-emption Service<br>  Service 24 - Automatic Answer for eMLPP<br>       Service 25 - Data download via SMS-CB<br> Service 26 - Data download via SMS-PP<br> Service 27 - Menu selection<br>   Service 28 - Call control<br>     Service 29 - Proactive SIM<br>    Service 30 - Cell Broadcast Message Identifier Ranges<br> Service 31 - Barred Dialling Numbers (BDN)<br>    Service 32 - Extension4<br>       Service 33 - De-personalization Control Keys<br>  Service 34 - Co-operative Network List<br>        Service 35 - Short Message Status Reports<br>     Service 36 - Network's indication of alerting in the MS<br>   Service 37 - Mobile Originated Short Message control by SIM<br>   Service 38 - GPRS<br>     Service 49 - MExE<br>     Service 50 - Reserved and shall be ignored<br>    Service 51 - PLMN Network Name<br>        Service 52 - Operator PLMN List<br>       Service 53 - Mailbox Dialling Numbers<br> Service 54 - Message Waiting Indication Status<br>        Service 57 - Multimedia Messaging Service (MMS)<br>       Service 58 - Extension 8<br>      Service 59 - MMS User Connectivity Parameters<br><br>EHPLMN:<br>      130062 # MCC: 310 MNC: 260<br>    ffffff # unused<br>       ffffff # unused<br>       ffffff # unused<br><br>USIM Service Table: beff9f9de73e0408400170330006002e00000000<br>       Service 2 - Fixed Dialling Numbers (FDN)<br>      Service 3 - Extension 2<br>       Service 4 - Service Dialling Numbers (SDN)<br>    Service 5 - Extension3<br>        Service 6 - Barred Dialling Numbers (BDN)<br>     Service 8 - Outgoing Call Information (OCI and OCT)<br>   Service 9 - Incoming Call Information (ICI and ICT)<br>   Service 10 - Short Message Storage (SMS)<br>      Service 11 - Short Message Status Reports (SMSR)<br>      Service 12 - Short Message Service Parameters (SMSP)<br>  Service 13 - Advice of Charge (AoC)<br>   Service 14 - Capability Configuration Parameters 2 (CCP2)<br>     Service 15 - Cell Broadcast Message Identifier<br>        Service 16 - Cell Broadcast Message Identifier Ranges<br> Service 17 - Group Identifier Level 1<br> Service 18 - Group Identifier Level 2<br> Service 19 - Service Provider Name<br>    Service 20 - User controlled PLMN selector with Access Technology<br>     Service 21 - MSISDN<br>   Service 24 - Enhanced Multi-Level Precedence and Pre-emption Service<br>  Service 25 - Automatic Answer for eMLPP<br>       Service 27 - GSM Access<br>       Service 28 - Data download via SMS-PP<br> Service 29 - Data download via SMS-CB<br> Service 32 - RUN AT COMMAND command<br>   Service 33 - shall be set to 1<br>        Service 34 - Enabled Services Table<br>   Service 35 - APN Control List (ACL)<br>   Service 38 - GSM security context<br>     Service 39 - CPBCCH Information<br>       Service 40 - Investigation Scan<br>       Service 42 - Operator controlled PLMN selector with Access Technology<br> Service 43 - HPLMN selector with Access Technology<br>    Service 44 - Extension 5<br>      Service 45 - PLMN Network Name<br>        Service 46 - Operator PLMN List<br>       Service 51 - Service Provider Display Information<br>     Service 60 - User Controlled PLMN selector for I-WLAN access<br>  Service 71 - Equivalent HPLMN<br> Service 73 - Equivalent HPLMN Presentation Indication<br> Service 85 - EPS Mobility Management Information<br>      Service 86 - Allowed CSG Lists and corresponding indications<br>  Service 87 - Call control on EPS PDN connection by USIM<br>       Service 89 - eCall Data<br>       Service 90 - Operator CSG Lists and corresponding indications<br> Service 93 - Communication Control for IMS by USIM<br>    Service 94 - Extended Terminal Applications<br>   Service 106 - ePDG configuration Information support<br>  Service 107 - ePDG configuration Information configured<br>       Service 122 - 5GS Mobility Management Information<br>     Service 123 - 5G Security Parameters<br>  Service 124 - Subscription identifier privacy support<br> Service 126 - UAC Access Identities support<br><br>ePDGId:<br>        657064672e6570632e6d6e633236302e6d63633331302e7075622e336770706e6574776f726b2e6f7267 # <a href="http://epdg.epc.mnc260.mcc310.pub.3gppnetwork.org">epdg.epc.mnc260.mcc310.pub.3gppnetwork.org</a><br><br>ePDGSelection:<br>     130062000100 # MCC: 310 MNC: 260 ePDG Priority: 0001 ePDG FQDN format: Operator Identifier FQDN<br>       ffffffffffff # unused<br> ffffffffffff # unused<br> ffffffffffff # unused<br><br>P-CSCF:<br>      Not available<br> Not available<br> Not available<br> Not available<br> Not available<br> Not available<br> Not available<br> Not available<br><br>Home Network Domain Name: <a href="http://ims.mnc260.mcc310.3gppnetwork.org">ims.mnc260.mcc310.3gppnetwork.org</a><br>IMS private user identity: <a href="mailto:sip%3A3102601234567890@ims.mnc260.mcc310.3gppnetwork.org">sip:3102601234567890@ims.mnc260.mcc310.3gppnetwork.org</a><br>IMS public user identity:<br>   <a href="mailto:sip%3A3102601234567890@ims.mnc260.mcc310.3gppnetwork.org">sip:3102601234567890@ims.mnc260.mcc310.3gppnetwork.org</a><br>    Not available<br> Not available<br> Not available<br> Not available<br> Not available<br> Not available<br> Not available<br><br>UICC IARI:<br>   Not available<br> Not available<br> Not available<br> Not available<br> Not available<br> Not available<br> Not available<br> Not available<br><br>ISIM Service Table: 190200<br>   Service 1 - P-CSCF address<br>    Service 4 - GBA-based Local Key Establishment Mechanism<br>       Service 5 - Support of P-CSCF discovery for IMS Local Break Out<br>       Service 10 - Support of UICC access to IMS<br><br>Done !</div><br clear="all"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><font face="나눔고딕, 굴림, gulim, 돋움, dotum, AppleGothic" color="#333333"><span style="font-size:12px">Hyunwoo Lee, Ph. D.</span></font><br style="color:rgb(51,51,51);font-family:나눔고딕,굴림,gulim,돋움,dotum,AppleGothic;font-size:12px"><font color="#333333" face="나눔고딕, 굴림, gulim, 돋움, dotum, AppleGothic"><span style="font-size:12px">Network Security Researcher</span></font><br style="color:rgb(51,51,51);font-family:나눔고딕,굴림,gulim,돋움,dotum,AppleGothic;font-size:12px"><br style="color:rgb(51,51,51);font-family:나눔고딕,굴림,gulim,돋움,dotum,AppleGothic;font-size:12px"><span style="color:rgb(51,51,51);font-family:나눔고딕,굴림,gulim,돋움,dotum,AppleGothic;font-size:12px">E-mail: <a href="mailto:hw5773@gmail.com" target="_blank">hw5773@gmail.com</a></span></div></div><div dir="ltr"><span style="color:rgb(51,51,51);font-family:나눔고딕,굴림,gulim,돋움,dotum,AppleGothic;font-size:12px">Homepage: <a href="https://hw5773.github.io" target="_blank">https://hw5773.github.io</a></span></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>