[svn-commits] file: branch 1.4 r184565 - /branches/1.4/channels/chan_sip.c
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Fri Mar 27 08:06:48 CDT 2009
Author: file
Date: Fri Mar 27 08:06:45 2009
New Revision: 184565
URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=184565
Log:
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
Modified:
branches/1.4/channels/chan_sip.c
Modified: branches/1.4/channels/chan_sip.c
URL: http://svn.digium.com/svn-view/asterisk/branches/1.4/channels/chan_sip.c?view=diff&rev=184565&r1=184564&r2=184565
==============================================================================
--- branches/1.4/channels/chan_sip.c (original)
+++ branches/1.4/channels/chan_sip.c Fri Mar 27 08:06:45 2009
@@ -2947,7 +2947,9 @@
ASTOBJ_UNREF(p, sip_destroy_peer);
return res;
}
-
+
+ do_setnat(dialog, ast_test_flag(&dialog->flags[0], SIP_NAT) & SIP_NAT_ROUTE);
+
ast_string_field_set(dialog, tohost, peer);
if (sin) {
More information about the svn-commits
mailing list