From 192e2be596221acbd6b85006ebea3981056d2745 Mon Sep 17 00:00:00 2001 From: Mark Michelson Date: Thu, 30 Jul 2009 14:38:21 +0000 Subject: [PATCH] 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: https://origsvn.digium.com/svn/asterisk/trunk@209516 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- channels/chan_sip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 6b9f39a..372d8d9 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 { -- 1.7.9.5