[asterisk-commits] wdoekes: branch 11 r423801 - in /branches/11: ./ channels/chan_sip.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Sep 24 03:49:27 CDT 2014


Author: wdoekes
Date: Wed Sep 24 03:49:20 2014
New Revision: 423801

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=423801
Log:
chan_sip: Unref outbound proxy structure on dialog/pvt destruction.

Make sure outbound proxy refs are always unreffed on dialog destruction.

Review: https://reviewboard.asterisk.org/r/4016/
........

Merged revisions 423800 from http://svn.asterisk.org/svn/asterisk/branches/1.8

Modified:
    branches/11/   (props changed)
    branches/11/channels/chan_sip.c

Propchange: branches/11/
------------------------------------------------------------------------------
Binary property 'branch-1.8-merged' - no diff available.

Modified: branches/11/channels/chan_sip.c
URL: http://svnview.digium.com/svn/asterisk/branches/11/channels/chan_sip.c?view=diff&rev=423801&r1=423800&r2=423801
==============================================================================
--- branches/11/channels/chan_sip.c (original)
+++ branches/11/channels/chan_sip.c Wed Sep 24 03:49:20 2014
@@ -4363,7 +4363,7 @@
 	  If obforcing is set, we will keep the outbound proxy during the whole
 	  dialog, regardless of what the SIP rfc says
 	*/
-	if (p->outboundproxy && !p->outboundproxy->force){
+	if (p->outboundproxy && !p->outboundproxy->force) {
 		ref_proxy(p, NULL);
 	}
 
@@ -6381,6 +6381,10 @@
 		}
 		ast_free(p->options);
 		p->options = NULL;
+	}
+
+	if (p->outboundproxy) {
+		ref_proxy(p, NULL);
 	}
 
 	if (p->notify) {




More information about the asterisk-commits mailing list