aboutsummaryrefslogtreecommitdiffstats
path: root/channels
diff options
context:
space:
mode:
authormnicholson <mnicholson@f38db490-d61c-443f-a65b-d21fe96a405b>2010-07-16 21:18:38 +0000
committermnicholson <mnicholson@f38db490-d61c-443f-a65b-d21fe96a405b>2010-07-16 21:18:38 +0000
commitd627c0ec9e0a97e83fbd8cf2e389b4beb7258db9 (patch)
tree9b5125f95b7359fa506edca6ef42e142652882fc /channels
parentf51274d7b17b1aa91ce5724ae28bf12b574ec4e4 (diff)
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: http://svn.digium.com/svn/asterisk/branches/1.4@277497 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r--channels/chan_sip.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 7bd669cb0..8facf955e 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 : "<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;