Module: kamailio
Branch: 5.8
Commit: 8bdde9e6ad5fed54ca5112e7f5dd1379d2f6c51c
URL: 
https://github.com/kamailio/kamailio/commit/8bdde9e6ad5fed54ca5112e7f5dd1379d2f6c51c

Author: Victor Seva <[email protected]>
Committer: Victor Seva <[email protected]>
Date: 2026-01-21T08:42:11+01:00

ims_registrar_scscf: unlock_udomain using the proper identity

related #4553

(cherry picked from commit 800895cb5d069268016812a0174ca3ed2dc6b479)

---

Modified: src/modules/ims_registrar_scscf/save.c

---

Diff:  
https://github.com/kamailio/kamailio/commit/8bdde9e6ad5fed54ca5112e7f5dd1379d2f6c51c.diff
Patch: 
https://github.com/kamailio/kamailio/commit/8bdde9e6ad5fed54ca5112e7f5dd1379d2f6c51c.patch

---

diff --git a/src/modules/ims_registrar_scscf/save.c 
b/src/modules/ims_registrar_scscf/save.c
index b6132038930..f96bed2bc31 100644
--- a/src/modules/ims_registrar_scscf/save.c
+++ b/src/modules/ims_registrar_scscf/save.c
@@ -952,7 +952,7 @@ int update_contacts(struct sip_msg *msg, udomain_t *_d, str 
*public_identity,
                                                                != 0) {
                                                        LM_DBG("Contact does 
not exist <%.*s>\n",
                                                                        
chi->uri.len, chi->uri.s);
-                                                       ul.unlock_udomain(_d, 
&pi->public_identity);
+                                                       ul.unlock_udomain(_d, 
public_identity);
                                                        goto error;
                                                }
                                                event_reg(0, impu_rec, ucontact,
@@ -1090,7 +1090,7 @@ int update_contacts(struct sip_msg *msg, udomain_t *_d, 
str *public_identity,
                                                                != 0) {
                                                        LM_DBG("Contact does 
not exist <%.*s>\n",
                                                                        
chi->uri.len, chi->uri.s);
-                                                       ul.unlock_udomain(_d, 
&pi->public_identity);
+                                                       ul.unlock_udomain(_d, 
public_identity);
                                                        goto error;
                                                }
                                                event_reg(0, impu_rec, ucontact,
@@ -1253,7 +1253,8 @@ int update_contacts(struct sip_msg *msg, udomain_t *_d, 
str *public_identity,
                                                                                
LM_ERR("Error trying to determine if "
                                                                                
           "this is a sos contact <%.*s>\n",
                                                                                
                chi->uri.len, chi->uri.s);
-                                                                               
ul.unlock_udomain(_d, public_identity);
+                                                                               
ul.unlock_udomain(
+                                                                               
                _d, &pi->public_identity);
                                                                                
goto error;
                                                                        }
                                                                        
calc_contact_expires(chi, expires_hdr, sos);

_______________________________________________
Kamailio - Development Mailing List -- [email protected]
To unsubscribe send an email to [email protected]
Important: keep the mailing list in the recipients, do not reply only to the 
sender!

Reply via email to