• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 355
  • Last Modified:

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
0
racone
Asked:
racone
  • 3
1 Solution
 
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
 
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now