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

Author: herlesupreeth <herlesupre...@gmail.com>
Committer: Daniel-Constantin Mierla <mico...@gmail.com>
Date: 2025-01-29T08:16:08+01:00

ims_registrar_scscf: set contact to presentity URI in 200OK for SUBSCRIBE to 
reg events

---

Modified: src/modules/ims_registrar_scscf/registrar_notify.c

---

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

---

diff --git a/src/modules/ims_registrar_scscf/registrar_notify.c 
b/src/modules/ims_registrar_scscf/registrar_notify.c
index bcddbf17cc2..b1af5189a8d 100644
--- a/src/modules/ims_registrar_scscf/registrar_notify.c
+++ b/src/modules/ims_registrar_scscf/registrar_notify.c
@@ -1376,7 +1376,7 @@ int subscribe_to_reg(struct sip_msg *msg, char *_t, char 
*str2)
                ret = CSCF_RETURN_TRUE;
                LM_DBG("Sending 200 OK to subscribing user\n");
                subscribe_reply(
-                               msg, 200, MSG_REG_SUBSCRIBE_OK, &expires, 
&scscf_name_str);
+                               msg, 200, MSG_REG_SUBSCRIBE_OK, &expires, 
&presentity_uri);
 
                if(event_type == IMS_REGISTRAR_SUBSCRIBE
                                || event_type == 
IMS_REGISTRAR_SUBSEQUENT_SUBSCRIBE) {
@@ -1427,7 +1427,7 @@ int subscribe_to_reg(struct sip_msg *msg, char *_t, char 
*str2)
                ret = CSCF_RETURN_TRUE;
                LM_DBG("Sending 200 OK to subscribing user\n");
                subscribe_reply(
-                               msg, 200, MSG_REG_UNSUBSCRIBE_OK, &expires, 
&scscf_name_str);
+                               msg, 200, MSG_REG_UNSUBSCRIBE_OK, &expires, 
&presentity_uri);
        }
 
 doneorerror:

_______________________________________________
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