diff options
author | oej <oej@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-07-12 19:09:55 +0000 |
---|---|---|
committer | oej <oej@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-07-12 19:09:55 +0000 |
commit | c0ad9d9ee14ac7b88c649b705969ec90307a54b3 (patch) | |
tree | 11b75267f73510c38ea3c870da2173739af24261 /channels/chan_sip.c | |
parent | ad5003fe842b105670b5a8afc740ec63dcd135f7 (diff) |
Re-enable RTCP quality reports
(Bug found in SIP Master Class, Chicago)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@37474 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_sip.c')
-rw-r--r-- | channels/chan_sip.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 10fa7462f..c21846f25 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -3150,6 +3150,7 @@ static int sip_hangup(struct ast_channel *ast) struct sip_pvt *p = ast->tech_pvt; int needcancel = FALSE; struct ast_flags locflags = {0}; + struct ast_channel oldowner = ast; if (!p) { ast_log(LOG_DEBUG, "Asked to hangup channel that was not connected\n"); @@ -3260,10 +3261,10 @@ static int sip_hangup(struct ast_channel *ast) if (p->vrtp) append_history(p, "RTCPvideo", "Quality:%s", videoqos); } - if (p->rtp && p->owner) - pbx_builtin_setvar_helper(p->owner, "RTPAUDIOQOS", audioqos); - if (p->vrtp && p->owner) - pbx_builtin_setvar_helper(p->owner, "RTPVIDEOQOS", videoqos); + if (p->rtp && oldowner) + pbx_builtin_setvar_helper(oldowner, "RTPAUDIOQOS", audioqos); + if (p->vrtp && oldowner) + pbx_builtin_setvar_helper(oldowner, "RTPVIDEOQOS", videoqos); } else { /* Note we will need a BYE when this all settles out but we can't send one while we have "INVITE" outstanding. */ |