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

Author: Daniel-Constantin Mierla <mico...@gmail.com>
Committer: Daniel-Constantin Mierla <mico...@gmail.com>
Date: 2024-04-05T21:42:12+02:00

ims_ipsec_pcscf: log error message made info

---

Modified: src/modules/ims_ipsec_pcscf/cmd.c

---

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

---

diff --git a/src/modules/ims_ipsec_pcscf/cmd.c 
b/src/modules/ims_ipsec_pcscf/cmd.c
index 4f7301b56c1..b5a598b44ba 100644
--- a/src/modules/ims_ipsec_pcscf/cmd.c
+++ b/src/modules/ims_ipsec_pcscf/cmd.c
@@ -1126,7 +1126,8 @@ int ipsec_forward(struct sip_msg *m, udomain_t *d, int 
_cflags)
                        buf_len =
                                        snprintf(buf, sizeof(buf) - 1, 
"sip:%.*s:%d;transport=tcp",
                                                        ci.via_host.len, 
ci.via_host.s, dst_port);
-               } else if((_cflags & IPSEC_SETDSTURI_FULL) && (dst_proto == 
PROTO_TLS)) {
+               } else if((_cflags & IPSEC_SETDSTURI_FULL)
+                                 && (dst_proto == PROTO_TLS)) {
                        buf_len =
                                        snprintf(buf, sizeof(buf) - 1, 
"sip:%.*s:%d;transport=tls",
                                                        ci.via_host.len, 
ci.via_host.s, dst_port);
@@ -1143,7 +1144,7 @@ int ipsec_forward(struct sip_msg *m, udomain_t *d, int 
_cflags)
                memcpy(m->dst_uri.s, buf, buf_len);
                m->dst_uri.len = buf_len;
                m->dst_uri.s[m->dst_uri.len] = '\0';
-               LM_ERR("new destination URI: %.*s\n", m->dst_uri.len, 
m->dst_uri.s);
+               LM_INFO("new destination URI: %.*s\n", m->dst_uri.len, 
m->dst_uri.s);
        }
 
        // Set send socket

_______________________________________________
Kamailio (SER) - Development Mailing List
To unsubscribe send an email to sr-dev-le...@lists.kamailio.org

Reply via email to