fax recieve script?

bcrawford (bcrawford@sympatico.ca)
Wed, 27 Oct 1999 14:50:33 -0400


Howdy,
This _has_ been an interesting thread, but most of it has blown right over head.
(My understanding of C is equivilant to my understanding of women,  I think I
know it,  but I dont)  If it was written in Perl on the other hand......  :)

What I have been trying is to rip all the code out of voice_faxrec in
voice/voice_fax.c
and execv(script, args)  from there.  (I feel guilty destroying all this good
code)
I know that Im probably wrecking the wrong source file / function, and probably
doing the exec() totally wrong.  Once it compiled, it wouldnt run (resawns too
fast for init)... thats how I came to the conclusion i did something wrong :)
Anyways,  if you could suggenst a better place to hack, or a better way to di
this I would appreciate it


An interesting footnote:
1)  I noticed yesterday that when it attempts to recieve a fax after switching
from voice mode, the modem makes data noises (not like the fax noises it makes
when it does accept a fax with answer_mode set to fax)
2)  I also noticed that even if there is NO fax machine on the other end, I still
get "recieved action string FAX" in the logs, but I dont get the "fax calling
tone detected"  So I think the modem assumes a fax call after a period of
silence.

I wonder if disabling data call completely would help?  (I have taken data out of
my answer_mode.)