Module: sip-router
Branch: master
Commit: c6c4230fb0c4ca18f5c681c7195d3e1531255f3a
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=c6c4230…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Mon Dec 1 11:50:15 2014 +0100
nat_traversal: use dedicated function for testing via address against source ip
---
modules/nat_traversal/nat_traversal.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/modules/nat_traversal/nat_traversal.c
b/modules/nat_traversal/nat_traversal.c
index 6fd09d7..2f0ffbe 100644
--- a/modules/nat_traversal/nat_traversal.c
+++ b/modules/nat_traversal/nat_traversal.c
@@ -820,7 +820,7 @@ test_source_address(struct sip_msg *msg)
Bool different_ip, different_port;
int via1_port;
- different_ip = received_test(msg);
+ different_ip = received_via_test(msg);
via1_port = (msg->via1->port ? msg->via1->port : SIP_PORT);
different_port = (msg->rcv.src_port != via1_port);