[asterisk-dev] [Code Review] 4016: chan_sip: Unref outbound proxy structure on dialog(pvt) struct
wdoekes
reviewboard at asterisk.org
Wed Sep 24 03:48:30 CDT 2014
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/4016/
-----------------------------------------------------------
(Updated Sept. 24, 2014, 3:48 a.m.)
Status
------
This change has been marked as submitted.
Review request for Asterisk Developers.
Changes
-------
Committed in revision 423800
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
-----
/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/20140924/bbf9417d/attachment.html>
More information about the asterisk-dev
mailing list