fax recieve script?

Gert Doering (gert@greenie.muc.de)
Wed, 27 Oct 1999 11:56:34 +0200


Hi,

On Wed, Oct 27, 1999 at 11:40:47AM +0200, Marc SCHAEFER 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 ?

+FAA=0 means "answer only what's set with +FCLASS=x, don't try guessing".

> 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...
>            */

Both of it is for +FAA=1.

> (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 ?

No, +FCLASS=0 is data, +FAA=0 means "no adaptive answer", and
+FCLASS=2;+FAA=0 means "fax only".

> 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 ?

Sounds like it.

gert

-- 
USENET is *not* the non-clickable part of WWW!
                                                           //www.muc.de/~gert/
Gert Doering - Munich, Germany                             gert@greenie.muc.de
fax: +49-89-35655025                        gert.doering@physik.tu-muenchen.de