vgetty not detecting modem as voice modem.
John Turner (xy3@usa.net.net)
Sun, 19 Sep 1999 20:50:30 -0700
Just a quick followup:
in voice/libvoice/detect.c I found this:
#if 0
{ati, "33600", NULL, &Rockwell},
#else
/* This could break Rockwell modems, but is needed for some
* Neuhaus variants (Smarty). We keep it visible for some time in case.
I changed it to "#if 1" just to see what it would do... but I guess that
wasn't right.
I run vgetty from the command line for now. mgetty worked from the command
line, but vgetty can't even answer the phone (I will move it to inittab
whenever I get it working..)
Is it something simple/obvious that I am overlooking? Why doesn't this
work?
--
09/19 20:35:59 yS2 vgetty: experimental test release 0.9.7 / 16Sep99
09/19 20:35:59 yS2 mgetty: experimental test release 1.1.21-Jul24
09/19 20:35:59 yS2 vgetty.c compiled at Sep 19 1999, 20:20:49
09/19 20:35:59 yS2 user id: 0, parent pid: 7384
09/19 20:35:59 yS2 reading configuration data for port 'ttyS2'
09/19 20:35:59 yS2 reading /usr/local/mgetty/mgetty.config...
09/19 20:35:59 yS2 conf lib: read: 'debug 4'
09/19 20:35:59 yS2 conf lib: read: 'fax-id 49 115 xxxxxxxx'
09/19 20:35:59 yS2 conf lib: read: 'speed 38400'
09/19 20:35:59 yS2 conf lib: read: 'switchbd 19200'
09/19 20:35:59 yS2 conf lib: read: 'rings 2'
09/19 20:35:59 yS2 conf lib: read: 'cnd-program /usr/local/mgetty/cid'
09/19 20:35:59 yS2 key: 'speed', type=0, flags=3, data=38400
09/19 20:35:59 yS2 key: 'switchbd', type=0, flags=3, data=19200
09/19 20:35:59 yS2 key: 'direct', type=3, flags=1, data=FALSE
09/19 20:35:59 yS2 key: 'blocking', type=3, flags=1, data=FALSE
09/19 20:35:59 yS2 key: 'port-owner', type=1, flags=1, data=uucp
09/19 20:35:59 yS2 key: 'port-group', type=1, flags=1, data=modem
09/19 20:35:59 yS2 key: 'port-mode', type=0, flags=1, data=432
09/19 20:35:59 yS2 key: 'toggle-dtr', type=3, flags=1, data=TRUE
09/19 20:35:59 yS2 key: 'toggle-dtr-waittime', type=0, flags=1, data=500
09/19 20:35:59 yS2 key: 'need-dsr', type=3, flags=1, data=FALSE
09/19 20:35:59 yS2 key: 'data-only', type=3, flags=1, data=FALSE
09/19 20:35:59 yS2 key: 'fax-only', type=3, flags=1, data=FALSE
09/19 20:35:59 yS2 key: 'modem-type', type=1, flags=1, data=cls2
09/19 20:35:59 yS2 key: 'modem-quirks', type=0, flags=0, data=(empty)
09/19 20:35:59 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 20:35:59 yS2 key: 'post-init-chat', type=2, flags=0, data=(empty)
09/19 20:35:59 yS2 key: 'data-flow', type=4, flags=1, data=1
09/19 20:35:59 yS2 key: 'fax-send-flow', type=4, flags=1, data=6
09/19 20:35:59 yS2 key: 'fax-rec-flow', type=4, flags=1, data=6
09/19 20:35:59 yS2 key: 'modem-check-time', type=0, flags=1, data=3600
09/19 20:35:59 yS2 key: 'rings', type=0, flags=3, data=2
09/19 20:35:59 yS2 key: 'msn-list', type=2, flags=0, data=(empty)
09/19 20:35:59 yS2 key: 'get-cnd-chat', type=2, flags=0, data=(empty)
09/19 20:35:59 yS2 key: 'cnd-program', type=1, flags=3,
data=/usr/local/mgetty/cid
09/19 20:35:59 yS2 key: 'answer-chat', type=2, flags=1, data= ATA CONNECT
\c
09/19 20:35:59 yS2 key: 'answer-chat-timeout', type=0, flags=1, data=80
09/19 20:35:59 yS2 key: 'autobauding', type=3, flags=1, data=FALSE
09/19 20:35:59 yS2 key: 'ringback', type=3, flags=1, data=FALSE
09/19 20:35:59 yS2 key: 'ringback-time', type=0, flags=1, data=30
09/19 20:35:59 yS2 key: 'ignore-carrier', type=3, flags=1, data=FALSE
09/19 20:35:59 yS2 key: 'issue-file', type=1, flags=1, data=/etc/issue
09/19 20:35:59 yS2 key: 'prompt-waittime', type=0, flags=1, data=500
09/19 20:35:59 yS2 key: 'login-prompt', type=1, flags=1, data=@!login:
09/19 20:35:59 yS2 key: 'login-time', type=0, flags=1, data=240
09/19 20:35:59 yS2 key: 'fido-send-emsi', type=3, flags=1, data=TRUE
09/19 20:35:59 yS2 key: 'login-conf-file', type=1, flags=1,
data=login.config
09/19 20:35:59 yS2 key: 'fax-id', type=1, flags=3, data=49 115 xxxxxxxx
09/19 20:35:59 yS2 key: 'fax-min-speed', type=0, flags=1, data=0
09/19 20:35:59 yS2 key: 'fax-max-speed', type=0, flags=1, data=14400
09/19 20:35:59 yS2 key: 'fax-server-file', type=1, flags=0, data=(empty)
09/19 20:35:59 yS2 key: 'diskspace', type=0, flags=1, data=1024
09/19 20:35:59 yS2 key: 'notify', type=1, flags=1, data=faxadmin
09/19 20:35:59 yS2 key: 'fax-owner', type=1, flags=1, data=uucp
09/19 20:35:59 yS2 key: 'fax-group', type=1, flags=0, data=(empty)
09/19 20:35:59 yS2 key: 'fax-mode', type=0, flags=1, data=432
09/19 20:35:59 yS2 key: 'debug', type=0, flags=2, data=9
09/19 20:35:59 yS2 key: 'statistics-chat', type=2, flags=0, data=(empty)
09/19 20:35:59 yS2 key: 'statistics-file', type=1, flags=0, data=(empty)
09/19 20:35:59 yS2 key: 'gettydefs', type=1, flags=1, data=n
09/19 20:35:59 yS2 key: 'term', type=1, flags=0, data=(empty)
09/19 20:35:59 yS2 reading generic configuration from config file
/usr/local/mgetty/voice.conf
09/19 20:35:59 yS2 reading /usr/local/mgetty/voice.conf...
09/19 20:35:59 yS2 conf lib: read: 'part generic'
09/19 20:35:59 yS2 section: part generic, **found**
09/19 20:35:59 yS2 conf lib: read: 'voice_log_level 4'
09/19 20:35:59 yS2 conf lib: read: 'voice_dir /var/spool/voice'
09/19 20:35:59 yS2 conf lib: read: 'phone_owner root'
09/19 20:35:59 yS2 conf lib: read: 'phone_group phone'
09/19 20:35:59 yS2 conf lib: read: 'phone_mode 0660'
09/19 20:35:59 yS2 conf lib: read: 'message_flag_file .flag'
09/19 20:35:59 yS2 conf lib: read: 'receive_dir incoming'
09/19 20:35:59 yS2 conf lib: read: 'message_dir messages'
09/19 20:35:59 yS2 conf lib: read: 'message_list Index'
09/19 20:35:59 yS2 conf lib: read: 'backup_message standard.rmd'
09/19 20:35:59 yS2 conf lib: read: 'port_speed 38400'
09/19 20:35:59 yS2 conf lib: read: 'voice_shell /bin/sh'
09/19 20:35:59 yS2 conf lib: read: 'port_timeout 10'
09/19 20:35:59 yS2 conf lib: read: 'dial_timeout 90'
09/19 20:35:59 yS2 conf lib: read: 'command_delay 100'
09/19 20:35:59 yS2 conf lib: read: 'dtmf_len 30'
09/19 20:35:59 yS2 conf lib: read: 'dtmf_threshold 40'
09/19 20:35:59 yS2 conf lib: read: 'dtmf_wait 7'
09/19 20:35:59 yS2 conf lib: read: 'ignore_fax_dle false'
09/19 20:35:59 yS2 conf lib: read: 'raw_data false'
09/19 20:35:59 yS2 conf lib: read: 'rec_compression 0'
09/19 20:35:59 yS2 conf lib: read: 'rec_speed 0'
09/19 20:35:59 yS2 conf lib: read: 'rec_silence_len 70'
09/19 20:35:59 yS2 conf lib: read: 'rec_silence_threshold 40'
09/19 20:35:59 yS2 conf lib: read: 'rec_remove_silence false'
09/19 20:35:59 yS2 conf lib: read: 'rec_max_len 300'
09/19 20:35:59 yS2 conf lib: read: 'rec_min_len 0'
09/19 20:35:59 yS2 conf lib: read: 'do_hard_flow true'
09/19 20:35:59 yS2 conf lib: read: 'beep_frequency 933'
09/19 20:35:59 yS2 conf lib: read: 'beep_length 1500'
09/19 20:35:59 yS2 conf lib: read: 'max_tries 3'
09/19 20:35:59 yS2 conf lib: read: 'retry_delay 5'
09/19 20:35:59 yS2 conf lib: read: 'watchdog_timeout 60'
09/19 20:35:59 yS2 conf lib: read: 'receive_gain -1'
09/19 20:35:59 yS2 conf lib: read: 'transmit_gain -1'
09/19 20:35:59 yS2 conf lib: read: 'enable_command_echo false'
09/19 20:35:59 yS2 conf lib: read: 'poll_interval 10'
09/19 20:35:59 yS2 conf lib: read: 'program vgetty'
09/19 20:35:59 yS2 found CT_KEYWORD program vgetty
09/19 20:35:59 yS2 conf lib: read: 'rings /etc/rings'
09/19 20:35:59 yS2 conf lib: read: 'answer_mode voice:fax:data'
09/19 20:35:59 yS2 conf lib: read: 'force_autodetect false'
09/19 20:35:59 yS2 conf lib: read: 'toll_saver_rings 0'
09/19 20:35:59 yS2 conf lib: read: 'rec_always_keep true'
09/19 20:35:59 yS2 conf lib: read: 'button_program '
09/19 20:35:59 yS2 conf lib: read: 'call_program '
09/19 20:35:59 yS2 conf lib: read: 'dtmf_program dtmf.sh'
09/19 20:35:59 yS2 conf lib: read: 'message_program '
09/19 20:35:59 yS2 conf lib: read: 'do_message_light false'
09/19 20:35:59 yS2 conf lib: read: 'program vm'
09/19 20:35:59 yS2 conf lib: read: 'voice_devices ttyS2'
09/19 20:35:59 yS2 conf lib: read: 'dialout_timeout 90'
09/19 20:35:59 yS2 conf lib: read: 'ringback_goes_away 70'
09/19 20:35:59 yS2 conf lib: read: 'ringback_never_came 100'
09/19 20:35:59 yS2 conf lib: read: 'program pvf'
09/19 20:35:59 yS2 key: 'part', type=6, flags=4, data=(ignored)
09/19 20:35:59 yS2 key: 'program', type=6, flags=4, data=(ignored)
09/19 20:35:59 yS2 key: 'port', type=6, flags=4, data=(ignored)
09/19 20:35:59 yS2 key: 'ring_type', type=6, flags=4, data=(ignored)
09/19 20:35:59 yS2 key: 'voice_log_level', type=0, flags=3, data=4
09/19 20:35:59 yS2 key: 'voice_shell', type=1, flags=3, data=/bin/sh
09/19 20:35:59 yS2 key: 'port_speed', type=0, flags=3, data=38400
09/19 20:35:59 yS2 key: 'port_timeout', type=0, flags=3, data=10
09/19 20:35:59 yS2 key: 'dial_timeout', type=0, flags=3, data=90
09/19 20:35:59 yS2 key: 'command_delay', type=0, flags=3, data=100
09/19 20:35:59 yS2 key: 'dtmf_len', type=0, flags=3, data=30
09/19 20:35:59 yS2 key: 'dtmf_threshold', type=0, flags=3, data=40
09/19 20:35:59 yS2 key: 'dtmf_wait', type=0, flags=3, data=7
09/19 20:35:59 yS2 key: 'ignore_fax_dle', type=3, flags=3, data=FALSE
09/19 20:35:59 yS2 key: 'raw_data', type=3, flags=3, data=FALSE
09/19 20:35:59 yS2 key: 'rec_compression', type=0, flags=3, data=0
09/19 20:35:59 yS2 key: 'rec_speed', type=0, flags=3, data=0
09/19 20:35:59 yS2 key: 'rec_silence_len', type=0, flags=3, data=70
09/19 20:35:59 yS2 key: 'rec_silence_threshold', type=0, flags=3, data=40
09/19 20:35:59 yS2 key: 'rec_remove_silence', type=3, flags=3, data=FALSE
09/19 20:35:59 yS2 key: 'rec_max_len', type=0, flags=3, data=300
09/19 20:35:59 yS2 key: 'rec_min_len', type=0, flags=3, data=0
09/19 20:35:59 yS2 key: 'do_hard_flow', type=3, flags=3, data=TRUE
09/19 20:35:59 yS2 key: 'force_autodetect', type=3, flags=1, data=FALSE
09/19 20:35:59 yS2 key: 'watchdog_timeout', type=0, flags=3, data=60
09/19 20:35:59 yS2 key: 'receive_gain', type=0, flags=3, data=-1
09/19 20:35:59 yS2 key: 'transmit_gain', type=0, flags=3, data=-1
09/19 20:35:59 yS2 key: 'enable_command_echo', type=3, flags=3, data=FALSE
09/19 20:35:59 yS2 key: 'poll_interval', type=0, flags=3, data=10
09/19 20:35:59 yS2 key: 'rings', type=1, flags=1, data=3
09/19 20:35:59 yS2 key: 'answer_mode', type=1, flags=1,
data=voice:fax:data
09/19 20:35:59 yS2 key: 'toll_saver_rings', type=0, flags=1, data=0
09/19 20:35:59 yS2 key: 'rec_always_keep', type=3, flags=1, data=TRUE
09/19 20:35:59 yS2 key: 'voice_dir', type=1, flags=3,
data=/var/spool/voice
09/19 20:35:59 yS2 key: 'phone_owner', type=1, flags=3, data=root
09/19 20:35:59 yS2 key: 'phone_group', type=1, flags=3, data=phone
09/19 20:35:59 yS2 key: 'phone_mode', type=0, flags=3, data=432
09/19 20:35:59 yS2 key: 'message_flag_file', type=1, flags=3, data=.flag
09/19 20:35:59 yS2 key: 'receive_dir', type=1, flags=3, data=incoming
09/19 20:35:59 yS2 key: 'message_dir', type=1, flags=3, data=messages
09/19 20:35:59 yS2 key: 'message_list', type=1, flags=3, data=Index
09/19 20:35:59 yS2 key: 'backup_message', type=1, flags=3,
data=standard.rmd
09/19 20:35:59 yS2 key: 'button_program', type=1, flags=1, data=
09/19 20:35:59 yS2 key: 'call_program', type=1, flags=1, data=
09/19 20:35:59 yS2 key: 'dtmf_program', type=1, flags=1, data=dtmf.sh
09/19 20:35:59 yS2 key: 'message_program', type=1, flags=1, data=
09/19 20:35:59 yS2 key: 'do_message_light', type=3, flags=1, data=FALSE
09/19 20:35:59 yS2 key: 'beep_frequency', type=0, flags=3, data=933
09/19 20:35:59 yS2 key: 'beep_length', type=0, flags=3, data=1500
09/19 20:35:59 yS2 key: 'max_tries', type=0, flags=3, data=3
09/19 20:35:59 yS2 key: 'retry_delay', type=0, flags=3, data=5
09/19 20:35:59 yS2 key: 'dialout_timeout', type=0, flags=1, data=90
09/19 20:35:59 yS2 key: 'ringback_goes_away', type=0, flags=1, data=70
09/19 20:35:59 yS2 key: 'ringback_never_came', type=0, flags=1, data=100
09/19 20:35:59 yS2 key: 'voice_devices', type=1, flags=1, data=
09/19 20:35:59 yS2 reading program vgetty configuration from config file
/usr/local/mgetty/voice.conf
09/19 20:35:59 yS2 reading port ttyS2 configuration from config file
/usr/local/mgetty/voice.conf
09/19 20:35:59 yS2 check for lockfiles
09/19 20:35:59 yS2 locking the line
09/19 20:35:59 yS2 lowering DTR to reset Modem
09/19 20:36:00 yS2 send: \dATQ0V1H0[0d]
09/19 20:36:01 yS2 waiting for ``OK'' ** found **
09/19 20:36:01 yS2 send: AT-SDR=7S0=0M0Q0&D3&C1#CID=1[0d]
09/19 20:36:01 yS2 waiting for ``OK'' ** found **
09/19 20:36:01 yS2 mdm_send: 'AT+FCLASS=2' -> OK
09/19 20:36:01 yS2 mdm_send: 'AT+FCLASS=0' -> OK
09/19 20:36:02 yS2 mdm_send: 'AT+FAA=1;+FCR=1' -> OK
09/19 20:36:02 yS2 mdm_send: 'AT+FBOR=0' -> OK
09/19 20:36:02 yS2 mdm_send: 'AT+FLID="49 115 xxxxxxxx"' -> OK
09/19 20:36:02 yS2 mdm_send: 'AT+FDCC=1,5,0,2,0,0,0,0' -> OK
09/19 20:36:02 yS2 detecting voice modem type
09/19 20:36:03 yS2 Rockwell detected
09/19 20:36:04 yS2 initializing ROCKWELL voice modem
09/19 20:36:05 yS2 waiting...
09/19 20:38:07 yS2 wfr: waiting for ``RING''
09/19 20:38:07 yS2 wfr: waiting for ``RING''
09/19 20:38:10 yS2 cannot set controlling tty (ioctl): Operation not
permitted
09/19 20:38:10 yS2 >>> this might be caused because you have run
mgetty/vgetty
09/19 20:38:10 yS2 >>> from the command line. Don't do that, use
/etc/inittab!
09/19 20:38:10 yS2 reading ring_type ring3 configuration from config file
/usr/local/mgetty/voice.conf
09/19 20:38:11 yS2 vgetty: Invalid modem answer
09/19 20:38:20 yS2 vgetty: Invalid modem answer
09/19 20:38:20 yS2 vgetty: Invalid modem answer
09/19 20:38:20 yS2 vgetty: Could not answer the phone. Strange...
- xy3 @ usa . net [remove the second .net