Browse Source

siptrace: lookup socket by name if not set for hep

- GH #3174
Daniel-Constantin Mierla 3 years ago
parent
commit
66f175f40e
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/modules/siptrace/siptrace_hep.c

+ 3 - 0
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");