From b56acc0e3a20da852f18cda76169da7005f0a058 Mon Sep 17 00:00:00 2001 From: MengMengCode <227010654+MengMengCode@users.noreply.github.com> Date: Wed, 19 Aug 2026 21:48:13 +0800 Subject: [PATCH] FIX #58 --- internal/vowifi/carrier_compat_test.go | 10 ++++++++ internal/vowifi/carrier_profiles.json | 32 ++++++++++++++++++++++++-- 2 files changed, 40 insertions(+), 2 deletions(-) diff --git a/internal/vowifi/carrier_compat_test.go b/internal/vowifi/carrier_compat_test.go index a75f0a0..879d998 100644 --- a/internal/vowifi/carrier_compat_test.go +++ b/internal/vowifi/carrier_compat_test.go @@ -145,3 +145,13 @@ func TestEPDGDNSClientSubnetComesFromCarrierProfileData(t *testing.T) { t.Fatalf("ordinary ePDG received geographic DNS fallback %q", got) } } + +func TestResolveCarrierProfileDITOPhilippinesUsesLegacyIKE(t *testing.T) { + profile := ResolveCarrierProfile(SIMIdentity{HomeMCC: "515", HomeMNC: "66"}) + if profile.ID != "dito-philippines" { + t.Fatalf("DITO profile = %#v", profile) + } + if profile.IKEProposal != IKEProposalLegacy { + t.Fatalf("DITO IKE proposal = %q, want %q", profile.IKEProposal, IKEProposalLegacy) + } +} diff --git a/internal/vowifi/carrier_profiles.json b/internal/vowifi/carrier_profiles.json index ee2b1c1..928c1af 100644 --- a/internal/vowifi/carrier_profiles.json +++ b/internal/vowifi/carrier_profiles.json @@ -36,7 +36,22 @@ "ims": { "identity_profile": "att", "register_profile": "att", - "ipsec_encryption": "aes-cbc" + "ipsec_encryption": "aes-cbc", + "register_options": { + "contact_format": "att", + "expiry_seconds": 18400, + "contact_extra_tags": ["+g.3gpp.accesstype=\"wlan1\""], + "supported_header": "path,sec-agree,gruu", + "user_agent": "SimAdmin VoWiFi", + "p_preferred_identity": true, + "p_visited_network_id": "one.att.net", + "p_access_network_info": "IEEE-802.11;i-wlan-node-id=000000000000;network-provided", + "cellular_network_info": "3GPP-E-UTRAN-FDD;utran-cell-id-3gpp=3102800000000;cell-info-age=0", + "accept_contact_tags": [ + "*;+g.3gpp.smsip", + "*;+g.3gpp.icsi-ref=\"urn%3Aurn-7%3A3gpp-service.ims.icsi.mmtel\"" + ] + } } }, { @@ -45,7 +60,12 @@ "ike": { "advertise_eap_only": false }, "ims": { "register_profile": "o2-germany", - "ipsec_encryption": "null" + "ipsec_encryption": "null", + "register_options": { + "supported_header": "path, gruu, outbound, sec-agree, 100rel, timer", + "allow_header": "INVITE, ACK, CANCEL, BYE, PRACK, UPDATE, INFO, MESSAGE, OPTIONS", + "p_preferred_identity": true + } } }, { @@ -93,6 +113,14 @@ "dns_hosts": ["epdg.epc.mnc002.mcc262.pub.3gppnetwork.org"], "dns_client_subnet": "109.192.0.0/24" } + }, + { + "id": "dito-philippines", + "match": { "home_plmns": ["51566"] }, + "ike": { "proposal": "legacy-sha1-modp1024" }, + "ims": { + "allow_sms_without_contact_confirmation": true + } } ] }