]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-3213 another update
authorAnthony Minessale <anthm@freeswitch.org>
Tue, 19 Apr 2011 19:03:29 +0000 (14:03 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Tue, 19 Apr 2011 19:03:46 +0000 (14:03 -0500)
src/mod/applications/mod_spandsp/mod_spandsp_fax.c

index 8dfdd07272d206bc95f7db8cbc3ceb7b0072bd0b..1d260f30981e8797e0ee149f4566fa4810d12817 100644 (file)
@@ -459,6 +459,15 @@ static int t38_tx_packet_handler(t38_core_state_t *s, void *user_data, const uin
     } else {
         switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_ERROR, "INVALID PACKETLEN: %d PASSED: %d:%d\n", r, len, count);
     }
+    
+    if (r < 0) {
+        t30_state_t *t30;
+        switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_ERROR, "TERMINATING T30 STATE\n");
+        if (pvt->t38_state && (t30 = t38_terminal_get_t30_state(pvt->t38_state))) {
+            t30_terminate(t30);
+        }
+    }
+
 
     return r;
 }