Browse code

siptrace: lookup socket by name if not set for hep

- GH #3174

Daniel-Constantin Mierla authored on 01/07/2022 17:19:14
Showing 1 changed files
... ...
@@ -588,6 +588,9 @@ int hlog(struct sip_msg *msg, str *correlationid, str *message)
588 588
 	pkg_free(p);
589 589
 
590 590
 	if(trace_send_sock_name_str.s) {
591
+		if(!trace_send_sock_info) {
592
+			trace_send_sock_info = ksr_get_socket_by_name(&trace_send_sock_name_str);
593
+		}
591 594
 		dst.send_sock = trace_send_sock_info;
592 595
 	} else if(trace_send_sock_str.s) {
593 596
 		LM_DBG("send sock activated - find the sock info\n");