herlesupreeth / docker_open5gs

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

SIP Register Fail #358

Open ismaelabdel opened 3 months ago

ismaelabdel commented 3 months ago

Hello, sorry for disturbing

I got a UE Crosscall Z5 Android. I followed the process as queried but when I come to the SIP registration i see that my UE isn't mentionning the AKAv5 algorithm in his sip register and i see that the SCSCF isn't repliying with the ciphering key and the integrity key in his 401 challenge response.

I attach my PCAP. Thank you for helping SIP registation fail.zip

herlesupreeth commented 2 months ago

SCSCF isn't repliying with the ciphering key and the integrity key in his 401 challenge

You have taken the pcap on the P-CSCF I guess thats why you are not seeing Ck and Ik in 401. But, those should not be included in 401 sent to UE

Your UE is failing to register with IMS and keeps reattempting because there is something wrong with SIM details either programmed on the SIM or the SIM details dont match the details entered in IMS HSS

image

ismaelabdel commented 2 months ago

Hello, I noticed that my SIM Sysmocom-SJA2 use a milenage algorithm for the IMS SIP authentification. I think it's why the UE can't respond to the 401 challenge sent by S-CSCF in AKAv1MD5 ?? Can i change the algorithm into milenage in the Core open5gs ? Thank you Herle Capture d'écran 2024-09-16 141446

herlesupreeth commented 2 months ago

I noticed that my SIM Sysmocom-SJA2 use a milenage algorithm for the IMS SIP authentification. I think it's why the UE can't respond to the 401 challenge sent by S-CSCF in AKAv1MD5 ??

Milenage is the correct algorithm to use. Its used for 4G authentication at open5gs. AKAv1MD5 is the authentication method that needs to be implemented by the SIP client