From 3ede0a35aab6e3faa239373941a85bcbe95ff6ee Mon Sep 17 00:00:00 2001 From: oej Date: Tue, 31 Oct 2006 09:49:46 +0000 Subject: Another try to fix ;rport NAT traversal support (issue #7473) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@46610 f38db490-d61c-443f-a65b-d21fe96a405b --- channels/chan_sip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'channels') diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 2ec0cb336..4dd1b931e 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -3936,7 +3936,7 @@ static int copy_via_headers(struct sip_pvt *p, struct sip_request *req, struct s if (rport && *(rport+6) == '=') rport = NULL; /* We already have a parameter to rport */ - if (rport && (ast_test_flag(p, SIP_NAT) == SIP_NAT_ALWAYS)) { + if (rport && ((ast_test_flag(p, SIP_NAT) == SIP_NAT_ALWAYS) || (ast_test_flag(p, SIP_NAT) == SIP_NAT_RFC3581))) { /* We need to add received port - rport */ ast_copy_string(tmp, oh, sizeof(tmp)); -- cgit v1.2.3