diff options
author | Joshua Colp <jcolp@digium.com> | 2009-03-27 13:15:26 +0000 |
---|---|---|
committer | Joshua Colp <jcolp@digium.com> | 2009-03-27 13:15:26 +0000 |
commit | 0580121cee1465e05f388a66dc9aac4865100c38 (patch) | |
tree | 2e2b2164f21aa769b2aa6ec5899f975acb1acbaf /channels | |
parent | 5e80b9d09ae920213a17c23c7006d07b6fcf58e7 (diff) |
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: https://origsvn.digium.com/svn/asterisk/trunk@184566 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels')
-rw-r--r-- | channels/chan_sip.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index bc121b128..c9e63ad32 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -4876,6 +4876,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 */ |