]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Step FAX modem type on sending CTC.
authorSteve Underwood <steveu@coppice.org>
Thu, 17 Jul 2014 14:32:17 +0000 (22:32 +0800)
committerSteve Underwood <steveu@coppice.org>
Thu, 17 Jul 2014 14:32:17 +0000 (22:32 +0800)
libs/spandsp/src/t30.c

index 304a0aa5708481251ea03b303d9d7bc84ac299c2..f601ad558343caaaa2fd2f7d7ce060c790fb1c0e 100644 (file)
@@ -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);