Module: sip-router
Branch: master
Commit: a1e96cbd5a3b43598c59cb50693e6b739801b804
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=a1e96cb…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Mon Sep 22 22:04:39 2014 +0200
core: add received parameter to via if rport parameter is present
- required by RFC3581, section 4.
---
msg_translator.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/msg_translator.c b/msg_translator.c
index 677d44e..e880b00 100644
--- a/msg_translator.c
+++ b/msg_translator.c
@@ -257,7 +257,7 @@ int received_test( struct sip_msg *msg )
{
int rcvd;
- rcvd=msg->via1->received
+ rcvd=msg->via1->received || msg->via1->rport
|| check_via_address(&msg->rcv.src_ip, &msg->via1->host,
msg->via1->port, received_dns);
return rcvd;