Setup a Linux system with mgetty+sendfax to receive faxes

We use Red Hat Linux 5+.  We currently have a hunt group of a few MultiTech 57.6 fax modems that are currently used for incoming PPP connections for image downloads with FTP.  We use "mgetty+sendfax" and "ppp" for this process, as configured by me.  Anyway, there has been a request to expand upon the role of this setup to also allow the receipt of faxes with these modems.  I would just like to receive the fax files and place the files somewhere (like the home directory).  I want the incoming ppp connections, and the incoming faxes to work together properly and simultaneously.   I am going attach my current configuration files I use for the ppp process.

Thanks!
Rick
inittab
iptables
login.config
mgetty.config
options
pap-secrets
options-ttya10
LVL 1
raconeAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Duncan RoeSoftware DeveloperCommented:
I'm a little perplexed by your statement that your fax modems receive incoming ppp connections.
AFAIK, to receive faxes you really do need an actual serial dial-up connection. mgetty sees special fax AT commands (which you can't enter manually because timing is important) and receives the fax to a file (that bit, at least, is what you want).
I had fax reception with mgetty / sendfax working years ago with regular dial-up, but no longer. I might be able to excavate configurations (if my tape drive still works). Would that be helpful?
0
raconeAuthor Commented:
Sure, I would like to see your configurations.

The modems we have are just a typical high-end MultiTech modem.  You of course just dial-in ad get a Linux log in prompt manually.  For PPP, it is set to switch to the PPP network negotiations process and eventual connection that way.  This is indeed a serial dial-up situation.

Thanks!
Rick
0
Duncan RoeSoftware DeveloperCommented:
Turns out I kept bits of the old system online, so this is usr/local/etc/mgetty+sendfax/mgetty.config
#
# mgetty configuration file
#
# this is a sample configuration file, see mgetty.info for details
#
# comment lines start with a "#", empty lines are ignored


# ----- global section -----
#
# In this section, you put the global defaults, per-port stuff is below


# set the global debug level to "5" (which is quite verbose)
debug 5

# set the local fax station id
fax-id 61 6 2585273
modem-type cls2

# access the modem(s) with 38400 bps
speed 38400

# the /dev/tty-device is owned by uucp.uucp and mode "rw-rw-r--" (664)
port-owner uucp
port-group uucp
port-mode 0664

# incoming faxes are owned by "dunc.users" and mode "rw-r-----" (640)
fax-owner dunc
fax-group users
fax-mode 0640


# ----- port specific section -----
#
# Here you can put things that are valid only for one line, not the others
#

# Zoom V.FX 28.8, connected to ttyS0: don't do fax, less logging
#
#port ttyS0
#  debug 3
#  data-only y

# ZyXEL 2864, connected to ttyS1: maximum debugging, grab statistics
#
#port ttyS1
#  debug 8
#  init-chat "" \d\d\d+++\d\d\dAT&FS2=255 OK ATN3S0=0S13.2=1 OK
#  statistics-chat "" AT OK ATI2 OK
#  statistics-file /tmp/statistics.2864
#  modem-type cls2

# direct connection of a VT100 terminal which doesn't like DTR drops
#
#port ttyS2
#  direct y
#  speed 19200
#  dtr-toggle n

Open in new window

The faxes turned up in some default directory which I can't rember.
The inittab line was d4:456:respawn:/usr/local/sbin/mgetty -s 115200 -n 3 -x 4 ttyS0
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Duncan RoeSoftware DeveloperCommented:
/etc/ppp/options (the ISP no longer exists)
connect '/usr/sbin/chat -V -f /home/dunc/chatfile'
debug
asyncmap 00000000
bsdcomp 15
lock
crtscts
user duncanroe@smartchat.net.au
defaultroute
pap-restart 3
pap-max-authreq 10

Open in new window


/home/dunc/chatfile
ABORT BUSY
ABORT 'NO CARRIER'
ABORT 'DELAY NUMBER WAIT'
ABORT 'NO DIALTONE'
'' AT
OK AT
OK ATZ
TIMEOUT 120
OK \d\dATDT92814700
CONNECT \c
\r \d\d\c
SAY '\r\n'

Open in new window


This ppp stuff is likely not relevant for fax reception however.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux

From novice to tech pro — start learning today.