... | ... |
@@ -468,14 +468,14 @@ int forward_reply(struct sip_msg* msg) |
468 | 468 |
goto error; |
469 | 469 |
} |
470 | 470 |
|
471 |
+ proto=msg->via2->proto; |
|
471 | 472 |
if (update_sock_struct_from_via( to, msg->via2 )==-1) goto error; |
472 |
- send_sock=get_send_socket(to, msg->rcv.proto); |
|
473 |
+ send_sock=get_send_socket(to, proto); |
|
473 | 474 |
if (send_sock==0){ |
474 | 475 |
LOG(L_ERR, "forward_reply: ERROR: no sending socket found\n"); |
475 | 476 |
goto error; |
476 | 477 |
} |
477 | 478 |
|
478 |
- proto=msg->via2->proto; |
|
479 | 479 |
if (proto==PROTO_UDP){ |
480 | 480 |
if (udp_send(send_sock, new_buf,new_len, to)==-1) |
481 | 481 |
{ |
... | ... |
@@ -878,6 +878,7 @@ static void sig_usr(int signo) |
878 | 878 |
case SIGINT: |
879 | 879 |
case SIGPIPE: |
880 | 880 |
case SIGTERM: |
881 |
+ LOG(L_INFO, "INFO: signal %d received\n", signo); |
|
881 | 882 |
/* print memory stats for non-main too */ |
882 | 883 |
#ifdef PKG_MALLOC |
883 | 884 |
LOG(memlog, "Memory status (pkg):\n"); |