From: Steve Underwood Date: Thu, 17 Jul 2014 14:32:17 +0000 (+0800) Subject: Step FAX modem type on sending CTC. X-Git-Tag: v1.4.8~10^2~100 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=52435978d0187e59af503dd263946c735dd97c3d;p=thirdparty%2Ffreeswitch.git Step FAX modem type on sending CTC. --- diff --git a/libs/spandsp/src/t30.c b/libs/spandsp/src/t30.c index 304a0aa570..f601ad5583 100644 --- a/libs/spandsp/src/t30.c +++ b/libs/spandsp/src/t30.c @@ -3133,8 +3133,9 @@ static void process_rx_ppr(t30_state_t *s, const uint8_t *msg, int len) /* Continue to correct? */ /* Continue only if we have been making progress */ s->ppr_count = 0; - if (s->ecm_progress) + if (s->ecm_progress && fallback_sequence[s->current_fallback + 1].bit_rate) { + s->current_fallback++; s->ecm_progress = 0; queue_phase(s, T30_PHASE_D_TX); set_state(s, T30_STATE_IV_CTC);