Explorar o código

dispatcher: fix force send socket functionality, was not working in some TCP scenarios

Henning Westerholt %!s(int64=2) %!d(string=hai) anos
pai
achega
6183319381
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      src/modules/dispatcher/dispatch.c

+ 2 - 1
src/modules/dispatcher/dispatch.c

@@ -1869,7 +1869,8 @@ static inline int ds_push_dst(
 			break;
 	}
 	if(sock) {
-		msg->force_send_socket = sock;
+		LM_DBG("set send socket to %.*s\n", sock->sock_str.len, sock->sock_str.s);
+		set_force_socket(msg, sock);
 	}
 	return 0;
 }