mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-06-05 12:41:38 +00:00
Added a warning message to spandsp's fax_decode program when it looks like
the FAX machines are entering a proprietary mode.
This commit is contained in:
parent
099580022d
commit
95b840648f
@ -153,7 +153,9 @@ static void print_frame(const char *io, const uint8_t *fr, int frlen)
|
|||||||
/*endif*/
|
/*endif*/
|
||||||
fprintf(stderr, "%s %s:", io, t30_frametype(fr[2]));
|
fprintf(stderr, "%s %s:", io, t30_frametype(fr[2]));
|
||||||
for (i = 2; i < frlen; i++)
|
for (i = 2; i < frlen; i++)
|
||||||
|
{
|
||||||
fprintf(stderr, " %02x", fr[i]);
|
fprintf(stderr, " %02x", fr[i]);
|
||||||
|
}
|
||||||
/*endfor*/
|
/*endfor*/
|
||||||
fprintf(stderr, "\n");
|
fprintf(stderr, "\n");
|
||||||
type = fr[2] & 0xFE;
|
type = fr[2] & 0xFE;
|
||||||
@ -182,6 +184,11 @@ static void print_frame(const char *io, const uint8_t *fr, int frlen)
|
|||||||
/*endif*/
|
/*endif*/
|
||||||
}
|
}
|
||||||
/*endif*/
|
/*endif*/
|
||||||
|
if (type == T30_NSS || type == T30_NSC)
|
||||||
|
{
|
||||||
|
fprintf(stderr, "WARNING: The FAX machines may be switching into a proprietary mode, which this software cannot decode\n");
|
||||||
|
}
|
||||||
|
/*endif*/
|
||||||
}
|
}
|
||||||
/*endif*/
|
/*endif*/
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user