aboutsummaryrefslogtreecommitdiffstats
path: root/channels
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2009-03-27 13:28:43 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2009-03-27 13:28:43 +0000
commitb658865c0dc570d1cca578369321b1c3554fabc6 (patch)
treebdf71e1aa2ff70cae3ee7b2c4d0b898bc2fa3642 /channels
parent6e19c034d1eade6308002aa3ed4e9d53fba8be4f (diff)
Merged revisions 184566 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk ................ r184566 | file | 2009-03-27 10:15:26 -0300 (Fri, 27 Mar 2009) | 16 lines Merged revisions 184565 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r184565 | file | 2009-03-27 10:06:45 -0300 (Fri, 27 Mar 2009) | 9 lines Fix an issue where nat=yes would not always take effect for the RTP session on outgoing calls. If calls were placed using an IP address or hostname the global nat setting was copied over but was not set on the RTP session itself. This caused the RTP stack to not perform symmetric RTP actions. (closes issue #14546) Reported by: acunningham ........ ................ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.2@184612 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r--channels/chan_sip.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 3a5631896..d8651c4d9 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -4875,6 +4875,8 @@ static int create_addr(struct sip_pvt *dialog, const char *opeer, struct sockadd
return res;
}
+ do_setnat(dialog, ast_test_flag(&dialog->flags[0], SIP_NAT) & SIP_NAT_ROUTE);
+
ast_string_field_set(dialog, tohost, peername);
/* Get the outbound proxy information */