fax recieve script?

Gert Doering (gert@greenie.muc.de)
Tue, 26 Oct 1999 21:31:41 +0200


Hi,

On Tue, Oct 26, 1999 at 02:02:20PM -0400, bcrawford wrote:
> I am curious about invoking a shell script to recieve a fax because that would
> allow me to experiment a bit more, without having to recompile alot.   

Now I understand what you're thinking :-)

There is not really an hook for that, but one could add one (just hack it
in, quick and dirty...)

> I think
> that if I could /completely/  reset the modem after detecting a fax calling tone,
> and then start something to recieve the fax without having to go through voice
> mode first,  I could recieve a fax properly.

I'm afraid that wouldn't help - modem reset usually makes it hang up the
phone line, and thus drop the call.

> Here is copy of one call,  loglevel 9.
[..]
> 10/05 23:49:29 dem    Rockwell: <DLE> <c>
> 10/05 23:49:29 dem    vgetty: queued event FAX_CALLING_TONE at position

Incoming fax call properly recognized.  Good.

> 10/05 23:49:29 dem    vgetty: trying data and fax connection
> 10/05 23:49:29 dem   voice command: 'AT#CLS=0' -> 'OK'
> 10/05 23:49:29 dem    vgetty: AT#CLS=0
> 10/05 23:49:29 dem    Rockwell: AT#CLS=0
> 10/05 23:49:30 dem    Rockwell: OK

I *think* there's a command somewhere to force vgetty to not try "data and
fax", but go for "fax only" if a fax call is detected.  Marc, do you
remember what voice.conf setting this was?

[..]
> 10/05 23:49:30 dem   got: ATA[0d]
> 10/05 23:49:30 dem    CND: OKATA[0a][0d][0a]FAX
> 10/05 23:49:57 dem  found action string: ``FAX''

It *does* properly go to fax mode, though...

> 10/05 23:49:57 dem  start fax receiver...
> 10/05 23:49:57 dem   fax receiver: entry
> 10/05 23:49:57 dem   tss: set speed to 19200 (016)
> 10/05 23:49:57 dem  fax_wait_for(OK)
> 10/05 23:49:57 dem    got:[0a][0d][0a]

... and then it hangs.

> ------> Everythind stops here, calling fax hangs up,  and then we get:
> 
> b'b[e1][b4][c4][ff]bcb
>    ^^^^this stuff shows up _after_  the calling fax hangs up. Modem
> stays off-hook for +-60 seconds then hangs up.

Hmmm.  Now this is really bad.  Usually, this "garbage" shows up right
after the "fax_wait_for()", and means "wrong baud rate".  If it shows 
up a lot later (which one can't see from the log, so sorry for my mis-
speculations on this), it's a different problem - "modem confused".

We should try forcing fax only mode...

Ah: try "force_autodetect false" (in voice.conf).

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