Module: kamailio Branch: master Commit: 66f175f40e6145e895fa22952b40b372e4eff381 URL: https://github.com/kamailio/kamailio/commit/66f175f40e6145e895fa22952b40b372...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: Daniel-Constantin Mierla miconda@gmail.com Date: 2022-07-01T19:59:34+02:00
siptrace: lookup socket by name if not set for hep
- GH #3174
---
Modified: src/modules/siptrace/siptrace_hep.c
---
Diff: https://github.com/kamailio/kamailio/commit/66f175f40e6145e895fa22952b40b372... Patch: https://github.com/kamailio/kamailio/commit/66f175f40e6145e895fa22952b40b372...
---
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");