[asterisk-commits] russell: branch 1.8 r403634 - /branches/1.8/channels/chan_sip.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed Dec 11 13:11:16 CST 2013
Author: russell
Date: Wed Dec 11 13:11:10 2013
New Revision: 403634
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=403634
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/
Modified:
branches/1.8/channels/chan_sip.c
Modified: branches/1.8/channels/chan_sip.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/channels/chan_sip.c?view=diff&rev=403634&r1=403633&r2=403634
==============================================================================
--- branches/1.8/channels/chan_sip.c (original)
+++ branches/1.8/channels/chan_sip.c Wed Dec 11 13:11:10 2013
@@ -27990,6 +27990,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