aboutsummaryrefslogtreecommitdiffstats
path: root/channels
diff options
context:
space:
mode:
authoroej <oej@f38db490-d61c-443f-a65b-d21fe96a405b>2006-10-31 09:49:46 +0000
committeroej <oej@f38db490-d61c-443f-a65b-d21fe96a405b>2006-10-31 09:49:46 +0000
commit3ede0a35aab6e3faa239373941a85bcbe95ff6ee (patch)
tree73917480eefb59fe73bd158fc393aaa3abf71388 /channels
parent2da73b8f63002a433326584fef0d6348b8b73474 (diff)
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
Diffstat (limited to 'channels')
-rw-r--r--channels/chan_sip.c2
1 files changed, 1 insertions, 1 deletions
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));