faxspool and fax-id

Paul Sand (paul@pug.aiken.sc.us)
Wed, 19 Feb 1997 09:25:47 -0500


It appears that faxspool ignores the port specific fax-id settings
in sendfax.config.  I have found that faxspool uses the default
FAX_STATION_ID="49 89 xxxxxxxx" if there is not a global fax-id
specified in sendfax.config.  All other aspects of mgetty+sendfax
seem to honor the port specific fax-id.  

The symptom is, the faxheader ends up with "49 89 xxxxxxxx" if there is
not a global fax-id.  The sendfax.log shows that the port specific
fax-id was put into the modem.  The problem seems only to be with
faxspool and the faxheader.

I have included portions of my sendfax.config as configured to get
a proper fax-id in the faxheader.  I also am including the portion 
of faxspool that seems to ignore the port specific fax-id.  I am
not at all good with awk so I can't fix the problem.

I realize the manuals at 
http://www.leo.org/~doering/mgetty/mgetty_25.html#SEC25 state the
following, but faxspool does read sendfax.config.

fax-id [-I] your fax phone 
     Watch out: the faxspool program does not read sendfax' 
     config file, so the fax id it puts on the header
     might not be the same as the one transmitted by sendfax, 
     if you change it only in one place. 
------------------------------

from sendfax.config
# for faxspool to put fax-id in faxheader, fax-id must be outsite port
defs
fax-id 803xxxxxx
port cua0
# ignore carrier for USR Sportster fax modem
ignore-carrier y
fax-id 803xxxxxx,0

from faxspool
# local fax number (will be overriden by "sendfax.config" if set there!)
#
FAX_STATION_ID="49 89 xxxxxxxx"
........
# fax ID (from sendfax.config)
##########
eval ` $AWK '$1=="fax-id" { printf "FAX_STATION_ID=\"%s", $2; \
                   for(i=3;i<=NF;i++) printf " %s", $i; print "\""; }
             $1=="port"   { exit }'
/usr/local/etc/mgetty+sendfax/sendfax.config
 2>/dev/null`

------------------------------------------

Thanks for the attention and a great mgetty+sendfax package.
-- 
Paul Sand <paul.sand@pug.aiken.sc.us>
Aiken, SC USA
Voice: 803-649-4308