[asterisk-commits] mmichelson: trunk r209516 - /trunk/channels/chan_sip.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Jul 30 09:38:28 CDT 2009


Author: mmichelson
Date: Thu Jul 30 09:38:21 2009
New Revision: 209516

URL: http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=209516
Log:
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)


Modified:
    trunk/channels/chan_sip.c

Modified: trunk/channels/chan_sip.c
URL: http://svn.asterisk.org/svn-view/asterisk/trunk/channels/chan_sip.c?view=diff&rev=209516&r1=209515&r2=209516
==============================================================================
--- trunk/channels/chan_sip.c (original)
+++ trunk/channels/chan_sip.c Thu Jul 30 09:38:21 2009
@@ -8611,7 +8611,7 @@
 		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 {




More information about the asterisk-commits mailing list