Răsfoiți Sursa

- more fixes (transport stuff)

Andrei Pelinescu-Onciul 22 ani în urmă
părinte
comite
de38488ef8
2 a modificat fișierele cu 3 adăugiri și 2 ștergeri
  1. 2 2
      forward.c
  2. 1 0
      main.c

+ 2 - 2
forward.c

@@ -468,14 +468,14 @@ int forward_reply(struct sip_msg* msg)
 		goto error;
 	}
 
+	proto=msg->via2->proto;
 	if (update_sock_struct_from_via( to, msg->via2 )==-1) goto error;
-	send_sock=get_send_socket(to, msg->rcv.proto);
+	send_sock=get_send_socket(to, proto);
 	if (send_sock==0){
 		LOG(L_ERR, "forward_reply: ERROR: no sending socket found\n");
 		goto error;
 	}
 
-	proto=msg->via2->proto;
 	if (proto==PROTO_UDP){
 		if (udp_send(send_sock, new_buf,new_len,  to)==-1)
 		{

+ 1 - 0
main.c

@@ -878,6 +878,7 @@ static void sig_usr(int signo)
 			case SIGINT:
 			case SIGPIPE:
 			case SIGTERM:
+					LOG(L_INFO, "INFO: signal %d received\n", signo);
 					/* print memory stats for non-main too */
 					#ifdef PKG_MALLOC
 					LOG(memlog, "Memory status (pkg):\n");