From: Matthew Nicholson Date: Fri, 16 Jul 2010 21:18:38 +0000 (+0000) Subject: Default to no udptl error correction so that error correction will be disabled in... X-Git-Tag: 1.4.35-rc1~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1c8d76145b393e309bb833595ab7cac017a098d3;p=thirdparty%2Fasterisk.git Default to no udptl error correction so that error correction will be disabled in the event that the remote end indicates that they do not support the error correction mode we requested. FAX-128 git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@277497 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 7bd669cb02..8facf955e0 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -5515,6 +5515,11 @@ static int process_sdp(struct sip_pvt *p, struct sip_request *req) if (option_debug > 1) ast_log(LOG_DEBUG, "T38 state changed to %d on channel %s\n", p->t38.state, p->owner ? p->owner->name : ""); } + + /* default EC to none, the remote end should respond + * with the EC they want to use */ + p->t38.peercapability &= ~T38FAX_UDP_EC_NONE; + ast_udptl_set_error_correction_scheme(p->udptl, UDPTL_ERROR_CORRECTION_NONE); } else { ast_log(LOG_WARNING, "Unsupported SDP media type in offer: %s\n", m); continue;