fax recieve script ?

Gert Doering (gert@greenie.muc.de)
Fri, 29 Oct 1999 22:43:44 +0200


Hi,

On Thu, Oct 28, 1999 at 07:27:09PM -0400, Dmitry Pogosyan wrote:
> Unfortunately, Gert - THIS PATCH IS IN THE WRONG PLACE !
> Namely, with this patch if I have incoming fax reception fails, while
> incoming data works fine.

Hmmm.  This could be a plain-standard-Rockwell gotcha (there are a *lot*
problems with adaptive answering on these).

And there seems to be a lot misconception about these commands, so let me
explain those again, and if you're still sure that vgetty does it wrongly,
we'll fix it.  (I'm not talking about class 2.0 - 2.0 is sane, and works).

Basically, it's meant that way:

 - AT+FCLASS=0 means "modem is in data mode".

 - AT+FCLASS=2 means "modem is in fax mode", which can be fax-only or
               fax/data, according to +FAA:

     AT+FAA=1 means "adaptive answering".  An incoming call may be
	      fax OR data, and is answered accordingly.

     AT+FAA=0 means "adaptive answering OFF" -> fax ONLY.

Now, it's not really clear what the meaning of "+FAA=<x>" is for
+FCLASS=0 mode.

  - ZyXEL and many others make no difference in answering calls 
    between +FCLASS=0 and +FCLASS=2 *if* +FAA=1 is set -> in both
    cases, the modem will answer fax AND data calls properly.
    If +FAA=0 and +FCLASS=0, the modem is in "data only" mode.

  - Quite a number of Rockwell based modems work much better in 
    recognizing fax and data calls when in "+FCLASS=0;+FAA=1" mode
    as when in "+FCLASS=2;+FAA=1" mode.  Heaven knows why.  So that's
    the default mode for class 2 modems.

  - There are a *few* modems that interpret "+FCLASS=0;+FAA=1" as
    "+FCLASS=0 -> data, so we'll do DATA ONLY", regardless of +FAA=1.  
    For those, we have modem-quirks 0x01, meaning "use +FCLASS=2;+FAA=1"
    to make sure we get "fax *and* data mode".

And then, there are some modems that just can't do +FAA=1 properly - if in
+FCLASS=2 mode, they will do "fax only", and in +FCLASS=0 mode, they will
do "data only".  For those modems, fax and data will only work if the
modem can detect the calling tones properly when in voice mode, and report
the correct <DLE> code back... otherwise, you're SOL.

[..]
> The reason for this is following (at least with my modem):
> When incoming call is data, the answer mode (in answer.c) happens
> to be ANSWER_DATA | ANSWER_FAX and autocelection is required.
> For Rockwell means you need to force it to be in +FCLASS=0 state.
> 
> However when fax is incoming, I checked that when you reach the
> answer.c, the answer mode is ANSWER_FAX only. Gert's patch however,
> is before any branching depending on answer mode. It puts modem
> in data mode, process the goes into ANSWER_FAX and fails.

Hmmm.  I think Marc has reworked this lately.  Which version are you
using?

(There was a bug in my very first patch, but I'm sure I've seen a
corrected version, which should have gone in 1.1.21).

[..]
> I did it right away (already some time ago) as I got my 1.1.21
> and my Rockwell is happy now.

So how does your 1.1.21 compare to "mainstream 1.1.21" and to Marc's
latest patch?

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