aboutsummaryrefslogtreecommitdiffstats
path: root/channels
diff options
context:
space:
mode:
authormmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b>2009-07-30 14:40:33 +0000
committermmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b>2009-07-30 14:40:33 +0000
commit02bea3bae42a3838064bbf481306bc33eb6c2f54 (patch)
tree52beb1db7b917b6d6b95bb8cce3e09c43bcd22a2 /channels
parentac3720b287fdd70955eed3c91836051121a95265 (diff)
Merged revisions 209516 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk ........ r209516 | mmichelson | 2009-07-30 09:38:21 -0500 (Thu, 30 Jul 2009) | 8 lines 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/branches/1.6.2@209518 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-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 16d67dce9..155a3775e 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -8284,7 +8284,7 @@ static int process_sdp(struct sip_pvt *p, struct sip_request *req, int t38action
p->peercapability = newpeercapability; /* The other sides capability in latest offer */
p->jointnoncodeccapability = newnoncodeccapability; /* DTMF capabilities */
- if (p->jointcapability & AST_FORMAT_T140RED) {
+ if (p->trtp && (p->jointcapability & AST_FORMAT_T140RED)) {
p->red = 1;
rtp_red_init(p->trtp, 300, red_data_pt, 2);
} else {