Browse code

- skip via test for HTTP requests

Jan Janak authored on 15/12/2005 23:37:19
Showing 1 changed files
... ...
@@ -123,6 +123,7 @@ int receive_msg(char* buf, unsigned int len, struct receive_info* rcv_info)
123 123
 	if (msg->first_line.type==SIP_REQUEST){
124 124
 		/* sanity checks */
125 125
 		if ((msg->via1==0) || (msg->via1->error!=PARSE_OK)){
126
+			if (IS_HTTP(msg)) goto skip; /* Skip Via tests for HTTP requests */
126 127
 			/* no via, send back error ? */
127 128
 			LOG(L_ERR, "ERROR: receive_msg: no via found in request\n");
128 129
 			goto error02;
... ...
@@ -144,7 +145,8 @@ int receive_msg(char* buf, unsigned int len, struct receive_info* rcv_info)
144 145
 			}
145 146
 		}
146 147
 #endif
147
-
148
+			
149
+		skip:
148 150
 		DBG("preparing to run routing scripts...\n");
149 151
 #ifdef  STATS
150 152
 		gettimeofday( & tvb, &tz );