Zyxel Omni 288 distinctive ring problem?
"Robert J. Brown" (rj@eli.wariat.org)
Wed, 2 Apr 1997 15:13:11 -0600
I am using a Zyxel Omni 288 S under Linux (Slackware distribution,
2.0.29 kernel, P-200 64MB RAM, 512 KB cache) and the phone line is
provisioned with caller-ID and 3 distinct ring patterns. It is my
desire to have RING answer for voice mail, RING 2 for fax, and RING 4
for dial-in data calls including login and auto-PPP. I just ftp-ed
the latest modem firmware from Zyxel about 2 weeks ago and flashed it
into the modem. Before that, I couldn't even get voice to record at
all, but now vm both records and plays. :-)
I seem to be having initialization problems, since the caller-ID does
not always work, and I get error messages in the log file about "no
class 2.0 fax available". :-(
Here is the log file (a single call that is typical of this problem)
followed by the voice.conf file:
--
03/30 02:28:25 yS1 vgetty: experimental test release 0.7.1 / 20Feb97
03/30 02:28:25 yS1 mgetty: experimental test release 1.1.2-Feb20
03/30 02:28:25 yS1 reading generic configuration from config file /usr/local/etc/mgetty+sendfax/voice.conf
03/30 02:28:26 yS1 reading program vgetty configuration from config file /usr/local/etc/mgetty+sendfax/voice.conf
03/30 02:28:26 yS1 reading port ttyS1 configuration from config file /usr/local/etc/mgetty+sendfax/voice.conf
03/30 02:28:26 yS1 reading /usr/local/etc/mgetty+sendfax/voice.conf...
03/30 02:28:26 yS1 conf lib: read: 'part generic'
03/30 02:28:26 yS1 found CT_KEYWORD part generic
03/30 02:28:26 yS1 conf lib: read: 'voice_log_level 5'
03/30 02:28:26 yS1 conf lib: read: 'voice_dir /var/spool/voice'
03/30 02:28:26 yS1 conf lib: read: 'message_flag_file .flag'
03/30 02:28:26 yS1 conf lib: read: 'receive_dir incoming'
03/30 02:28:26 yS1 conf lib: read: 'message_dir messages'
03/30 02:28:26 yS1 conf lib: read: 'message_list Index'
03/30 02:28:26 yS1 conf lib: read: 'backup_message standard.rmd'
03/30 02:28:26 yS1 conf lib: read: 'port_speed 115200'
03/30 02:28:26 yS1 conf lib: read: 'voice_shell /bin/sh'
03/30 02:28:26 yS1 conf lib: read: 'port_timeout 5'
03/30 02:28:26 yS1 conf lib: read: 'dial_timeout 90'
03/30 02:28:26 yS1 conf lib: read: 'command_delay 50'
03/30 02:28:26 yS1 conf lib: read: 'dtmf_len 30'
03/30 02:28:26 yS1 conf lib: read: 'dtmf_threshold 40'
03/30 02:28:26 yS1 conf lib: read: 'dtmf_wait 7'
03/30 02:28:26 yS1 conf lib: read: 'ignore_fax_dle false'
03/30 02:28:26 yS1 conf lib: read: 'raw_data false'
03/30 02:28:26 yS1 conf lib: read: 'rec_compression 4'
03/30 02:28:26 yS1 conf lib: read: 'rec_speed 9600'
03/30 02:28:26 yS1 conf lib: read: 'rec_silence_len 70'
03/30 02:28:26 yS1 conf lib: read: 'rec_silence_threshold 20'
03/30 02:28:26 yS1 conf lib: read: 'rec_remove_silence true'
03/30 02:28:26 yS1 conf lib: read: 'rec_max_len 300'
03/30 02:28:26 yS1 conf lib: read: 'rec_min_len 0'
03/30 02:28:26 yS1 conf lib: read: 'do_hard_flow true'
03/30 02:28:26 yS1 conf lib: read: 'beep_frequency 933'
03/30 02:28:26 yS1 conf lib: read: 'beep_length 150'
03/30 02:28:26 yS1 conf lib: read: 'max_tries 3'
03/30 02:28:26 yS1 conf lib: read: 'retry_delay 5'
03/30 02:28:26 yS1 conf lib: read: 'watchdog_timeout 45'
03/30 02:28:26 yS1 conf lib: read: 'program vgetty'
03/30 02:28:26 yS1 conf lib: read: 'speaker_answer_volume 50'
03/30 02:28:26 yS1 conf lib: read: 'rings 4'
03/30 02:28:26 yS1 conf lib: read: 'force_autodetect false'
03/30 02:28:26 yS1 conf lib: read: 'rec_always_keep true'
03/30 02:28:26 yS1 conf lib: read: 'button_program '
03/30 02:28:26 yS1 conf lib: read: 'call_program '
03/30 02:28:26 yS1 conf lib: read: 'dtmf_program dtmf.sh'
03/30 02:28:26 yS1 conf lib: read: 'message_program '
03/30 02:28:26 yS1 conf lib: read: 'do_message_light false'
03/30 02:28:26 yS1 conf lib: read: 'program vm'
03/30 02:28:26 yS1 conf lib: read: 'voice_devices ttyS1'
03/30 02:28:26 yS1 conf lib: read: 'dialout_timeout 90'
03/30 02:28:26 yS1 conf lib: read: 'speaker_play_volume 50'
03/30 02:28:26 yS1 conf lib: read: 'program pvf'
03/30 02:28:26 yS1 conf lib: read: 'ring_type ring'
03/30 02:28:26 yS1 conf lib: read: 'rings 2'
03/30 02:28:26 yS1 conf lib: read: 'port_speed 115200'
03/30 02:28:26 yS1 conf lib: read: 'answer_mode voice'
03/30 02:28:26 yS1 conf lib: read: 'ring_type ring2'
03/30 02:28:26 yS1 conf lib: read: 'rings 1'
03/30 02:28:26 yS1 conf lib: read: 'port_speed 115200'
03/30 02:28:26 yS1 conf lib: read: 'answer_mode fax'
03/30 02:28:26 yS1 conf lib: read: 'ring_type ring4'
03/30 02:28:26 yS1 conf lib: read: 'rings 1'
03/30 02:28:26 yS1 conf lib: read: 'port_speed 115200'
03/30 02:28:26 yS1 conf lib: read: 'answer_mode = data'
03/30 02:28:26 yS1 key: 'part', type=6, flags=4, data=(ignored)
03/30 02:28:26 yS1 key: 'program', type=6, flags=4, data=(ignored)
03/30 02:28:26 yS1 key: 'port', type=6, flags=4, data=(ignored)
03/30 02:28:26 yS1 key: 'ring_type', type=6, flags=4, data=(ignored)
03/30 02:28:26 yS1 key: 'voice_log_level', type=0, flags=3, data=5
03/30 02:28:26 yS1 key: 'voice_devices', type=1, flags=0, data=(empty)
03/30 02:28:26 yS1 key: 'port_speed', type=0, flags=3, data=115200
03/30 02:28:26 yS1 key: 'port_timeout', type=0, flags=3, data=5
03/30 02:28:26 yS1 key: 'dtmf_len', type=0, flags=3, data=30
03/30 02:28:26 yS1 key: 'dtmf_threshold', type=0, flags=3, data=40
03/30 02:28:26 yS1 key: 'dtmf_wait', type=0, flags=3, data=7
03/30 02:28:26 yS1 key: 'rec_compression', type=0, flags=3, data=4
03/30 02:28:26 yS1 key: 'rec_speed', type=0, flags=3, data=9600
03/30 02:28:26 yS1 key: 'rec_silence_len', type=0, flags=3, data=70
03/30 02:28:26 yS1 key: 'rec_silence_threshold', type=0, flags=3, data=20
03/30 02:28:26 yS1 key: 'rec_remove_silence', type=3, flags=3, data=TRUE
03/30 02:28:26 yS1 key: 'rec_max_len', type=0, flags=3, data=300
03/30 02:28:26 yS1 key: 'speaker_answer_volume', type=0, flags=3, data=50
03/30 02:28:26 yS1 key: 'rings', type=1, flags=3, data=4
03/30 02:28:26 yS1 key: 'answer_mode', type=1, flags=1, data=voice:fax:data
03/30 02:28:26 yS1 key: 'toll_saver_rings', type=0, flags=1, data=0
03/30 02:28:26 yS1 key: 'rec_always_keep', type=3, flags=3, data=TRUE
03/30 02:28:26 yS1 key: 'voice_dir', type=1, flags=3, data=/var/spool/voice
03/30 02:28:26 yS1 key: 'message_flag_file', type=1, flags=3, data=.flag
03/30 02:28:26 yS1 key: 'receive_dir', type=1, flags=3, data=incoming
03/30 02:28:26 yS1 key: 'message_dir', type=1, flags=3, data=messages
03/30 02:28:26 yS1 key: 'message_list', type=1, flags=3, data=Index
03/30 02:28:26 yS1 key: 'backup_message', type=1, flags=3, data=standard.rmd
03/30 02:28:26 yS1 key: 'dialout_timeout', type=0, flags=1, data=90
03/30 02:28:26 yS1 key: 'speaker_play_volume', type=0, flags=1, data=100
03/30 02:28:26 yS1 key: 'beep_frequency', type=0, flags=3, data=933
03/30 02:28:26 yS1 key: 'beep_length', type=0, flags=3, data=150
03/30 02:28:26 yS1 key: 'raw_data', type=3, flags=3, data=FALSE
03/30 02:28:26 yS1 key: 'max_tries', type=0, flags=3, data=3
03/30 02:28:26 yS1 key: 'retry_delay', type=0, flags=3, data=5
03/30 02:28:26 yS1 key: 'voice_shell', type=1, flags=3, data=/bin/sh
03/30 02:28:26 yS1 key: 'button_program', type=1, flags=3, data=
03/30 02:28:26 yS1 key: 'call_program', type=1, flags=3, data=
03/30 02:28:26 yS1 key: 'dtmf_program', type=1, flags=3, data=dtmf.sh
03/30 02:28:26 yS1 key: 'message_program', type=1, flags=3, data=
03/30 02:28:26 yS1 key: 'do_message_light', type=3, flags=3, data=FALSE
03/30 02:28:26 yS1 key: 'do_hard_flow', type=3, flags=3, data=TRUE
03/30 02:28:26 yS1 key: 'force_autodetect', type=3, flags=3, data=FALSE
03/30 02:28:26 yS1 key: 'watchdog_timeout', type=0, flags=3, data=45
03/30 02:28:26 yS1 key: 'rec_min_len', type=0, flags=3, data=0
03/30 02:28:26 yS1 key: 'command_delay', type=0, flags=3, data=50
03/30 02:28:26 yS1 key: 'ignore_fax_dle', type=3, flags=3, data=FALSE
03/30 02:28:26 yS1 key: 'dial_timeout', type=0, flags=3, data=90
03/30 02:28:26 yS1 check for lockfiles
03/30 02:28:26 yS1 checklock: no active process has lock, will remove
03/30 02:28:26 yS1 locking the line
03/30 02:28:26 yS1 makelock(ttyS1) called
03/30 02:28:26 yS1 do_makelock: lock='/var/lock/LCK..ttyS1'
03/30 02:28:26 yS1 lock made
03/30 02:28:26 yS1 tio_get_rs232_lines: status: RTS CTS DSR DTR
03/30 02:28:26 yS1 lowering DTR to reset Modem
03/30 02:28:27 yS1 tss: set speed to 38400 (017)
03/30 02:28:27 yS1 tio_set_flow_control( HARD )
03/30 02:28:27 yS1 waiting for line to clear (VTIME), read:
03/30 02:28:27 yS1 send: \d\d\d+++\d\d\dAT&FS2=255S40=124S7=90[0d]
03/30 02:28:30 yS1 waiting for ``OK''
03/30 02:28:30 yS1 got: AT&FS2=255S40=124S7=90[0d][0d][0a]OK ** found **
03/30 02:28:30 yS1 send: ATN3S0=0S13.2=1[0d]
03/30 02:28:30 yS1 waiting for ``OK''
03/30 02:28:30 yS1 got: [0d][0a]ATN3S0=0S13.2=1[0d][0d][0a]OK ** found **
03/30 02:28:30 yS1 send: AT[0d]
03/30 02:28:30 yS1 do_stat: expect 'OK' ** found **
03/30 02:28:30 yS1 send: ATI2[0d]
03/30 02:28:30 yS1 do_stat: expect 'OK' ** found **
03/30 02:28:31 yS1 mdm_send: 'AT+FCLASS=2'
03/30 02:28:31 yS1 mdm_command: string 'AT+FCLASS=2'
******************** HERE IS THE PROBLEM !!!!!
03/30 02:28:51 yS1 Warning: got alarm signal!
03/30 02:28:51 yS1 mdm_read_byte: read returned -1: Interrupted system call
03/30 02:28:51 yS1 mdm_get_line: cannot read byte, return: Interrupted system call -> ERROR
03/30 02:28:51 yS1 no class 2/2.0 faxmodem, no faxing available
03/30 02:28:51 yS1 tss: set speed to 115200 (10002)
03/30 02:28:51 yS1 tio_set_flow_control( HARD )
03/30 02:28:51 yS1 detecting voice modem type
03/30 02:28:51 yS1 voice command: '' -> 'OK|ATE1'
03/30 02:28:51 yS1 modem detected
03/30 02:28:51 yS1 voice command: 'ATI' -> ''
03/30 02:28:51 yS1 ZyXEL 2864 detected
03/30 02:28:51 yS1 initializing ZyXEL 2864 voice modem
03/30 02:28:51 yS1 voice command: 'ATS48.5=1' -> 'OK'
03/30 02:28:51 yS1 voice command: 'ATS40.3=1 S40.4=1 S40.5=1 S40.6=1' -> 'OK'
03/30 02:28:51 yS1 voice command: 'AT+VIT=100' -> 'OK'
03/30 02:28:51 yS1 voice command: 'AT+VDD=6,6' -> 'OK'
03/30 02:28:51 yS1 voice command: 'AT+VSD=6,70' -> 'OK'
03/30 02:28:51 yS1 voice command: 'AT+VGT=200' -> 'OK'
03/30 02:28:51 yS1 voice command: 'AT+VGR=128' -> 'OK'
03/30 02:28:51 yS1 waiting for line to clear (VTIME), read:
03/30 02:28:52 yS1 removing lock file
03/30 02:28:52 yS1 waiting...
03/30 02:33:39 ##### failed dev=ttyS1, pid=8238, got signal 15, exiting
--
---------------- voice.conf ----------------
#
# Sample voice configuration file
# -------------------------------
#
# $Id: voice.conf-dist,v 1.10 1997/01/14 06:49:49 marc Exp $
#
# This file is read twice: First the program configuration is read and
# second the port configuration. This means that generic values at the
# beginning of the file will override program values on the second
# read.
# So if you want to make a generic value program dependant, remove it
# from the generic part of the config file.
#
# Watch out! Some options in this file are not yet implemented or only
# available with some modems.
#
#
# Generic default values
# ----------------------
#
part generic
#
# Possible log levels are:
#
# L_FATAL 0
# L_ERROR 1
# L_AUDIT 2
# L_WARN 3
# L_MESG 4
# L_NOISE 5
# L_JUNK 6
#
voice_log_level 5
#
# Primary voice directory for vgetty.
#
voice_dir /var/spool/voice
#
# Location of the flag file for new incoming messages relative to the
# primary voice directory.
#
message_flag_file .flag
#
# Location where vgetty stores the incoming voice messages relative to
# the primary voice directory.
#
receive_dir incoming
#
# Directory containing the messages for vgetty (greeting, handling the
# answering machine) relative to the primary voice directory.
#
message_dir messages
#
# Name of the file in MESSAGE_DIR that contains the names of
# the greeting message files (one per line, no white space).
#
message_list Index
#
# Filename of a backup greeting message in MESSAGE_DIR (used if
# the random selection fails to find a message).
#
backup_message standard.rmd
#
# Default port speed. The bps rate must be high enough for the
# compression
# mode used. Note that this is an integer, not one of the Bxxxx
# defines.
# This must be set to 38400 for Rockell modems. The default value is
# 38400.
#
port_speed 115200
#
# Default shell to invoke for shell scripts. Make sure this shell
# understands things like funtions, because the scripts rely on this.
# The default is "/bin/sh"
#
voice_shell /bin/sh
#
# Default port timeout in seconds for a read or write operation. The
# default value is 5 seconds.
#
port_timeout 5
#
# Default timeout for a dialout in seconds. The default value is 90
# seconds.
#
dial_timeout 90
#
# Delay before sending a new voice command to the modem in
# milliseconds.
# The default is 50 milliseconds.
#
command_delay 50
#
# Minimum length of detected DTMF tones, in milliseconds. This is
# currently only supported by ZyXel modems with a ROM release of 6.12
# or above. The default is 30 milliseconds.
#
dtmf_len 30
#
# DTMF tone detection threshold in percent (0% to 100%). Increase this
# if the modem erroneously detects DTMF tones, decrease it if it fails
# to
# detect real ones. This is currently only supported by ZyXel modems
# with a ROM release of 6.12 or above. The default is 40%.
#
dtmf_threshold 40
#
# Time to wait for a DTMF tone to arrive when recording or waiting
# for DTMF input in seconds. The default is to wait for 7 seconds.
#
dtmf_wait 7
#
# In Australia the frequency of the busy signal is the same as the
# frequency of the fax calling tone. This causes problems on at least
# some modems. They report a fax calling tone, when there is a busy
# signal in reality. To help those user, vgetty will ignore any fax
# calling tone detected by the modem, when this option is set.
#
# The following companys suffer from this problem:
# - Telstra (formerly Telecom Australia)
# - Optus
# - Austel (regulatory authority)
#
# The default is of course off.
#
ignore_fax_dle false
#
# Output recorded voice samples without header and expect raw voice
# data on input for playback. This feature is turned off by default.
# Don't enable it unless you really know, what you are doing!
#
raw_data false
#
# This is the default compression mode for vgetty for incoming voice
# messages and for the recording option of vm. The mode 0 is a special
# mode, that will automatically choose a sane default value for every
# modem. The default is 0.
#
rec_compression 4
#
# This is the default recording speed for vgetty for incoming voice
# messages and for the recording option of vm. It is the number of
# samples
# per second. The speed 0 is a special speed, that will automatically
# choose a sane default value for every modem. The default is 0.
#
rec_speed 9600
#
# Silence detection length in 0.1 seconds. If the modem detects
# silence
# for this time, it sends a silence detect to the host. Default is
# 7 seconds (70 * 0.1 seconds).
#
rec_silence_len 70
#
# Silence detection threshold in percent (0% to 100%). Increase this
# value
# if you have a noisy phone line and the silence detection doesn't
# work
# reliably. The default is 40%.
#
rec_silence_threshold 20
#
# If REC_REMOVE_SILENCE is enabled, the trailing silence of an
# incoming
# voice message as detected by the modem will be deleted. This might
# cause you to miss parts of a message if the silence threshold is
# high and the caller is talking very quietly. To be on the safe side,
# don't define this. This feature is turned off by default.
#
rec_remove_silence true
#
# Maximum recording length in seconds. Hang up if somebody talks
# longer than this. Default is 5 minutes (300 seconds).
#
rec_max_len 300
#
# Minimum recording length in seconds. Some modems can not detect
# data or fax modems, so we use the recording time, to decide,
# what it is. This feature is by default disabled.
#
rec_min_len 0
#
# Enable hardware flow in record and playback mode if the modem
# supports it. This option is by default on.
#
do_hard_flow true
#
# Frequency for the beep command in Hz. The default is 933Hz.
#
beep_frequency 933
#
# Length for the beep command in 0.01sec. The default is 1.5 seconds
# (150 * 0.01 seconds).
#
beep_length 150
#
# Number of tries to open a voice modem device. The default is 3.
#
max_tries 3
#
# Delay between two tries to open a voice device in seconds. The
# default
# is 5 seconds.
#
retry_delay 5
#
# Default timeout for the voice watchdog. If this timer expires, the
# running program will be terminated. The default is 30 seconds.
#
watchdog_timeout 45
#
# Program specific initializations
# --------------------------------
#
#
# Default values for vgetty
# -------------------------
#
program vgetty
#
# Volume of the internal speaker in percent when answering the phone
# (0% to 100%). 0% is off, 100% is maximum. The default is 100%.
#
speaker_answer_volume 30
#
# Default number of rings to wait before picking up the phone.
#
# Instead of a number, you can also give a file name, that contains
# a single number with the desired number of rings. Vgetty will
# automatically append the name of the modem device to the file name.
# The file name must be an absolut path starting with a leading "/".
# E.g. "rings /etc/rings" and the modem device is ttyS0, will
# lead to the file name "/etc/rings.ttyS0". If this file doesn't
# exist, vgetty will check for a file without the modem device name
# appended. In this example, vgetty would check for /etc/rings.
#
# The default is 3
#
rings 2
#
# Default answer mode when vgetty picks up the phone after incoming
# rings.
#
# Instead of an answer mode, you can also give a file name, that
# contains a single line with the desired answer mode. Vgetty will
# automatically append the name of the modem device to the file name.
# The file name must be an absolut path starting with a leading "/".
# E.g. "answer_mode /etc/answer" and the modem device is ttyS0, will
# lead to the file name "/etc/answer.ttyS0". If this file doesn't
# exist, vgetty will check for a file without the modem device name
# appended. In this example, vgetty would check for /etc/answer.
#
# The default is "voice:fax:data".
#
#answer_mode voice:fax:data
#
# When switching to data or fax mode, always switch to fax mode and
# enable autodetection of data/fax. Some modems report wrong DLE codes
# and so the predetection with DLE codes does not work.
#
force_autodetect false
#
# If vgetty knows that there are new messages (the flag file exists),
# it will turn on the AA lamp on an external modem and enable the toll
# saver - it will answer the phone TOLL_SAVER_RINGS earlier than the
# default. This feature is turned off by default.
#
#toll_saver_rings 2
#
# Should the recorded voice message file be kept even if data, fax or
# DTMF codes were detected? If this is set, vgetty never deletes
# a recording, if it is not set it will delete the recording, if an
# incoming data or fax call is detected or if DTMF codes were
# send. Also
# this should work in nearly every situation, it makes you loose the
# recording, if the caller "plays" with DTMF codes to make the message
# even more beautiful. This feature is enabled by default.
#
rec_always_keep false
#
# The programs defined below get called by vgetty.
#
# Define an empty program name, if you want to disabled one of those
# programs.
#
#
# There are two separate uses for the Data/Voice button on a ZyXEL:
#
# - If a RING was detected recently, answer the phone with the
# answer mode set for this case.
# - Otherwise, call an external program to play back messages
#
# If you don't define button_prgogram, vgetty will always pick up
# the phone if Data/Voice is pressed.
#
# The default value is "".
#
button_program
#
# Program called when the phone is answered, this is instead
# of the normal behaviour. Don't define this unless you want
# to e.g. set up a voice mailbox where the normal answering
# machine behaviour would be inappropiate. The C code is probably
# more stable and uses less resources.
#
# The default value is "".
#
call_program
#
# Program called when a DTMF command in the form '*digits#' is
# received.
# The argument is the string of digits received (without '*' and '#').
# The default value is "dtmf.sh".
#
dtmf_program dtmf.sh
#
# Program called when a voice message has been received.
# The argument is the filename of the recorded message.
# The default value is "".
#
message_program
#
# Should vgetty use the AA LED on some modems to indicate that new
# messages have arrived? This is done by setting the modem register
# S0 to a value of 255. Some modems have a maximum number of rings
# allowed and autoanswer after this, so they can not use this feature.
# This option is by default off.
#
do_message_light false
#
# Default values for vm
# ---------------------
#
program vm
#
# Voice devices that vm can use e.g. "voice_devices
# ttyS0:ttyS1". Since
# I don't know to which ports your modems are connected, the default
# is ""
#
voice_devices ttyS1
#
# Timeout for a dialout operation in seconds. The default is 90
# seconds.
#
dialout_timeout 90
#
# Volume of the internal speaker in percent when it is used to play a
# message with vm (0% to 100%). The default is 100%.
#
speaker_play_volume 50
#
# Default values for the pvf tools
# --------------------------------
#
program pvf
#
# There are currently no defaults.
#
#
# Port specific configuration
# ---------------------------
#
#
# Here you can optionally set some of the previously set values to
# different
# ones for specific ports.
#
# E.g. we have a modem on port ttyS1
#
#port ttyS1
#
# Ring type specific configuration
# --------------------------------
#
#
# Here you can optionally set some of the previously set values to
# different
# ones for specific ring types. The following ring types are possible:
#
# ring - for a normal ring
# ring1 - for distinctive ring number 1
# ring2 - for distinctive ring number 2
# ring3 - for distinctive ring number 3
# ring4 - for distinctive ring number 4
# ring5 - for distinctive ring number 5
# virtual - for a virtual ring (kill -USR1 <mgetty pid>)
# button - if someone pressed the data/voice button on the modem
#
# Note: The current mgetty implementation maps the data/voice button
# event to a virtual ring event.
#
# Note: ISDN MSNs will be mapped to distinctive rings in the future.
#
# E.g. we want to answer the modem on a virtual ring with answer
# mode "fax:data".
#
#ring_type virtual
#answer_mode fax:data
#
# Or e.g. we have one modem and want to answer with voice on a normal
# ring and with fax:data on distinctive ring1.
#
# RING = 705-0424 eli voice
ring_type ring
#rings /usr/local/etc/mgetty+sendfax/rings/ring
answer_mode /usr/local/etc/mgetty+sendfax/answer/ring
#answer_mode voice
# RING 2 = 705-3976 eli fax
#ring_type ring2
#rings /usr/local/etc/mgetty+sendfax/rings/ring2
#answer_mode /usr/local/etc/mgetty+sendfax/answer/ring2
#answer_mode fax
# RING 4 = 705-4925 eli data
#ring_type ring4
#rings /usr/local/etc/mgetty+sendfax/rings/ring4
#answer_mode /usr/local/etc/mgetty+sendfax/answer/ring4
#answer_mode data
#ring_type ring1
# rings 1
# answer_mode fax:data
#
# The commands are commented out, because I don't want to set some
# ring
# specific defaults in this sample configuration file. I just want to
# show you how to do it.
#
# Note: Setting the number of rings will have no effect until the
# mgetty
# to vgetty interface is changed.
#
# Note: If you have one modem and distinctive ring, you can simply
# define
# the answer mode directly in this file for the different rings. If
# you
# have more than one modem and you want them to react different on the
# same
# type of ring, you have to define rings and answer_mode as pointers
# to
# files. E.g.
#
# ring_type ring
#
# rings /etc/rings/ring
# answer_mode /etc/answer/ring
#
# ring_type ring1
#
# rings /etc/rings/ring1
# answer_mode /etc/answer/ring1
#
# and so on. Now you can set up a different number of rings and answer
# modes
# by creating the files:
#
# /etc/rings/ring - for the default value
# /etc/rings/ring.ttyS0 - for the value for device ttyS0
# /etc/rings/ring.ttyS1 - for the value for device ttyS1
#
# And the same way you can set the answer modes.
#
--
-------- "And there came a writing to him from Elijah" [2Ch 21:12] --------
Robert Jay Brown III rj@eli.wariat.org http://eli.wariat.org 1 847 705-0424
Elijah Laboratories Inc.; 37 South Greenwood Avenue; Palatine, IL 60067-6328
----- M o d e l i n g t h e M e t h o d s o f t h e M i n d ------
.