]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Default to no udptl error correction so that error correction will be disabled in...
authorMatthew Nicholson <mnicholson@digium.com>
Fri, 16 Jul 2010 21:18:38 +0000 (21:18 +0000)
committerMatthew Nicholson <mnicholson@digium.com>
Fri, 16 Jul 2010 21:18:38 +0000 (21:18 +0000)
FAX-128

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@277497 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 7bd669cb024bd447a9ef6280175a9c86b76d9d4e..8facf955e0c32d25833bafd2bdd06f3f7af7479e 100644 (file)
@@ -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 : "<none>");
                        }
+
+                       /* 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;