vgetty not detecting modem as voice modem.

John Turner (xy3@usa.net.net)
Sun, 19 Sep 1999 19:28:03 -0700


Hello,

I recently tried out vgetty and if it works it might be quite nice, but
it doesn't seem to detect my modem as a voice modem.  I'm just trying to
set up an old box with an old voice modem (Rockwell chipset) (Linux
2.0.35).

mgetty/vgetty are both the latest versions. 1.21 / sep 16.

I played with mgetty for an hour or so, had distinctive ring working (I
think), connected it to my MySQL database via perl to log caller ID, but
then found vgetty.  So, I'm thinking about auto converting all faxes to
.GIF or something, and all incoming voice messages to .WAV, connecting
them to each entry in the MySQL database, spitting out a table in a web
page, and having a web based call center.

1999-09-09 12:33pm - 999-999-9999 - Name Goes here - FAX  (Click here to
view it/print it)
1999-09-09 12:31pm - 888-888-8888 - Whatever - MSG (Click here to listen
to it)

etc, etc. So all workstations around the house can access it (or over
the net when away from home.. internet is always cheaper).  Anyway, if
you have any pointers on why this modem isn't recognized as a voice
modem please let me know.


ATI -> 33600
ATI1 -> 176
ATI2 -> OK
ATI3 -> V1.510V-V34_DP Data/Fax/Voice/VV/CID
ATI4 -> Cardinal, 020-0476, 30-Jul-96
ATI5 -> 022
ATI6 -> RCV288DPi Rev 05BA
ATI7 -> 255

(It is a Cardinal MVP288i [internal])

>From policy.h:

#define MODEM_INIT_STRING "AT-SDR=7S0=0M0Q0&D3&C1#CID=1"

(it must be -SDR, not #SDR which was mentioned in the "Rockwell, eg
Supra" part of the docs for mgetty)

http://www.fcr.com/rockwell.atcom.html  (This page helped me find some
of the commands for Rockwell modems)
http://d.armory.com/~charlie/vm1.html  (this sample C code for rockwell
voice functions helped me figure out the -SDR thing)

-- xy3 @ usa . net  [remove the second .net if autoreplying]

--
09/19 18:55:06 yS2  vgetty: experimental test release 0.9.7 / 16Sep99
09/19 18:55:06 yS2  mgetty: experimental test release 1.1.21-Jul24
09/19 18:55:06 yS2   vgetty.c compiled at Sep 19 1999, 16:35:35
09/19 18:55:06 yS2   user id: 0, parent pid: 7228
09/19 18:55:06 yS2   reading configuration data for port 'ttyS2'
09/19 18:55:06 yS2   reading /usr/local/mgetty/mgetty.config...
09/19 18:55:06 yS2   conf lib: read: 'debug 4'
09/19 18:55:06 yS2   conf lib: read: 'fax-id 49 115 xxxxxxxx'
09/19 18:55:06 yS2   conf lib: read: 'speed 38400'
09/19 18:55:06 yS2   conf lib: read: 'switchbd 19200'
09/19 18:55:06 yS2   conf lib: read: 'rings 2'
09/19 18:55:06 yS2   conf lib: read: 'cnd-program /usr/local/mgetty/cid'

09/19 18:55:06 yS2   key: 'speed', type=0, flags=3, data=38400
09/19 18:55:06 yS2   key: 'switchbd', type=0, flags=3, data=19200
09/19 18:55:06 yS2   key: 'direct', type=3, flags=1, data=FALSE
09/19 18:55:06 yS2   key: 'blocking', type=3, flags=1, data=FALSE
09/19 18:55:06 yS2   key: 'port-owner', type=1, flags=1, data=uucp
09/19 18:55:06 yS2   key: 'port-group', type=1, flags=1, data=modem
09/19 18:55:06 yS2   key: 'port-mode', type=0, flags=1, data=432
09/19 18:55:06 yS2   key: 'toggle-dtr', type=3, flags=1, data=TRUE
09/19 18:55:06 yS2   key: 'toggle-dtr-waittime', type=0, flags=1,
data=500
09/19 18:55:06 yS2   key: 'need-dsr', type=3, flags=1, data=FALSE
09/19 18:55:06 yS2   key: 'data-only', type=3, flags=1, data=FALSE
09/19 18:55:06 yS2   key: 'fax-only', type=3, flags=1, data=FALSE
09/19 18:55:06 yS2   key: 'modem-type', type=1, flags=1, data=cls2
09/19 18:55:06 yS2   key: 'modem-quirks', type=0, flags=0, data=(empty)
09/19 18:55:06 yS2   key: 'init-chat', type=2, flags=1, data= \dATQ0V1H0
OK AT-SDR=7S0=0M0Q0&D3&C1#CID=1 OK
\dATQ0V1H0 OK  yS2   key: 'force-init-chat', type=2, flags=1, data=
\d\d\d\d+++\d\d\d
09/19 18:55:06 yS2   key: 'post-init-chat', type=2, flags=0,
data=(empty)
09/19 18:55:06 yS2   key: 'data-flow', type=4, flags=1, data=1
09/19 18:55:06 yS2   key: 'fax-send-flow', type=4, flags=1, data=6
09/19 18:55:06 yS2   key: 'fax-rec-flow', type=4, flags=1, data=6
09/19 18:55:06 yS2   key: 'modem-check-time', type=0, flags=1, data=3600

09/19 18:55:06 yS2   key: 'rings', type=0, flags=3, data=2
09/19 18:55:06 yS2   key: 'msn-list', type=2, flags=0, data=(empty)
09/19 18:55:06 yS2   key: 'get-cnd-chat', type=2, flags=0, data=(empty)
09/19 18:55:06 yS2   key: 'cnd-program', type=1, flags=3,
data=/usr/local/mgetty/cid
09/19 18:55:06 yS2   key: 'answer-chat', type=2, flags=1, data= ATA
CONNECT \c

09/19 18:55:06 yS2   key: 'answer-chat-timeout', type=0, flags=1,
data=80
09/19 18:55:06 yS2   key: 'autobauding', type=3, flags=1, data=FALSE
09/19 18:55:06 yS2   key: 'ringback', type=3, flags=1, data=FALSE
09/19 18:55:06 yS2   key: 'ringback-time', type=0, flags=1, data=30
09/19 18:55:06 yS2   key: 'ignore-carrier', type=3, flags=1, data=FALSE
09/19 18:55:06 yS2   key: 'issue-file', type=1, flags=1, data=/etc/issue

09/19 18:55:06 yS2   key: 'prompt-waittime', type=0, flags=1, data=500
09/19 18:55:06 yS2   key: 'login-prompt', type=1, flags=1, data=@!login:

09/19 18:55:06 yS2   key: 'login-time', type=0, flags=1, data=240
09/19 18:55:06 yS2   key: 'fido-send-emsi', type=3, flags=1, data=TRUE
09/19 18:55:06 yS2   key: 'login-conf-file', type=1, flags=1,
data=login.config
09/19 18:55:06 yS2   key: 'fax-id', type=1, flags=3, data=49 115
xxxxxxxx
09/19 18:55:06 yS2   key: 'fax-min-speed', type=0, flags=1, data=0
09/19 18:55:06 yS2   key: 'fax-max-speed', type=0, flags=1, data=14400
09/19 18:55:06 yS2   key: 'fax-server-file', type=1, flags=0,
data=(empty)
09/19 18:55:06 yS2   key: 'diskspace', type=0, flags=1, data=1024
09/19 18:55:06 yS2   key: 'notify', type=1, flags=1, data=faxadmin
09/19 18:55:06 yS2   key: 'fax-owner', type=1, flags=1, data=uucp
09/19 18:55:06 yS2   key: 'fax-group', type=1, flags=0, data=(empty)
09/19 18:55:06 yS2   key: 'fax-mode', type=0, flags=1, data=432
09/19 18:55:06 yS2   key: 'debug', type=0, flags=2, data=9
09/19 18:55:06 yS2   key: 'statistics-chat', type=2, flags=0,
data=(empty)
09/19 18:55:06 yS2   key: 'statistics-file', type=1, flags=0,
data=(empty)
09/19 18:55:06 yS2   key: 'gettydefs', type=1, flags=1, data=n
09/19 18:55:06 yS2   key: 'term', type=1, flags=0, data=(empty)
09/19 18:55:06 yS2  reading generic configuration from config file
/usr/local/mgetty/voice.conf
09/19 18:55:06 yS2   reading /usr/local/mgetty/voice.conf...
09/19 18:55:06 yS2   conf lib: read: 'part generic'
09/19 18:55:06 yS2   section: part generic, **found**
09/19 18:55:06 yS2   conf lib: read: 'voice_log_level 4'
09/19 18:55:06 yS2   conf lib: read: 'voice_dir /var/spool/voice'
09/19 18:55:06 yS2   conf lib: read: 'phone_owner root'
09/19 18:55:06 yS2   conf lib: read: 'phone_group phone'
09/19 18:55:06 yS2   conf lib: read: 'phone_mode 0660'
09/19 18:55:06 yS2   conf lib: read: 'message_flag_file .flag'
09/19 18:55:06 yS2   conf lib: read: 'receive_dir incoming'
09/19 18:55:06 yS2   conf lib: read: 'message_dir messages'
09/19 18:55:06 yS2   conf lib: read: 'message_list Index'
09/19 18:55:06 yS2   conf lib: read: 'backup_message standard.rmd'
09/19 18:55:06 yS2   conf lib: read: 'port_speed 38400'
09/19 18:55:06 yS2   conf lib: read: 'voice_shell /bin/sh'
09/19 18:55:06 yS2   conf lib: read: 'port_timeout 10'
09/19 18:55:06 yS2   conf lib: read: 'dial_timeout 90'
09/19 18:55:06 yS2   conf lib: read: 'command_delay 100'
09/19 18:55:06 yS2   conf lib: read: 'dtmf_len 30'
09/19 18:55:06 yS2   conf lib: read: 'dtmf_threshold 40'
09/19 18:55:06 yS2   conf lib: read: 'dtmf_wait 7'
09/19 18:55:06 yS2   conf lib: read: 'ignore_fax_dle false'
09/19 18:55:06 yS2   conf lib: read: 'raw_data false'
09/19 18:55:06 yS2   conf lib: read: 'rec_compression 0'
09/19 18:55:06 yS2   conf lib: read: 'rec_speed 0'
09/19 18:55:06 yS2   conf lib: read: 'rec_silence_len 70'
09/19 18:55:06 yS2   conf lib: read: 'rec_silence_threshold 40'
09/19 18:55:06 yS2   conf lib: read: 'rec_remove_silence false'
09/19 18:55:06 yS2   conf lib: read: 'rec_max_len 300'
09/19 18:55:06 yS2   conf lib: read: 'rec_min_len 0'
09/19 18:55:06 yS2   conf lib: read: 'do_hard_flow true'
09/19 18:55:06 yS2   conf lib: read: 'beep_frequency 933'
09/19 18:55:06 yS2   conf lib: read: 'beep_length 1500'
09/19 18:55:06 yS2   conf lib: read: 'max_tries 3'
09/19 18:55:06 yS2   conf lib: read: 'retry_delay 5'
09/19 18:55:06 yS2   conf lib: read: 'watchdog_timeout 60'
09/19 18:55:06 yS2   conf lib: read: 'receive_gain -1'
09/19 18:55:06 yS2   conf lib: read: 'transmit_gain -1'
09/19 18:55:06 yS2   conf lib: read: 'enable_command_echo false'
09/19 18:55:06 yS2   conf lib: read: 'poll_interval 10'
09/19 18:55:06 yS2   conf lib: read: 'program vgetty'
09/19 18:55:06 yS2   found CT_KEYWORD program vgetty
09/19 18:55:06 yS2   conf lib: read: 'rings /etc/rings'
09/19 18:55:06 yS2   conf lib: read: 'answer_mode voice:fax:data'
09/19 18:55:06 yS2   conf lib: read: 'force_autodetect false'
09/19 18:55:06 yS2   conf lib: read: 'toll_saver_rings 0'
09/19 18:55:06 yS2   conf lib: read: 'rec_always_keep true'
09/19 18:55:06 yS2   conf lib: read: 'button_program '
09/19 18:55:06 yS2   conf lib: read: 'call_program '
09/19 18:55:06 yS2   conf lib: read: 'dtmf_program dtmf.sh'
09/19 18:55:06 yS2   conf lib: read: 'message_program '
09/19 18:55:06 yS2   conf lib: read: 'do_message_light false'
09/19 18:55:06 yS2   conf lib: read: 'program vm'
09/19 18:55:06 yS2   conf lib: read: 'voice_devices ttyS2'
09/19 18:55:06 yS2   conf lib: read: 'dialout_timeout 90'
09/19 18:55:06 yS2   conf lib: read: 'ringback_goes_away 70'
09/19 18:55:06 yS2   conf lib: read: 'ringback_never_came 100'
09/19 18:55:06 yS2   conf lib: read: 'program pvf'
09/19 18:55:06 yS2   key: 'part', type=6, flags=4, data=(ignored)
09/19 18:55:06 yS2   key: 'program', type=6, flags=4, data=(ignored)
09/19 18:55:06 yS2   key: 'port', type=6, flags=4, data=(ignored)
09/19 18:55:06 yS2   key: 'ring_type', type=6, flags=4, data=(ignored)
09/19 18:55:06 yS2   key: 'voice_log_level', type=0, flags=3, data=4
09/19 18:55:06 yS2   key: 'voice_shell', type=1, flags=3, data=/bin/sh
09/19 18:55:06 yS2   key: 'port_speed', type=0, flags=3, data=38400
09/19 18:55:06 yS2   key: 'port_timeout', type=0, flags=3, data=10
09/19 18:55:06 yS2   key: 'dial_timeout', type=0, flags=3, data=90
09/19 18:55:06 yS2   key: 'command_delay', type=0, flags=3, data=100
09/19 18:55:06 yS2   key: 'dtmf_len', type=0, flags=3, data=30
09/19 18:55:06 yS2   key: 'dtmf_threshold', type=0, flags=3, data=40
09/19 18:55:06 yS2   key: 'dtmf_wait', type=0, flags=3, data=7
09/19 18:55:06 yS2   key: 'ignore_fax_dle', type=3, flags=3, data=FALSE
09/19 18:55:06 yS2   key: 'raw_data', type=3, flags=3, data=FALSE
09/19 18:55:06 yS2   key: 'rec_compression', type=0, flags=3, data=0
09/19 18:55:06 yS2   key: 'rec_speed', type=0, flags=3, data=0
09/19 18:55:06 yS2   key: 'rec_silence_len', type=0, flags=3, data=70
09/19 18:55:06 yS2   key: 'rec_silence_threshold', type=0, flags=3,
data=40
09/19 18:55:06 yS2   key: 'rec_remove_silence', type=3, flags=3,
data=FALSE
09/19 18:55:06 yS2   key: 'rec_max_len', type=0, flags=3, data=300
09/19 18:55:06 yS2   key: 'rec_min_len', type=0, flags=3, data=0
09/19 18:55:06 yS2   key: 'do_hard_flow', type=3, flags=3, data=TRUE
09/19 18:55:06 yS2   key: 'force_autodetect', type=3, flags=1,
data=FALSE
09/19 18:55:06 yS2   key: 'watchdog_timeout', type=0, flags=3, data=60
09/19 18:55:06 yS2   key: 'receive_gain', type=0, flags=3, data=-1
09/19 18:55:06 yS2   key: 'transmit_gain', type=0, flags=3, data=-1
09/19 18:55:06 yS2   key: 'enable_command_echo', type=3, flags=3,
data=FALSE
09/19 18:55:06 yS2   key: 'poll_interval', type=0, flags=3, data=10
09/19 18:55:06 yS2   key: 'rings', type=1, flags=1, data=3
09/19 18:55:06 yS2   key: 'answer_mode', type=1, flags=1,
data=voice:fax:data
09/19 18:55:06 yS2   key: 'toll_saver_rings', type=0, flags=1, data=0
09/19 18:55:06 yS2   key: 'rec_always_keep', type=3, flags=1, data=TRUE
09/19 18:55:06 yS2   key: 'voice_dir', type=1, flags=3,
data=/var/spool/voice
09/19 18:55:06 yS2   key: 'phone_owner', type=1, flags=3, data=root
09/19 18:55:06 yS2   key: 'phone_group', type=1, flags=3, data=phone
09/19 18:55:06 yS2   key: 'phone_mode', type=0, flags=3, data=432
09/19 18:55:06 yS2   key: 'message_flag_file', type=1, flags=3,
data=.flag
09/19 18:55:06 yS2   key: 'receive_dir', type=1, flags=3, data=incoming
09/19 18:55:06 yS2   key: 'message_dir', type=1, flags=3, data=messages
09/19 18:55:06 yS2   key: 'message_list', type=1, flags=3, data=Index
09/19 18:55:06 yS2   key: 'backup_message', type=1, flags=3,
data=standard.rmd
09/19 18:55:06 yS2   key: 'button_program', type=1, flags=1, data=
09/19 18:55:06 yS2   key: 'call_program', type=1, flags=1, data=
09/19 18:55:06 yS2   key: 'dtmf_program', type=1, flags=1, data=dtmf.sh
09/19 18:55:06 yS2   key: 'message_program', type=1, flags=1, data=
09/19 18:55:06 yS2   key: 'do_message_light', type=3, flags=1,
data=FALSE
09/19 18:55:06 yS2   key: 'beep_frequency', type=0, flags=3, data=933
09/19 18:55:06 yS2   key: 'beep_length', type=0, flags=3, data=1500
09/19 18:55:06 yS2   key: 'max_tries', type=0, flags=3, data=3
09/19 18:55:06 yS2   key: 'retry_delay', type=0, flags=3, data=5
09/19 18:55:06 yS2   key: 'dialout_timeout', type=0, flags=1, data=90
09/19 18:55:06 yS2   key: 'ringback_goes_away', type=0, flags=1, data=70

09/19 18:55:06 yS2   key: 'ringback_never_came', type=0, flags=1,
data=100
09/19 18:55:06 yS2   key: 'voice_devices', type=1, flags=1, data=
09/19 18:55:06 yS2  reading program vgetty configuration from config
file /usr/local/mgetty/voice.conf
09/19 18:55:06 yS2  reading port ttyS2 configuration from config file
/usr/local/mgetty/voice.conf
09/19 18:55:06 yS2  check for lockfiles
09/19 18:55:06 yS2  locking the line
09/19 18:55:07 yS2  lowering DTR to reset Modem
09/19 18:55:07 yS2  send: \dATQ0V1H0[0d]
09/19 18:55:08 yS2  waiting for ``OK'' ** found **
09/19 18:55:08 yS2  send: AT-SDR=7S0=0M0Q0&D3&C1#CID=1[0d]
09/19 18:55:08 yS2  waiting for ``OK'' ** found **
09/19 18:55:08 yS2  mdm_send: 'AT+FCLASS=2' -> OK
09/19 18:55:08 yS2  mdm_send: 'AT+FCLASS=0' -> OK
09/19 18:55:08 yS2  mdm_send: 'AT+FAA=1;+FCR=1' -> OK
09/19 18:55:08 yS2  mdm_send: 'AT+FBOR=0' -> OK
09/19 18:55:08 yS2  mdm_send: 'AT+FLID="49 115 xxxxxxxx"' -> OK
09/19 18:55:08 yS2  mdm_send: 'AT+FDCC=1,5,0,2,0,0,0,0' -> OK
09/19 18:55:08 yS2  detecting voice modem type
09/19 18:55:10 yS2  no voice modem detected


xy3 @ usa . net  [remove the second .net if autoreplying]