Module: kamailio
Branch: 5.6
Commit: d0300a9c69c522b7a6e3f69f21160df30f05f2ff
URL:
https://github.com/kamailio/kamailio/commit/d0300a9c69c522b7a6e3f69f21160df…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2022-09-17T10:23:18+02:00
sipdump: make dest ipv6 addresses without square brackets
(cherry picked from commit 0a61ec2f137414a7bfc2535dfe4df9b72e500cf8)
---
Modified: src/modules/sipdump/sipdump_mod.c
---
Diff:
https://github.com/kamailio/kamailio/commit/d0300a9c69c522b7a6e3f69f21160df…
Patch:
https://github.com/kamailio/kamailio/commit/d0300a9c69c522b7a6e3f69f21160df…
---
diff --git a/src/modules/sipdump/sipdump_mod.c b/src/modules/sipdump/sipdump_mod.c
index 4b2d87c260..8e871cc980 100644
--- a/src/modules/sipdump/sipdump_mod.c
+++ b/src/modules/sipdump/sipdump_mod.c
@@ -422,7 +422,8 @@ int sipdump_msg_sent(sr_event_param_t *evp)
isd.src_port = (int)evp->dst->send_sock->port_no;
}
su2ip_addr(&ip, &evp->dst->to);
- isd.dst_ip.len = ip_addr2sbufz(&ip, dstip_buf, IP_ADDR_MAX_STRZ_SIZE);
+ isd.dst_ip.len = ip_addr2sbuf(&ip, dstip_buf, IP_ADDR_MAX_STRZ_SIZE);
+ dstip_buf[isd.dst_ip.len] = '\0';
isd.dst_ip.s = dstip_buf;
isd.dst_port = (int)su_getport(&evp->dst->to);