[asterisk-commits] kpfleming: trunk r148754 - /trunk/channels/chan_sip.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Oct 14 06:31:47 CDT 2008


Author: kpfleming
Date: Tue Oct 14 06:31:40 2008
New Revision: 148754

URL: http://svn.digium.com/view/asterisk?view=rev&rev=148754
Log:
fix some references to the owner of a private structure that may not be present

Modified:
    trunk/channels/chan_sip.c

Modified: trunk/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_sip.c?view=diff&rev=148754&r1=148753&r2=148754
==============================================================================
--- trunk/channels/chan_sip.c (original)
+++ trunk/channels/chan_sip.c Tue Oct 14 06:31:40 2008
@@ -18891,7 +18891,7 @@
 
 	/* Get RTCP quality before end of call */
 	if (p->do_history || p->owner) {
-		struct ast_channel *bridge = ast_bridged_channel(p->owner);
+		struct ast_channel *bridge = p->owner ? ast_bridged_channel(p->owner) : NULL;
 		char *videoqos, *textqos;
 
 		if (p->rtp) {	
@@ -18912,7 +18912,9 @@
 				append_history(p, "RTCPaudioRTT", "Quality:%s", audioqos_rtt);
 			}
 			
-			ast_rtp_set_vars(p->owner, p->rtp);
+			if (p->owner) {
+				ast_rtp_set_vars(p->owner, p->rtp);
+			}
 		}
 
 		if (bridge) {




More information about the asterisk-commits mailing list