Browse code

core: add received parameter to via if rport parameter is present

- required by RFC3581, section 4.

Daniel-Constantin Mierla authored on 22/09/2014 20:04:39
Showing 1 changed files
... ...
@@ -257,7 +257,7 @@ int received_test( struct sip_msg *msg )
257 257
 {
258 258
 	int rcvd;
259 259
 
260
-	rcvd=msg->via1->received
260
+	rcvd=msg->via1->received || msg->via1->rport
261 261
 			|| check_via_address(&msg->rcv.src_ip, &msg->via1->host,
262 262
 							msg->via1->port, received_dns);
263 263
 	return rcvd;