aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b>2009-07-30 14:38:21 +0000
committermmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b>2009-07-30 14:38:21 +0000
commit9674bf7689b20ba1fc73d9d934e4659f3dee2328 (patch)
tree15e267dd0b478a455cae631e00481250d1571731
parent50eaf70265c7bc1d1965000aa9916d3529654c5e (diff)
Fix a crash that can result if text codecs are allowed but textsupport is disabled.
(closes issue #15596) Reported by: fabled Patches: sip-red.patch uploaded by fabled (license 448) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@209516 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r--channels/chan_sip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 6b9f39a14..372d8d942 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -8611,7 +8611,7 @@ static int process_sdp(struct sip_pvt *p, struct sip_request *req, int t38action
p->jointcapability = ast_codec_choose(&p->prefs, p->jointcapability, 1);
}
- if (p->jointcapability & AST_FORMAT_T140RED) {
+ if (p->trtp && (p->jointcapability & AST_FORMAT_T140RED)) {
p->red = 1;
ast_rtp_red_init(p->trtp, 300, red_data_pt, 2);
} else {