aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2008-10-14 11:31:40 +0000
committerkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2008-10-14 11:31:40 +0000
commitfa6386a333d02dad8d8f166c28ad29cc26b86620 (patch)
tree33dca8a7c168ecd3474b861bbf320854a8004b54
parent1a25e06e1fff4593be5f6eac633006084e057f5a (diff)
fix some references to the owner of a private structure that may not be present
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@148754 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r--channels/chan_sip.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index d78132388..e383f88e2 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -18891,7 +18891,7 @@ static int handle_request_bye(struct sip_pvt *p, struct sip_request *req)
/* 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 @@ static int handle_request_bye(struct sip_pvt *p, struct sip_request *req)
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) {