summaryrefslogtreecommitdiff
path: root/channels/chan_sip.c
diff options
context:
space:
mode:
authorRussell Bryant <russell@russellbryant.com>2006-06-12 21:01:48 +0000
committerRussell Bryant <russell@russellbryant.com>2006-06-12 21:01:48 +0000
commit55ffe394a5de641a8fee68ba751e2c033beda8ce (patch)
treecc9f5e7b3e63e26618c616f2b2047af7edc73454 /channels/chan_sip.c
parenta483f6eafccf7885065d532a70ce6ef3fec206df (diff)
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.) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@33706 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/chan_sip.c')
-rw-r--r--channels/chan_sip.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index de01a0d52..5f600814b 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -3128,9 +3128,9 @@ static int sip_hangup(struct ast_channel *ast)
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