[svn-commits] trunk r33706 - /trunk/channels/chan_sip.c

svn-commits at lists.digium.com svn-commits at lists.digium.com
Mon Jun 12 14:01:49 MST 2006


Author: russell
Date: Mon Jun 12 16:01:48 2006
New Revision: 33706

URL: http://svn.digium.com/view/asterisk?rev=33706&view=rev
Log:
only set the QOS variables if the pvt has an owner so that they are not
created as global variables.  (The fact that these were getting created on
my system probably means that these are in the wrong place so oej, you may
want to look at this again.)

Modified:
    trunk/channels/chan_sip.c

Modified: trunk/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_sip.c?rev=33706&r1=33705&r2=33706&view=diff
==============================================================================
--- trunk/channels/chan_sip.c (original)
+++ trunk/channels/chan_sip.c Mon Jun 12 16:01:48 2006
@@ -3128,9 +3128,9 @@
 					if (p->vrtp)
 						append_history(p, "RTCPvideo", "Quality:%s", videoqos);
 				}
-				if (p->rtp)
+				if (p->rtp && p->owner)
 					pbx_builtin_setvar_helper(p->owner, "RTPAUDIOQOS", audioqos);
-				if (p->vrtp)
+				if (p->vrtp && p->owner)
 					pbx_builtin_setvar_helper(p->owner, "RTPVIDEOQOS", videoqos);
 			} else {
 				/* Note we will need a BYE when this all settles out



More information about the svn-commits mailing list