--- apps/app_fax.c (revision 177785) +++ apps/app_fax.c (working copy) @@ -447,6 +447,18 @@ res = 1; break; } + if (t38control == AST_T38_REQUEST_NEGOTIATE) { + ast_debug(1, "T38 request negotiate detected. Confirm it\n"); + t38control = AST_T38_NEGOTIATED; + ast_indicate_data(s->chan, AST_CONTROL_T38, &t38control, sizeof(t38control)); + if (detect_tone) + { + /* T38 switchover completed from remote*/ + ast_debug(1, "T38 negotiated from remote, finishing audio loop\n"); + res =1; + break; + } + } } ast_frfree(inf);