herlesupreeth / docker_open5gs

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

About error for VOLTE #374

Open lucho2000 opened 2 months ago

lucho2000 commented 2 months ago

Hello Supreeth:

I am working with the tutorial that you send me about docker with Open 5GS and Kamailio. I am working on a single host mode.

I run succesfully the commands, and my sims register in the network, and have access to the internet. But for VOLTE, I try a call between the 2 numbers and it fails.

About the models of the phones, I am using Huawei P30 and Huawei Mate 20 lite.

I also create the 2 APNs on both phones. And I followed the steps on the tutorial of that Github. image

screenshot of the PCAP: image

Or maybe I should use another devices that supports VoLTE. But also in the pcap I don't see any SIP messages.

Please if you would help with the issue.

Best wishes, Luis

herlesupreeth commented 2 months ago

Hey,

can you please attach a pcpa taken on the machine where you are running docker_open5gs when you attempt to attach the UE to the network??

lucho2000 commented 2 months ago

Hi:

Sorry, in which interface can I see the logs to save the pcap file? Because I have a lot of 'veth', one that gives me Internet, another from docker0 and a br-c62676a2a66d

Luis

herlesupreeth commented 2 months ago

When you run wireshark, I would suggest capturing packets on interface named 'any'

lucho2000 commented 2 months ago

Hello, I have the pcap file on 'any' interface. intany.zip

herlesupreeth commented 2 months ago

I dont see any S1AP packets etc in the trace you attached. Please do the following steps and send me the pcap

  1. Stop all containers
  2. Start the pcap
  3. Start EPC + eNB
  4. Attach the UEs
  5. Attempt to call
  6. Wait until it fails
  7. Stop the pcap
lucho2000 commented 2 months ago

Hi:

I have the new pcap. I hope it helps to resolve the problem.

s1ap.zip

lucho2000 commented 2 months ago

Another question:

About COIMS, I don´t know how it works and if it is necessary to install on phones to force VOLTE. If you help me to understand please.

Luis

herlesupreeth commented 2 months ago

Thanks for pcap. I see in your pcap that UE is not attempting to establish a PDN connection to 'ims' APN. This means that IMS is not enabled on the phone.

About COIMS, I don´t know how it works and if it is necessary to install on phones to force VOLTE. If you help me to understand please.

If you are using Samsung devices CoIMS method wont work. Since IMS is not enabled on your phone it looks like you would need to force enable it on both of your devices

lucho2000 commented 2 months ago

Hello:

I installed the app CoIMS on that cellphones brands: Huawei, Samsung, Xiaomi. The message on the phones: App does not have carrier privileges.

image

Or I have to configure someone on the SIMs?

image. The program is OYEISIMWRITE.

This is the screenshot of the PYHSS to change some parameters on one IMS subscriber. Why? Because on the SIM config I don't see any parameter similar on the JSON file. So I don't know it image

Also the config of APN on the phones is correct? image image

Do you think the configuration is correct? Luis

herlesupreeth commented 1 month ago

In order to use CoIMS, you need a SIM which allows installing applet (ARA-M) and allow pushing of SHA1 certificate to that applet. The only SIM card I know which allows that is some Sysmocom.

lucho2000 commented 1 month ago

Hello:

Exactly, what model of Sysmocom cards can buy for use COIMS? I find one model on Internet (I attach the link below)

https://shop.sysmocom.de/sysmoISIM-SJA5-9FV-SIM-USIM-ISIM-Card-10-pack-with-ADM-keys-9FV-chip/sysmoISIM-SJA5-9FV-10p-adm

Luis

lucho2000 commented 1 month ago

Hello:

Now I am working with MCC 001 and MNC 01 configuration. The phones are connected and have access to Internet. Also Volte options are enabled on both (symbol 'VoLTE'appears). The internet and ims APN are created, and the first is activate. But when I make the call, automatically disconnects from the network. So i don't know if it must change to the APN manually on the phones or maybe I see a problem on the logs.

the output when I run the command: sudo kamailio -f /etc/kamailio_icscf/kamailio_icscf.cfg -P /kamailio_icscf.pid -DD -E -e

loading modules under config path: /usr/lib64/kamailio/modules_k/:/usr/lib64/kamailio/modules/:/usr/lib/kamailio/modules_k/:/usr/lib/kamailio/modules/:/usr/lib/x86_64-linux-gnu/kamailio/modules/:/usr/local/lib64/kamailio/modules 0(535582) INFO: [core/sctp_core.c:74]: sctp_core_check_support(): SCTP API not enabled - if you want to use it, load sctp module Listening on udp: 10.4.128.21 [10.4.128.21]:4060 tcp: 10.4.128.21 [10.4.128.21]:4060 tcp: 127.0.0.1 [127.0.0.1]:4060 Aliases: : ims.mnc001.mcc001.3gppnetwork.org:

0(535582) INFO: [core/tcp_main.c:5042]: init_tcp(): using epoll_lt as the io watch method (auto detected) 0(535582) INFO: rr [../outbound/api.h:52]: ob_load_api(): unable to import bind_ob - maybe module is not loaded 0(535582) INFO: rr [rr_mod.c:177]: mod_init(): outbound module not available 0(535582) INFO: pike [pike.c:97]: pike_init(): PIKE - initializing 0(535582) INFO: pike [ip_tree.c:81]: init_lock_set(): probing 256 set size 0(535582) ERROR: ctl [init_socks.c:114]: init_unix_sock(): ERROR: init_unix_sock: bind: No such file or directory [2] 0(535582) ERROR: ctl [ctl.c:291]: mod_init(): ERROR: ctl: mod_init: init ctrl. sockets failed 0(535582) ERROR: [core/sr_module.c:849]: init_mod(): Error while initializing module ctl (/usr/local/lib64/kamailio/modules/ctl.so) ERROR: error while initializing modules 0(535582) WARNING: [core/mem/q_malloc.c:487]: qm_free(): WARNING: free(0) called from cdp_avp: cdp_avp_mod.c: cdp_avp_destroy(226) 0(535582) INFO: cdp [cdp_mod.c:255]: cdp_exit(): CDiameterPeer child stopping ... 0(535582) INFO: cdp [cdp_mod.c:257]: cdp_exit(): ... CDiameterPeer child stopped

If you can check please, I also want to have the voice service for my thesis project.

Luis

herlesupreeth commented 1 month ago

Please attach a pcap taken on ‘any’ interface on the machine running docker_open5gs when you register the phone and attempt a call

lucho2000 commented 1 month ago

newconfigdocker.pcapng.gz I attach the pcap when I attempt a call.

herlesupreeth commented 1 month ago

image

Looks like you have not configured the QCI for VoLTE call correctly in open5gs webUI.

It has to be as following

image

lucho2000 commented 1 month ago

Hello:

I finally establish the VOLTE calls with that configuration with Huawei phones using OYEITMES sim cards.

Exactly, what model of Sysmocom cards can buy for use COIMS? I find one model on Internet (I attach the link below), because I want to try with more users, because with Samsung, or other phone brands it can't be enable to activate VOLTE.

https://shop.sysmocom.de/sysmoISIM-SJA5-9FV-SIM-USIM-ISIM-Card-10-pack-with-ADM-keys-9FV-chip/sysmoISIM-SJA5-9FV-10p-adm

Tell me please if I should buy that model of Sysmocom SIM cards to try on ohter phone brand, for example, Samsung, Xiaomi.
Thanks for your last reply.

Luis

herlesupreeth commented 4 weeks ago

You can buy the Sysmocom SIM pointed in that link

because with Samsung, or other phone brands it can't be enable to activate VOLTE.

Just a note, even with the help of CoIMS its not possible to activate VoLTE on Samsung devices. It may work on non-Samsung devices

lucho2000 commented 4 weeks ago

Hi:

Thanks for your reply. And why is it not possible on Samsung devices?

herlesupreeth commented 3 weeks ago

And why is it not possible on Samsung devices?

Because Samsung does not follow whatever we set for these values - https://developer.android.com/reference/android/telephony/CarrierConfigManager.html and maintain their own set of settings per PLMN which can only be modified by a system app (App bundled with ROM) or if the device is rooted

lucho2000 commented 3 weeks ago

And in the case of non-samsung devices, you say that maybe it works using COIMS for VOLTE or not. Why would it not work?

El mar, 5 nov 2024 a las 12:29, Supreeth Herle @.***>) escribió:

And why is it not possible on Samsung devices?

Because Samsung does not follow whatever we set for these values - https://developer.android.com/reference/android/telephony/CarrierConfigManager.html and maintain their own set of settings per PLMN which can only be modified by a system app (App bundled with ROM) or if the device is rooted

— Reply to this email directly, view it on GitHub https://github.com/herlesupreeth/docker_open5gs/issues/374#issuecomment-2457774538, or unsubscribe https://github.com/notifications/unsubscribe-auth/AZZQEQH7PFRDIHJ37IA67KLZ7D553AVCNFSM6AAAAABO53KWQOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINJXG43TINJTHA . You are receiving this because you authored the thread.Message ID: @.***>

herlesupreeth commented 3 weeks ago

And in the case of non-samsung devices, you say that maybe it works using COIMS for VOLTE or not. Why would it not work?

When I was testing with other public PLMNs e.g. 262 10 etc I discovered that on some phone even though CoIMS method overrides the settings still VoLTE was not enabled so I am guessing it has to do with MBN files/settings (usually found in Qualcomm based modems) in modem not being set to enable VoLTE