-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CoIMS app not functional in Samsung mobile. #13
Comments
I would suggest you re-program your SIM and use PLMN 001 01 as that has highest chances of working via this method. But in general its hard to get this method to work in Samsung as they have locked access to the 'IMS Settings" secret menu from Android 10 and above. So can't use this method if your device is running Android 10 or above. |
Thankyou @herlesupreeth i will try to change MNC MCC and try again. |
@ncreddy2001 , did your issue get fixed? I am having the same problem even though I have used PLMN 001 01. |
@herlesupreeth
The question is, is there a way to delete the ISIM applet? I can provide you with abd logs if you want. And in pcap logs, Its just that PDN conn req is not getting triggered with ims apn and hence no SIP traces regarding ims. Any pointers to this issue will be very helpful. |
I dont think you can delete ISIM application from the SIM card. But if you use this script https://github.com/osmocom/pysim/blob/master/scripts/deactivate-ims.script (make sure to change the ADM key as per your SIM card) it should disable ISIM application completely. And, if Samsung device tries to access ISIM even after that then its not following 3GPP specification. |
I would recommend to go one step furthe to actually LOCK the ISIM application at the GlobalPlatform level. This way even the SELECT of the ADF.ISIM will fail. Both the method described by @herlesupreeth and the lock of the ISIM application are documented in the official user manual; See the section titled "Locking the ISIM applicaiton" in the sysmoISIM user manual. |
Thanks both of you for the reply. And yes I have gone through the CoIMS blog by @herlesupreeth and redmine wiki of sysmocom. We used the commands: After doing this we were not able to select ADF.ISIM but were able to see it in 00:MF> I am attaching a zip file in which log12.txt is the adb logcat for working and non working scenarios. Is there any additional setting needed? |
Can you please confirm / double check that you are using the exact same phone and just replacing the SJA2 with SJS1 will make this very same phone with same network on the same mcc/mnc and EPC+IMS core configuration perform the ims registration?
That's highly unusual and I would be interested in getting a pySim-shell "export" (after verify_adm) for both of the cards so I can do a different between the card contents. Feel free to share by email if you don't want to post your key material or other possibly confidential data publicly.
--
Sent from a mobile device. Please excuse my brevity.
|
exports.zip The exports are attached in files labeled "sja2_export" and "sjs1 _export" respectively Thank you. |
On Sat, Feb 03, 2024 at 09:31:25AM -0800, dushy-3474 wrote:
The exports are attached in files labeled "sja2_export" and "sjs1 _export" respectively
The export clearly shows that ADF.ISIM of your sysmoISIM-SJA2 is still operational and not LOCKED.
This is contrary to your earlier statement that you did lock the application.
Please make sure you have disabled (LOCKED) the ISIM application.
…--
- Harald Welte ***@***.***> https://laforge.gnumonks.org/
============================================================================
"Privacy in residential applications is a desirable marketing option."
(ETSI EN 300 175-7 Ch. A6)
|
Hello Harald, Please ignore previously attached file. Attaching new set of files to compare. Regards, |
Hello Harald, We have been debugging the UE behaviour from the ADB logs. I have attached the adb log file, when ISIM application is locked for SJA2 UICC cards. 02-02 12:18:03.732 1811 1811 D IsimUiccRecords: [ISIM-0] EF_ISIM_IMPU LOADED 02-02 12:18:04.116 2123 2334 E TelephonyManagerWrapper: use backup impu : xxxxx Also while doing a quick search in Android source code, in fileframeworks/opt/telephony/src/java/com/android/internal/telephony/uicc/IsimUiccRecords.java, we see a "todo" that mentions locked state of ISIM is not handled well. Do you have any idea on this, or if are we looking at the correct version of Android source code? /*** If above observations are correct, may be the locking of ISIM will not work in current Android. One alternative is to configure correct EFs in the ADF.ISIM. IMPU, IMPI and domain name are possibly straight forward configurations. Do you know if the authentication key and SQN also needs to be configured or not? Is this the same key and SQN as what is present in ADF.USIM? If we configure these, do you know or tested if the VoLTE will work correctly or not? Do you have any example scripts to configure the ADF.ISIM? Regards, |
I use the below pySim-prog.py command to configure all relevant EFs required for ISIM to be activated correctly
just ensure to change the ADM (-a) as per what you received from Sysmocom for your SIM card |
@herlesupreeth But I was just curious that how other users of sysmocomISIM-SJA2 are testing IMS and volte if locking of ISIM applet does not work. Regards, |
Just to clarify few things, its not an issue of the SIM card in any way. Its the phone vendors who are locking the VoLTE capability behind a pay wall and CoIMS is one of the method (outlined by Google in AOSP) to override that lock and enable VoLTE. So in a way Sysmocom SIM are really helpful in being able to achieve overriding of VoLTE settings via CoIMS (if you buy SIM cards from other vendors you wont be able to able to use CoIMS method) And, usually locking of ISIM is not needed at all as EFs related to ISIM are programmed and actively used in VoLTE deployments.
I dont think there is any other way unless you are ready to approach individual phone vendors to enable VoLTE on the private LTE network you are operating. Or approach GSMA with the settings you want to enable and wait for phone vendor to take that settings from GSMA database and then rollout as a phone update. |
I did not mean to say its a SIM card issue. Was just trying understand the trend. We are able to do IMS registration and volte is successful. Regards, |
I didnt mean offense either :)
Can you please explain what let to successful IMS registration so that others may benefit?? Was it the programming of SIM with the command I shared above? |
Yes I used the command above with appropriate IMSI (we are maintaining mcc mnc as 001 01) to program the ISIM. After this second PDN connect request was sent for ims APN and IMS registration was successful. Regards, |
Hello @herlesupreeth , Is there a way to dynamically not give IMS registration to UEs connecting? For one of the use cases I am testing. I dont want UEs to get Volte. I know One way is to remove IMPU IMPI IMSU from the simcard. But to remove it as a blanket from the open5gs EPC, is there a way? I tried removing ims apn from smf.yaml and upf.yaml. This did not work. Removing entry from Fhoss is working. Regards, |
Hey @dushy-3474 , I am not sure whether I got your question right. But if you want your phone to stop attempting to connect to IMS you can try the following
|
Hello @herlesupreeth, Sorry to bother to you again regarding this topic. The above method of programming IMS ids in the sim cards are working fine on certain model. (Samsun m13 5g). After the IMS bearer establishment at EPS level is successful, the UE is not sending any register message to p-cscf (No IMS messages on SIP). And CoIMS app also is not working. Do you have any idea what might be going wrong. Regards, |
Try restarting the phone and attach to the IMS again. Sometime phones give up on attempting to connect to IMS after repeated failed attempts |
Thanks for the response. Restarting and updating software did not help. I am able to see the following in the adb log of the UE at regular intervals. And also one more point is that this happens only in one model of samsung m13 4g. And its working samsung m13 5g. Is it because samsung m13 4g is not reading the ISIM application of the SIM card where we have programmed the ims uri.? Regards, |
@dushy-3474 Please attach a pcap taken on the machine running your 4G Core when you attempt to attach the UE to IMS and post it here. Android logs are not very helpful |
@herlesupreeth |
No filters |
I am attaching the pcap logs. Filter is sctp or port sip or port 6060 or port 4060 But if you need I will try. ims_not_working_1.zip Regards, |
we were suspecting this. How to collect this logs which appear on the tmux a, or where is this log stored. |
I think The not working UE is send EPCO in PDN connectivity request. and working phone is sending PCO. |
I got the commit id for EPCO, 01d3db4b6ec9f54f4808d19572f2b20ca8d2df00. I tried the epco_len code in our version. It wasnt there. But still same issue. epco is not coming from open5gs. I am attaching the logs. Regards, |
Please try with latest version of open5gs and send me the logs. open5gs v2.4.9 is quite old at this point |
Hi @herlesupreeth
Im trying to replicate the tutorial in open5gs (EPC + IMS) VoLTE Setup with Kamailio IMS and Open5GS i had issue regarding enabling VoLTE on an samsung mobile using CoIMS application,
Setup information:
Initially i had issues connecting UE's to EPC with APN 'IMS' then followed this tutorial to enable CoIMS on the sim using pySIM_tools while making changes on the mobile phone using CoIMS i had issues opening Samsung IMS settings option in the menu can you please suggest any other alternative to enable VoLTE.
WhatsApp.Video.2023-05-18.at.3.19.52.PM.mp4
The text was updated successfully, but these errors were encountered: