[asterisk-dev] [Code Review] 4016: chan_sip: Unref outbound proxy structure on dialog(pvt) struct

wdoekes reviewboard at asterisk.org
Mon Sep 22 15:30:52 CDT 2014


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

Review request for Asterisk Developers.


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 423724 

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/20140922/b905daf7/attachment.html>


More information about the asterisk-dev mailing list