[sr-dev] [kamailio/kamailio] cscf_get_ue_via does not return UE via (#2864)

Erhan Onur Sendag notifications at github.com
Fri Oct 22 09:23:22 CEST 2021

Hello @henningw,

I checked usage of cscf_get_ue_via function. And I saw ims_ipsec_pcscf, ims_qos, ims_registrar_pcscf module are using this function.

All of them are pcscf modules.

ims_usrloc_pcscf  keeps a hashtable  to keep the pcscf contacts. And hash code is calculated with UE's IP address.  To get UE's IP address we are currently using cscf_get_ue_via function.

In pull request , we will change the cscf_get_ue_via with cscf_get_ue_last_via in  ims_registrar_pcscf_registrar module only. So contact will be saved into hash table with the return value of cscf_get_ue_last_via. 

Since we will not change  ims_ipsec_pcscf and ims_qos modules, they will query hash table with the return value of cscf_get_ue_via.  Since these module will not use the same function to get UE's IP adress, they may get a different value and may not reach the contact in the hash table. because calculated hash code will be different.


You are receiving this because you commented.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20211022/698216ea/attachment-0001.htm>

More information about the sr-dev mailing list