[asterisk-commits] russell: branch 11 r403635 - in /branches/11: ./ channels/chan_sip.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed Dec 11 13:14:56 CST 2013
Author: russell
Date: Wed Dec 11 13:14:52 2013
New Revision: 403635
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=403635
Log:
Reset peer outboundproxy on sip.conf reload
If you set a peer's outboundproxy and then removed it from the config,
this would not get picked up in a config reload. This patch fixes that
by resetting it in set_peer_defaults().
Closes ASTERISK-19454
Review: https://reviewboard.asterisk.org/r/3065/
........
Merged revisions 403634 from http://svn.asterisk.org/svn/asterisk/branches/1.8
Modified:
branches/11/ (props changed)
branches/11/channels/chan_sip.c
Propchange: branches/11/
------------------------------------------------------------------------------
Binary property 'branch-1.8-merged' - no diff available.
Modified: branches/11/channels/chan_sip.c
URL: http://svnview.digium.com/svn/asterisk/branches/11/channels/chan_sip.c?view=diff&rev=403635&r1=403634&r2=403635
==============================================================================
--- branches/11/channels/chan_sip.c (original)
+++ branches/11/channels/chan_sip.c Wed Dec 11 13:14:52 2013
@@ -30416,6 +30416,10 @@
peer->disallowed_methods = sip_cfg.disallowed_methods;
peer->transports = default_transports;
peer->default_outbound_transport = default_primary_transport;
+ if (peer->outboundproxy) {
+ ao2_ref(peer->outboundproxy, -1);
+ peer->outboundproxy = NULL;
+ }
}
/*! \brief Create temporary peer (used in autocreatepeer mode) */
More information about the asterisk-commits
mailing list