Explorar o código

siptrace: lookup socket by name if not set for hep

- GH #3174
Daniel-Constantin Mierla %!s(int64=3) %!d(string=hai) anos
pai
achega
66f175f40e
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  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);
 	pkg_free(p);
 
 
 	if(trace_send_sock_name_str.s) {
 	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;
 		dst.send_sock = trace_send_sock_info;
 	} else if(trace_send_sock_str.s) {
 	} else if(trace_send_sock_str.s) {
 		LM_DBG("send sock activated - find the sock info\n");
 		LM_DBG("send sock activated - find the sock info\n");