Module: kamailio
Branch: master
Commit: b7e16294ae1bbfe8cc469facf59fc9e3960ff2a4
URL: 
https://github.com/kamailio/kamailio/commit/b7e16294ae1bbfe8cc469facf59fc9e3960ff2a4

Author: João Capucho <capu...@jcapucho.com>
Committer: Victor Seva <linuxman...@torreviejawireless.org>
Date: 2025-03-17T12:18:56+01:00

pua_reginfo: handle_notify - fix AoR key parsing

- The AoR key generated by handle_notify no longer includes the domain
  of the AoR when usrloc use_domain isn't enabled

---

Modified: src/modules/pua_reginfo/notify.c

---

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

---

diff --git a/src/modules/pua_reginfo/notify.c b/src/modules/pua_reginfo/notify.c
index a390a00f238..23b44caaee9 100644
--- a/src/modules/pua_reginfo/notify.c
+++ b/src/modules/pua_reginfo/notify.c
@@ -305,10 +305,10 @@ int process_body(str notify_body, udomain_t *domain)
 
                if(reginfo_use_domain) {
                        aor_key.s = uri;
+                       aor_key.len = strlen(uri);
                } else {
-                       aor_key.s = parsed_aor.user.s;
+                       aor_key = parsed_aor.user;
                }
-               aor_key.len = strlen(aor_key.s);
                /* Now let's lock that domain for this AOR: */
                ul.lock_udomain(domain, &aor_key);
                /* and retrieve the user-record for this user: */

_______________________________________________
Kamailio - Development Mailing List -- sr-dev@lists.kamailio.org
To unsubscribe send an email to sr-dev-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!

Reply via email to