herlesupreeth / docker_open5gs

Docker files to run open5gs + IMS + eNB + gNB + NR-UE in a docker
BSD 2-Clause "Simplified" License
279 stars 156 forks source link

No IMS registration #327

Open kamgaarnold opened 1 month ago

kamgaarnold commented 1 month ago

Hello @herlesupreeth. Hope you doing great Actually i'm new to the setup using SDR to build a network. So i decided to use the Kamailo (the same link on your github)to build the network and perform a VoLTE call (which is not working yet)and the following have already been compeleted:

1) i was able to do a successful attach and i'll add the PCAP Here. 2) To perform the IMS, i downloaded the CoIMS app in the case of samsung and i had to add certificate to the sim so it could be accessed. Initially when i put the SIM, the app was saying "carrier priviledges not allowed" but when certificates was added it got solved. but volte provisionned was still disabled 3) I also saw one of your comments on a post to use IPHONE because it will not use the coIMS app. i used the iphone and VoLTE was autolmatically activated on the phone but could not see anything in the logs.

Please can you help guide me on this?

Thanks 5_27_2024.zip

herlesupreeth commented 1 month ago

Hey @kamgaarnold I see that you had wrong APN configured first and then changed to "F2G" and UE was able to connect to the 4G network, but I dont see UE requesting a PDN connection towards "ims' APN i.e. there should be another PDN connectivity request after the highlighted packet in below screenshot

image

May I know which UE it is in the trace? iphone or samsung phone?

kamgaarnold commented 1 month ago

Hi @herlesupreeth. Thanks for the quick reply. Yes I changed the apn from internet to F2G in both the Phyhss and open5gs The pcap attach in my first comment is for the samsung s10. When using apple I had an issue because the pcap log was complain about "unknown PLMN". But the Volte was enable. Besides I was using an iphone8 and couldn't add an APN. Yes and as you said there is no PDN connectivity for the ims which is where I'm stucked for now. I can see that all the core elements are initialized but no PDNConnectivity is coming in for qci-5. Is it due to some communication not existing between ims elements ?

Thanks

kamgaarnold commented 1 month ago

Hey @kamgaarnold I see that you had wrong APN configured first and then changed to "F2G" and UE was able to connect to the 4G network, but I dont see UE requesting a PDN connection towards "ims' APN i.e. there should be another PDN connectivity request after the highlighted packet in below screenshot

image

May I know which UE it is in the trace? iphone or samsung phone? Hi @herlesupreeth. Thanks for the quick reply. It is a samsung phone. Photo is attached IMG-20240527-WA0027 IMG-20240527-WA0025

herlesupreeth commented 1 month ago

The pcap attach in my first comment is for the samsung s10.

CoIMS method sadly doesnt work on Samsung device running Android 10 and above. The reason you dont see PDN connectivity request for ims APN is because VoLTE is not enabled on that device.

kamgaarnold commented 1 month ago

The pcap attach in my first comment is for the samsung s10.

CoIMS method sadly doesnt work on Samsung device running Android 10 and above. The reason you dont see PDN connectivity request for ims APN is because VoLTE is not enabled on that device.

@herlesupreeth thanks for letting me know that Android does not support CoIMS and it makes sense also because the VoLTE is not enable as shown on the photo. Please do you advice any other UE i can use? I tried using a oneplus but it does not recognise my sim. Should I try a Android with a version less that Android 10?

kamgaarnold commented 1 month ago

Hello @herlesupreeth. Please in order to have the PDN, do we need to masquerade the Sgi interface in the case of docker_5gs? By the way what UE do you recommend for this setup please. Thanks

herlesupreeth commented 1 month ago

Please do you advice any other UE i can use? I tried using a oneplus but it does not recognise my sim.

You can use any other phone apart from Samsung devices. Just keep note that its better to go with a phone which has Qualcomm chipset in it.

Please in order to have the PDN, do we need to masquerade the Sgi interface in the case of docker_5gs?

I dont think those two are related

kamgaarnold commented 1 week ago

Hello @herlesupreeth, @miaoski @galalmounir @platini2 please i've been stocked on this IMS issue. Actually i tried today and i see "extended service request" followed by CSFB. I used the kamailo setup (https://github.com/herlesupreeth/docker_open5gs#provisioning-of-sim-information-in-pyhss-is-as-follows). so i don't know if there is an issue or i'm missing something in my configs.

The attach is ok with QCI-9 with both APN added on the UE but i don't get any PDN for ims hence no sip registration. CSFallbacktriggered.zip

This CSFB is been triggered with a Galaxy s10. when i use an iphone 13, i can't get attached or i see the network but i get no logs Any of each contributions will help me. Also i'm alsways having radio connection with UE lost wereas the UE is closer to my "BladeRF" radioconnectionwithuelost.zip

Thanks

herlesupreeth commented 1 week ago

The attach is ok with QCI-9 with both APN added on the UE but i don't get any PDN for ims hence no sip registration.

sadly its a UE issue and nothing can be done. I would suggest to try with any other phone than Samsung

kamgaarnold commented 1 week ago

The attach is ok with QCI-9 with both APN added on the UE but i don't get any PDN for ims hence no sip registration.

sadly its a UE issue and nothing can be done. I would suggest to try with any other phone than Samsung

@herlesupreeth I tried with an iphone13 but it still does CSFB 🥺 eventhough VoLTE is enabled

herlesupreeth commented 1 week ago

I tried with an iphone13 but it still does CSFB 🥺 eventhough VoLTE is enabled

please restart the phone and try to attach with iPhone 13 and send me the pcap

kamgaarnold commented 1 week ago

Alright. let me try and attach the PCAP. Thanks

kamgaarnold commented 1 week ago

Hurlee.zip Hello @herlesupreeth. i attached 3 PCAP in the folder. Thanks. i'll keep checking but still facing CSFB. I'm not sure if something is missen in my config. If you need something more, i can share with you

herlesupreeth commented 1 week ago

I think your APN configuration in open5gs is wrong. You should have internet APN first and then ims APN and i think you have the other way around

image

kamgaarnold commented 1 week ago

@herlesupreeth if you go through the zip file, the 3rd pcap has internet as default. The other 2 you can disregard because I set ims as default when doing a scenario to see if the UE still attach. image

Thanks

herlesupreeth commented 1 week ago

hmm.. then I didnt see UE attempting a PDN connection ims APN. Can you reprogram the SIM to 00101 and set MNC and MCC accordingly in env file and give it a try ?

kamgaarnold commented 1 week ago

@herlesupreeth ok i'll do that. i attach the file here 00101plmn.zip 20240623_210316.jpg

i'm able to see two PDN. But there is no dedicated bearer activated so no call will go through. Any thought on this?

Thanks

herlesupreeth commented 1 week ago

Aha, I now see ims PDN connectivity request from UE and thats good news. Can you please take the pcap on the entire machine running docker_open5gs when the UE attempts to connect to network. The pcap you took has only S1AP packet and no GTP packets

But there is no dedicated bearer activated so no call will go through.

Dedicated bearer is created only during a VoLTE call and not before

kamgaarnold commented 1 week ago

@herlesupreeth I don't get it. It's true we can't see gtp packet. I'm not sure on how to do what you're suggesting. Can you guide a little. In the enb.conf what line do I need to uncomment to see gtp packet?

herlesupreeth commented 6 days ago

Use tcpdump to take trace on the host machine where you are running docker_open5gs (please look up on internet how to do so)

In the enb.conf what line do I need to uncomment to see gtp packet?

Its not a setting in eNB.

kamgaarnold commented 2 days ago

Hello @herlesupreeth . i attach the pcap here. i succeeded to see the SIP. but now when i use 2 Devices with 2 IMSI'S i can't perform a call. Is there any work around to perform this?

Thanks 6_28_2024.zip

herlesupreeth commented 8 hours ago

You have incorrectly provisioned the SCSCF URI in the HSS. Its should be sip:scscf.ims.mnc001.mcc001.3gppnetwork.org:6060

and NOT sip:scscf.ims.mnc01.mcc001.3gppnetwork.org:6060 (Notice the extra leading zero after mnc)

image

kamgaarnold commented 6 hours ago

@herlesupreeth that got updated already. When I analysed the logs I did correct it. But when making a complete call I need to provision another sim and try? Because I've been trying that but facing some difficulties 6_30_2024_404notfound.zip

herlesupreeth commented 6 hours ago

But when making a complete call I need to provision another sim and try?

yes, without that you will receive 404 from IMS as it doesnt know the user you are trying to call

kamgaarnold commented 2 hours ago

@herlesupreeth the other user I'm trying to call is already added in the database

herlesupreeth commented 2 hours ago

It does not matter, the other user must be registered at the IMS in order for call to be successful. Please read refer to IMS material about how IMS works and how VoLTE calling works

kamgaarnold commented 2 hours ago

@herlesupreeth ok thanks. I'll do that ans keep you posted.