[asterisk-dev] [Code Review] 3065: Reset peer outboundproxy on sip.conf reload

Russell Bryant reviewboard at asterisk.org
Wed Dec 11 12:16:22 CST 2013


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/3065/
-----------------------------------------------------------

Review request for Asterisk Developers.


Bugs: ASTERISK-19454
    https://issues.asterisk.org/jira/browse/ASTERISK-19454


Repository: Asterisk


Description
-------

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().

Note that the fix is the same for 1.8, 11, 12, and trunk branches.


Diffs
-----

  /branches/1.8/channels/chan_sip.c 403633 

Diff: https://reviewboard.asterisk.org/r/3065/diff/


Testing
-------

1) Created a peer with outboundproxy set, observed with 'sip show peer foo'
2) removed outboundproxy from the config
3) executed *CLI> sip reload
4) Repeat step 1, observe outboundproxy no longer set when the patch is applied

I also verified that step 4 fails without the patch


Thanks,

Russell Bryant

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20131211/d39b4682/attachment.html>


More information about the asterisk-dev mailing list