fax recieve script?
Marc SCHAEFER (schaefer@alphanet.ch)
Wed, 27 Oct 1999 11:40:47 +0200
On Wed, 27 Oct 1999, Gert Doering wrote:
> No, that would be AT+FCLASS=2;+FAA=0. The functionality is already
> there, I just forgot how the voice.conf statement is called :-)
To answer ONLY fax ?
The code says:
/* following the specs, we should go to +FCLASS=2;+FAA=1, but
* there is a fair number of Rockwell modems that can't do
* data calls if in that mode - must go to +FCLASS=0;+FAA=1 -
* but yet other modems NEED class 2, so use modem_quirks...
*/
(that's for class2 modems)
and after the code FAA=0 is for data only, which is interesting is that
case DATA is handled by setting to 0, but also case FAX. Maybe it's 2
for fax ?
Now, there is a voice shell command I forgot to receive a fax which
is GETFAX, there is also SENDFAX. It calls libvoice/mode.c
enter_fax_mode(), and this uses
if (voice_command("AT+FAA=0", "OK") != VMA_USER_1)
return(FAIL);
This looks very messy, and this looks like it's bypassing the voice
library which has also a function like this, modem dependant, which is
enter_data_fax_mode() with the answer_mode bitfield parameter.
Maybe we urgently need to merge those two functions in something which
works in all the cases.
What do you think, gert ?