dect
/
asterisk
Archived
13
0
Fork 0

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: http://svn.digium.com/svn/asterisk/trunk@33706 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
russell 2006-06-12 21:01:48 +00:00
parent 3ddc56aaeb
commit 9e51f68551
1 changed files with 2 additions and 2 deletions

View File

@ -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