herlesupreeth / Kamailio_IMS_Config

Fixed version of Kamailio IMS configuration files for basic calling
45 stars 36 forks source link

Separating EPC and IMS on different machines #15

Closed BorjanEch0 closed 1 year ago

BorjanEch0 commented 2 years ago

I have tried to separate the open5gs core and kamailio ims packages on 2 different machines, but when i do so and try to call an UE i have the problem that caller id is lost and the call goes through as private number? Do you have any idea what could be causing this? I doubt in 2 things

  1. I am forgetting to change some component ip from 127.0.0.x to a lan ip i changed only pcrf.
  2. ogstun2 interface is on a different machine and i am using a static route on the ims machine to point all traffic to the epc machine( ip route add 192.168.101.0/24 via 10.0.20.12(EPC) and this causes confusion in the realms or makes the packets have the wrong address.

any ideas would be very helpfull. If this works i will release a guide and in the near future deb packages for ready setup.

BorjanEch0 commented 2 years ago

pcscf log 98(3331) ERROR: <script>: Preloading NAT-PING. Rows: 0 94(3322) INFO: cdp [authstatemachine.c:741]: Send_ASA(): Send_ASA(): sending ASA 94(3322) ERROR: cdp [routing.c:274]: get_routing_peer(): get_routing_peer(): No connected DefaultRoute peer found for app_id 0 and vendor id 0. 94(3322) ERROR: cdp [diameter_comm.c:142]: AAASendMessage(): AAASendMessage(): Can't find a suitable connected peer in the routing table.

107(3348) INFO: ims_ipsec_pcscf [cmd.c:998]: ipsec_forward(): Destination changed to [2://sip:192.168.101.2:7801;transport=tcp], from [2:6101] 107(3348) ERROR: ims_qos [ims_qos_mod.c:911]: w_rx_aar(): No P-Asserted-Identity hdr found in request. Using From hdr in req - we shouldn't have to do this

BorjanEch0 commented 2 years ago

call.pcap.zip calls however are successful here is a pcap of a good call

herlesupreeth commented 2 years ago

@BorjanEch0 Sorry for the late reply. If you could also post the config file I can take a look and help in debugging

BorjanEch0 commented 2 years ago

no problems! i will send the config files now, which ones do you need? open5gs? kamailio? all?

BorjanEch0 commented 2 years ago

EPC IP: 10.0.20.12 IMS IP: 10.0.20.13 DNS Server on EPC, set in netplan on both machines.

bind.zip open5gs.zip kamailio_icscf.zip