Discussion:
Incoming Faxes
(too old to reply)
hylafax-user
2009-05-26 21:14:18 UTC
Permalink
Mgetty answers the modem and receives faxes, I receive an e-mail telling
me a fax arrived. Is there a way to configure the package to have it
attach a TIF or PDF representation of the fax to the e-mail?
Gert Doering
2009-05-27 06:22:17 UTC
Permalink
Hi,
Post by hylafax-user
Mgetty answers the modem and receives faxes, I receive an e-mail telling
me a fax arrived. Is there a way to configure the package to have it
attach a TIF or PDF representation of the fax to the e-mail?
Yes. Check the documentation for the FAX_NOTIFY_PROGRAM (new_fax) feature,
and look into the source package for .../samples/new_fax.* example scripts.

gert
--
USENET is *not* the non-clickable part of WWW!
//www.muc.de/~gert/
Gert Doering - Munich, Germany ***@greenie.muc.de
fax: +49-89-35655025 ***@net.informatik.tu-muenchen.de
hylafax-user
2009-05-27 11:18:38 UTC
Permalink
This is a multi-part message in MIME format.

--Boundary_(ID_0ARiuqXdUBHxkhrasqU20g)
Content-type: text/plain; charset=ISO-8859-1; format=flowed
Content-transfer-encoding: 7BIT
Post by Gert Doering
Hi,
Post by hylafax-user
Mgetty answers the modem and receives faxes, I receive an e-mail telling
me a fax arrived. Is there a way to configure the package to have it
attach a TIF or PDF representation of the fax to the e-mail?
Yes. Check the documentation for the FAX_NOTIFY_PROGRAM (new_fax) feature,
and look into the source package for .../samples/new_fax.* example scripts.
gert
Thanks for the reply. I found the .../samples and read the INSTALL and
README files. I placed
new_fax and new_fax.mail into /etc/mgetty+sendfax and restarted mgetty.
A lot of documentation
I found said to configure FAX_NOTIFY_PROGRAM in policy.h but I do not
have that anywhere
on my filesystem. I tried adding a line to my mgetty.config but when I
receive faxes the same
notice comes to FaxMaster. There is a line in the log (level 8) I am
suspicious about,
7:10:43 system() failed: No such file or directory.

A policy.h file sounds like it would be used in compiling a new version
of Mgetty. Since I don't have
policy.h where would I add the FAX_NOTIFY_PROGRAM line?

05/27 07:09:56 yS0 waiting for
``CONNECT''
05/27 07:10:06 yS0 found action string: ``+FCO_''
05/27 07:10:06 yS0 start fax receiver...
05/27 07:10:06 yS0
fax_wait_for(OK)
05/27 07:10:08 yS0 fax_id: '+FTI:" Behringer Corp."'
05/27 07:10:08 yS0 transmission par.: '+FCS:1,5,0,2,0,0,0,0'** found **
05/27 07:10:08 yS0 mdm_send: 'AT+FLO=2' -> OK
05/27 07:10:08 yS0 fax_send: 'AT+FDR'
05/27 07:10:08 yS0 fax_wait_for(CONNECT)** found **
05/27 07:10:13 yS0 fax_get_page_data: receiving
/var/spool/fax/incoming/ffa1d1f84S0-B
ehringer-Corp.01...
05/27 07:10:37 yS0 fax_get_page_data: page end, bytes received: 44311
05/27 07:10:37 yS0
fax_wait_for(OK)
05/27 07:10:37 yS0 page status: +FPS:1,2163,0,0,0** found
**
05/27 07:10:39 yS0 fax_send: 'AT+FDR'
05/27 07:10:39 yS0 fax_wait_for(CONNECT)
05/27 07:10:43 yS0 connection hangup: '+FHS:00'** found **
05/27 07:10:43 ##### fax dev=ttyS0, pid=24162, caller='none', name='',
id='Behringer C
orp.', +FHNG=000, pages=1/0,
time=00:00:47


05/27 07:10:43 yS0 system() failed: No such file or directory
05/27 07:10:45 yS0 mdm_send: 'ATH0' -> OK
--
05/27 07:10:45 yS0 mgetty: experimental test release 1.1.30-Dec16
05/27 07:10:45 yS0 check for lockfiles
05/27 07:10:45 yS0 locking the line
05/27 07:10:45 yS0 lowering DTR to reset Modem
05/27 07:10:46 yS0 send: \dATQ0V1H0[0d]
05/27 07:10:46 yS0 waiting for ``OK'' ** found **
05/27 07:10:47 yS0 send: ATS0=0Q0&D3&C1[0d]
05/27 07:10:47 yS0 waiting for ``OK'' ** found **
05/27 07:10:47 yS0 mdm_send: 'ATI'
05/27 07:10:47 yS0 USR Courier/Sportster 56k detected
05/27 07:10:47 yS0 mdm_send: 'ATI3'
05/27 07:10:47 yS0 additional info: 'U.S. Robotics 56K FAX EXT V5.11.6'
05/27 07:10:47 yS0 mdm_send: 'AT+FCLASS=2.0' -> OK
05/27 07:10:47 yS0 mdm_send: 'AT+FAA=1;+FCR=1' -> OK
05/27 07:10:48 yS0 mdm_send: 'AT+FBO=1' -> OK
05/27 07:10:48 yS0 mdm_send: 'AT+FNR=1,1,1,0' -> OK
05/27 07:10:48 yS0 mdm_send: 'AT+FLI="973 697 4443"' -> OK
05/27 07:10:48 yS0 mdm_send: 'AT+FCC=1,5,0,2,0,0,0,0' -> OK
05/27 07:10:49 yS0 waiting...



--Boundary_(ID_0ARiuqXdUBHxkhrasqU20g)
Content-type: text/html; charset=ISO-8859-1
Content-transfer-encoding: 7BIT

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Gert Doering wrote:
<blockquote cite="mid:***@greenie.muc.de" type="cite">
<pre wrap="">Hi,

On Tue, May 26, 2009 at 05:14:18PM -0400, hylafax-user wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Mgetty answers the modem and receives faxes, I receive an e-mail telling
me a fax arrived. Is there a way to configure the package to have it
attach a TIF or PDF representation of the fax to the e-mail?
</pre>
</blockquote>
<pre wrap=""><!---->
Yes. Check the documentation for the FAX_NOTIFY_PROGRAM (new_fax) feature,
and look into the source package for .../samples/new_fax.* example scripts.

gert
</pre>
</blockquote>
Thanks for the reply.&nbsp; I found the .../samples and read the INSTALL and
README files.&nbsp; I placed <br>
new_fax and new_fax.mail into /etc/mgetty+sendfax and restarted
mgetty.&nbsp; A lot of documentation <br>
I found said to configure FAX_NOTIFY_PROGRAM in policy.h but I do not
have that anywhere<br>
on my filesystem.&nbsp; I tried adding&nbsp; a line to my mgetty.config but when
I receive faxes the same<br>
notice comes to FaxMaster.&nbsp; There is a line in the log (level 8) I am
suspicious about, <br>
7:10:43 system() failed: No such file or directory. <br>
<br>
A policy.h file sounds like it would be used in compiling a new version
of Mgetty.&nbsp; Since I don't have<br>
policy.h where would I add the FAX_NOTIFY_PROGRAM line?<br>
<br>
05/27 07:09:56 yS0&nbsp; waiting for
``CONNECT''&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>
05/27 07:10:06 yS0&nbsp; found action string: ``+FCO_''<br>
05/27 07:10:06 yS0&nbsp; start fax receiver...<br>
05/27 07:10:06 yS0&nbsp;
fax_wait_for(OK)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>
05/27 07:10:08 yS0&nbsp; fax_id: '+FTI:"&nbsp;&nbsp;&nbsp;&nbsp; Behringer Corp."'<br>
05/27 07:10:08 yS0&nbsp; transmission par.: '+FCS:1,5,0,2,0,0,0,0'** found **<br>
05/27 07:10:08 yS0&nbsp; mdm_send: 'AT+FLO=2' -&gt; OK<br>
05/27 07:10:08 yS0&nbsp; fax_send: 'AT+FDR'<br>
05/27 07:10:08 yS0&nbsp; fax_wait_for(CONNECT)** found **<br>
05/27 07:10:13 yS0&nbsp; fax_get_page_data: receiving
/var/spool/fax/incoming/ffa1d1f84S0-B<br>
ehringer-Corp.01...<br>
05/27 07:10:37 yS0&nbsp; fax_get_page_data: page end, bytes received: 44311<br>
05/27 07:10:37 yS0&nbsp;
fax_wait_for(OK)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>
05/27 07:10:37 yS0&nbsp; page status: +FPS:1,2163,0,0,0** found
**&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>
05/27 07:10:39 yS0&nbsp; fax_send: 'AT+FDR'<br>
05/27 07:10:39 yS0&nbsp; fax_wait_for(CONNECT)<br>
05/27 07:10:43 yS0&nbsp; connection hangup: '+FHS:00'** found **<br>
05/27 07:10:43 ##### fax dev=ttyS0, pid=24162, caller='none', name='',
id='Behringer C<br>
orp.', +FHNG=000, pages=1/0,
time=00:00:47&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>
<br>
<br>
05/27 07:10:43 yS0&nbsp; system() failed: No such file or directory<br>
05/27 07:10:45 yS0&nbsp; mdm_send: 'ATH0' -&gt; OK<br>
--<br>
05/27 07:10:45 yS0&nbsp; mgetty: experimental test release 1.1.30-Dec16<br>
05/27 07:10:45 yS0&nbsp; check for lockfiles<br>
05/27 07:10:45 yS0&nbsp; locking the line<br>
05/27 07:10:45 yS0&nbsp; lowering DTR to reset Modem<br>
05/27 07:10:46 yS0&nbsp; send: \dATQ0V1H0[0d]<br>
05/27 07:10:46 yS0&nbsp; waiting for ``OK'' ** found **<br>
05/27 07:10:47 yS0&nbsp; send: ATS0=0Q0&amp;D3&amp;C1[0d]<br>
05/27 07:10:47 yS0&nbsp; waiting for ``OK'' ** found **<br>
05/27 07:10:47 yS0&nbsp; mdm_send: 'ATI'<br>
05/27 07:10:47 yS0&nbsp; USR Courier/Sportster 56k detected<br>
05/27 07:10:47 yS0&nbsp; mdm_send: 'ATI3'<br>
05/27 07:10:47 yS0&nbsp; additional info: 'U.S. Robotics 56K FAX EXT V5.11.6'<br>
05/27 07:10:47 yS0&nbsp; mdm_send: 'AT+FCLASS=2.0' -&gt; OK<br>
05/27 07:10:47 yS0&nbsp; mdm_send: 'AT+FAA=1;+FCR=1' -&gt; OK<br>
05/27 07:10:48 yS0&nbsp; mdm_send: 'AT+FBO=1' -&gt; OK<br>
05/27 07:10:48 yS0&nbsp; mdm_send: 'AT+FNR=1,1,1,0' -&gt; OK<br>
05/27 07:10:48 yS0&nbsp; mdm_send: 'AT+FLI="973 697 4443"' -&gt; OK<br>
05/27 07:10:48 yS0&nbsp; mdm_send: 'AT+FCC=1,5,0,2,0,0,0,0' -&gt; OK<br>
05/27 07:10:49 yS0&nbsp; waiting...<br>
<br>
<br>
</body>
</html>

--Boundary_(ID_0ARiuqXdUBHxkhrasqU20g)--
Gert Doering
2009-05-27 12:06:17 UTC
Permalink
Hi,
Post by hylafax-user
7:10:43 system() failed: No such file or directory.
Increase the log level ("debug 9"). It will tell you what program mgetty
is calling here - read: what was compiled in as FAX_NOTIFY_PROGRAM.
Post by hylafax-user
A policy.h file sounds like it would be used in compiling a new version
of Mgetty. Since I don't have policy.h where would I add the
FAX_NOTIFY_PROGRAM line?
If you have the source bundle, you have a policy.h-dist, and you have
a "README.1st". Guess what this is for :-)

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

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
Loading...