[sr-dev] git:5.6:11a191e8: siptrace: lookup socket by name if not set for hep

Daniel-Constantin Mierla miconda at gmail.com
Mon Jul 4 11:00:30 CEST 2022


Module: kamailio
Branch: 5.6
Commit: 11a191e837821c535832382ce9f0ed244e4d66b9
URL: https://github.com/kamailio/kamailio/commit/11a191e837821c535832382ce9f0ed244e4d66b9

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2022-07-04T10:36:01+02:00

siptrace: lookup socket by name if not set for hep

- GH #3174

(cherry picked from commit 66f175f40e6145e895fa22952b40b372e4eff381)

---

Modified: src/modules/siptrace/siptrace_hep.c

---

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

---

diff --git a/src/modules/siptrace/siptrace_hep.c b/src/modules/siptrace/siptrace_hep.c
index 412eb8abdc6..6a4fa1f25e4 100644
--- a/src/modules/siptrace/siptrace_hep.c
+++ b/src/modules/siptrace/siptrace_hep.c
@@ -588,6 +588,9 @@ int hlog(struct sip_msg *msg, str *correlationid, str *message)
 	pkg_free(p);
 
 	if(trace_send_sock_name_str.s) {
+		if(!trace_send_sock_info) {
+			trace_send_sock_info = ksr_get_socket_by_name(&trace_send_sock_name_str);
+		}
 		dst.send_sock = trace_send_sock_info;
 	} else if(trace_send_sock_str.s) {
 		LM_DBG("send sock activated - find the sock info\n");




More information about the sr-dev mailing list