Browse code

*** empty log message ***

Bogdan-Andrei Iancu authored on 07/03/2002 13:24:47
Showing 3 changed files
... ...
@@ -729,6 +729,7 @@ int get_ip_and_port_from_uri( struct sip_msg* p_msg , unsigned int *param_ip, un
729 729
 			port = SIP_PORT;
730 730
 		}
731 731
 	}
732
+	port = htons(port);
732 733
 
733 734
 	/* getting host address*/
734 735
 #ifdef DNS_IP_HACK
... ...
@@ -338,9 +338,9 @@ static int t_relay_to( struct sip_msg  *p_msg , char *str_ip , char *str_port)
338 338
 			}
339 339
 			break;
340 340
 		case AIN_NEWACK:	/* it's an ACK for which no transaction exists */
341
-			DBG( "SER: forwarding ACK  statelessly to %d : %d\n",
342
-				(unsigned int)str_ip, (unsigned int)str_port );
343
-			proxy=mk_proxy_from_ip((unsigned int)str_ip,(unsigned int)str_port);
341
+			DBG( "SER: forwarding ACK  statelessly \n");
342
+			proxy = mk_proxy_from_ip( (unsigned int)str_ip,
343
+				ntohs((unsigned int)str_port) );
344 344
 			forward_request( p_msg , proxy ) ;
345 345
 			free_proxy(proxy);
346 346
 			free(proxy);
... ...
@@ -35,6 +35,8 @@ loadmodule "modules/sl/sl.so"
35 35
 route{
36 36
              sl_filter_ACK();
37 37
 
38
+             #rewritehostport("195.37.77.110:5060");
39
+
38 40
              if ( !mf_process_maxfwd_header("10") )
39 41
              {
40 42
                      sl_send_reply("483","To Many Hops");