Module: kamailio Branch: 5.6 Commit: 11a191e837821c535832382ce9f0ed244e4d66b9 URL: https://github.com/kamailio/kamailio/commit/11a191e837821c535832382ce9f0ed24...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: Daniel-Constantin Mierla miconda@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/11a191e837821c535832382ce9f0ed24... Patch: https://github.com/kamailio/kamailio/commit/11a191e837821c535832382ce9f0ed24...
---
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");