[asterisk-dev] [Code Review] 4016: chan_sip: Unref outbound proxy structure on dialog(pvt) struct
wdoekes
reviewboard at asterisk.org
Tue Sep 23 07:18:12 CDT 2014
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/4016/
-----------------------------------------------------------
(Updated Sept. 23, 2014, 12:18 p.m.)
Review request for Asterisk Developers.
Changes
-------
Thanks Josh. Updated as suggested.
Bugs: ASTERISK-24063
https://issues.asterisk.org/jira/browse/ASTERISK-24063
Repository: Asterisk
Description
-------
In ASTERISK-24063 Damian Ivereigh wants to add outboundproxy support
to OPTIONS qualify requests.
The addition clearly shows that dialog-set proxies were not unreffed,
creating a (very slow) memory leak if proxies are frequently changed.
This should fix things.
Diffs (updated)
-----
/branches/1.8/channels/chan_sip.c 423782
Diff: https://reviewboard.asterisk.org/r/4016/diff/
Testing
-------
Tested with the patch from:
https://reviewboard.asterisk.org/r/3948/
because that patch makes sure a proxy is reffed for every OPTIONS.
But without that patch, the problem applies to most other dialog
creation as well (calling, mwi, ...).
sip.conf:
[general]
[whoever]
type=peer
host=127.0.0.1
port=5062
qualify=yes
outboundproxy=127.0.0.1:5065
Without this patch, 'memory atexit list' listed proxy_from_config(),
with this patch, the atexit list was free of any chan_sip related stuff.
Thanks,
wdoekes
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20140923/9f2d2517/attachment.html>
More information about the asterisk-dev
mailing list