瀏覽代碼

siptrace: lookup socket by name if not set for hep

- GH #3174
Daniel-Constantin Mierla 3 年之前
父節點
當前提交
66f175f40e
共有 1 個文件被更改,包括 3 次插入0 次删除
  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");