vgetty init ...

Alexander Wiedeck (alexander.wiedeck@ku-eichstaett.de)
31 Dec 1998 1919:28:37 GMT


Hi,

I have got a ZyXEL U-1496E (6.10) and want to set up the software to do
the following:
1) provide polling service for callers
2) fax (both sides)
3) answerphone without recording facility

Several things working fine but not all and not together :( So I have many
many questions and I hope somebody could help me :)


When vgetty initializes it reports the following:

------------------------------ snap -----------------------------------
12/31 19:42:18 yS1  initializing ZyXEL 1496 voice modem
12/31 19:42:18 yS1   voice command: 'ATS40.3=1 S40.4=1 S40.5=1 S40.6=1' ->
'OK'
12/31 19:42:18 yS1    vgetty: ATS40.3=1 S40.4=1 S40.5=1 S40.6=1
12/31 19:42:18 yS1    ZyXEL 1496: OK
12/31 19:42:18 yS1   voice command: 'ATS39.6=1 S39.7=0 +VIT=60' -> 'OK'
12/31 19:42:18 yS1    vgetty: ATS39.6=1 S39.7=0 +VIT=60
12/31 19:42:18 yS1    ZyXEL 1496: NO CARRIER
12/31 19:42:18 yS1    ZyXEL 1496:
12/31 19:42:29 yS1  vgetty: timeout while reading character from voice
modem
12/31 19:42:29 yS1  voice init failed, continuing
12/31 19:42:29 yS1   voice command: 'AT+VDH=12 +VDD=6' -> 'OK'
12/31 19:42:29 yS1    vgetty: AT+VDH=12 +VDD=6
12/31 19:42:29 yS1    ZyXEL 1496: NO CARRIER
12/31 19:42:29 yS1    ZyXEL 1496:
12/31 19:42:40 yS1  vgetty: timeout while reading character from voice
modem
12/31 19:42:40 yS1  setting DTMF preferences didn't work
12/31 19:42:40 yS1   voice command: 'AT+VSD=12,70' -> 'OK'
12/31 19:42:40 yS1    vgetty: AT+VSD=12,70
12/31 19:42:40 yS1    ZyXEL 1496: OK
12/31 19:42:40 yS1   voice command: 'AT+VGT=191' -> 'OK'
12/31 19:42:40 yS1    vgetty: AT+VGT=191
12/31 19:42:40 yS1    ZyXEL 1496: ERROR
12/31 19:42:40 yS1  vgetty: Modem returned ERROR
12/31 19:42:40 yS1  setting transmit gain didn't work
12/31 19:42:40 yS1   voice command: 'AT+VGR=191' -> 'OK'
12/31 19:42:40 yS1    vgetty: AT+VGR=191
12/31 19:42:40 yS1    ZyXEL 1496: ERROR
12/31 19:42:40 yS1  vgetty: Modem returned ERROR
12/31 19:42:40 yS1  setting receive gain didn't work
12/31 19:42:40 yS1   voice command: 'AT+VNH=1' -> 'OK'
12/31 19:42:40 yS1    vgetty: AT+VNH=1
12/31 19:42:40 yS1    ZyXEL 1496: OK
12/31 19:42:40 yS1   vgetty: leaving voice mode
12/31 19:42:40 yS1   voice command: 'AT+FCLASS=0' -> 'OK'
12/31 19:42:40 yS1    vgetty: AT+FCLASS=0
12/31 19:42:40 yS1    ZyXEL 1496: OK
12/31 19:42:40 yS1   vgetty: Restoring signal handlers
12/31 19:42:40 yS1    vgetty: checking for message flag file
/var/spool/voice/.flag
12/31 19:42:41 yS1   voice command: 'ATS0=254' -> 'OK'
12/31 19:42:41 yS1    vgetty: ATS0=254
12/31 19:42:41 yS1    ZyXEL 1496: OK
12/31 19:42:41 yS1   waiting for line to clear (VTIME), read:
12/31 19:42:41 yS1   removing lock file
12/31 19:42:41 yS1  waiting...
------------------------------ snap -----------------------------------

I am interested in the 'errors' from:

12/30 23:43:28 yS1    vgetty: ATS39.6=1 S39.7=0 +VIT=60
12/30 23:43:39 yS1    vgetty: AT+VDH=12 +VDD=6
12/30 23:43:50 yS1  setting DTMF preferences didn't work
12/30 23:43:50 yS1  setting transmit gain didn't work
12/30 23:43:50 yS1  setting receive gain didn't work

What does this mean? Do I need that for the mentioned facilities?

Next is that init by this takes more time and if a call reaches while
init vgetty cannot finish init ...


After that init vgetty is waiting for ring it picks up the phone. If the
caller is human everything is ok -- except: How do I tell vgetty to do not
record any second? Setting rec_max_len to 0 did not work.

If the caller is a fax (data caller I tried not yet) problems start:
(BTW answer_mode is set to voice:fax:data)

------------------------------ snap -----------------------------------
12/31 19:43:07 yS1   vgetty: entering voice mode
12/31 19:43:07 yS1   vgetty: Installing signal handlers
12/31 19:43:07 yS1   voice command: 'AT+FCLASS?' -> ''
12/31 19:43:08 yS1    vgetty: AT+FCLASS?
12/31 19:43:08 yS1    ZyXEL 1496: 0
12/31 19:43:08 yS1   voice command: '' -> 'OK'
12/31 19:43:08 yS1    ZyXEL 1496: OK
12/31 19:43:08 yS1   voice command: 'AT+FCLASS=8' -> 'OK'
12/31 19:43:08 yS1    vgetty: AT+FCLASS=8
12/31 19:43:08 yS1    ZyXEL 1496: OK
12/31 19:43:08 yS1   voice command: 'AT+VLS=2' -> 'VCON'
12/31 19:43:08 yS1    vgetty: AT+VLS=2
12/31 19:43:08 yS1    ZyXEL 1496: VCON
12/31 19:43:08 yS1   voice command: 'AT+VLS=2' -> 'VCON'
12/31 19:43:08 yS1    vgetty: AT+VLS=2
12/31 19:43:08 yS1    ZyXEL 1496: VCON
12/31 19:43:08 yS1  playing voice file
/var/spool/voice/messages/standard.rmd
12/31 19:43:08 yS1   vgetty: raw modem data header found
12/31 19:43:08 yS1   vgetty: modem type ZyXEL 1496 found
12/31 19:43:08 yS1   vgetty: compression method 0x0002, speed 9600, bits 2
12/31 19:43:08 yS1   voice command: 'AT+VSM=2' -> 'OK'
12/31 19:43:08 yS1    vgetty: AT+VSM=2
12/31 19:43:08 yS1    ZyXEL 1496: OK
12/31 19:43:08 yS1    vgetty: queued event RESET_WATCHDOG at position 0001
12/31 19:43:08 yS1    vgetty: unqueued event RESET_WATCHDOG at position
0001
12/31 19:43:08 yS1    vgetty: voice_handle_event got event RESET_WATCHDOG
with data <d>
12/31 19:43:08 yS1   voice command: 'AT+FLO=2' -> 'OK'
12/31 19:43:09 yS1    vgetty: AT+FLO=2
12/31 19:43:09 yS1    ZyXEL 1496: OK
12/31 19:43:09 yS1   tio_set_flow_control( HARD XON_OUT )
12/31 19:43:09 yS1   voice command: 'AT+VTX' -> 'CONNECT'
12/31 19:43:09 yS1    vgetty: AT+VTX
12/31 19:43:09 yS1    ZyXEL 1496: CONNECT
12/31 19:43:12 yS1    ZyXEL 1496: <DLE> <c>
12/31 19:43:12 yS1    vgetty: queued event FAX_CALLING_TONE at position
0002
12/31 19:43:12 yS1    vgetty: unqueued event FAX_CALLING_TONE at position
0002
12/31 19:43:12 yS1    vgetty: voice_handle_event got event
FAX_CALLING_TONE with data <d>
12/31 19:43:12 yS1    vgetty: <VOICE DATA 9841 bytes>
12/31 19:43:12 yS1    vgetty: queued event RESET_WATCHDOG at position 0003
12/31 19:43:12 yS1    vgetty: unqueued event RESET_WATCHDOG at position
0003
12/31 19:43:12 yS1    vgetty: voice_handle_event got event RESET_WATCHDOG
with data <d>
12/31 19:43:12 yS1    vgetty: <INTERRUPT PLAY>
12/31 19:43:12 yS1   voice command: '' -> 'VCON'
12/31 19:43:12 yS1    ZyXEL 1496: <DLE> <c>
12/31 19:43:15 yS1    vgetty: queued event FAX_CALLING_TONE at position
0004
12/31 19:43:15 yS1    ZyXEL 1496:
12/31 19:43:15 yS1    ZyXEL 1496: <DLE> <c>
12/31 19:43:19 yS1    vgetty: queued event FAX_CALLING_TONE at position
0005
12/31 19:43:19 yS1    ZyXEL 1496:
12/31 19:43:19 yS1    ZyXEL 1496: <DLE> <c>
12/31 19:43:23 yS1    vgetty: queued event FAX_CALLING_TONE at position
0006
12/31 19:43:23 yS1    ZyXEL 1496:
12/31 19:43:23 yS1    ZyXEL 1496: <DLE> <c>
12/31 19:43:26 yS1    vgetty: queued event FAX_CALLING_TONE at position
0007
12/31 19:43:26 yS1    ZyXEL 1496:
12/31 19:43:26 yS1    ZyXEL 1496: <DLE> <c>
12/31 19:43:30 yS1    vgetty: queued event FAX_CALLING_TONE at position
0008
12/31 19:43:30 yS1    ZyXEL 1496:
12/31 19:43:30 yS1    ZyXEL 1496: <DLE> <c>
12/31 19:43:34 yS1    vgetty: queued event FAX_CALLING_TONE at position
0009
12/31 19:43:34 yS1    ZyXEL 1496:
12/31 19:43:34 yS1    ZyXEL 1496: <DLE> <c>
12/31 19:43:38 yS1    vgetty: queued event FAX_CALLING_TONE at position
0010
12/31 19:43:38 yS1    ZyXEL 1496:
12/31 19:43:38 yS1    ZyXEL 1496:
12/31 19:43:49 yS1  vgetty: timeout while reading character from voice
modem
12/31 19:43:49 yS1  vgetty: stop_play_file command failed
12/31 19:43:49 yS1  vgetty: Could not play greeting message
12/31 19:43:49 yS1    vgetty: trying fax connection
12/31 19:43:49 yS1   voice command: 'AT+FCLASS=2' -> 'OK'
12/31 19:43:49 yS1    vgetty: AT+FCLASS=2
12/31 19:43:49 yS1    vgetty: unqueued event FAX_CALLING_TONE at position
0004
12/31 19:43:49 yS1    vgetty: voice_handle_event got event
FAX_CALLING_TONE with data <d>
12/31 19:43:49 yS1    vgetty: unqueued event FAX_CALLING_TONE at position
0005
12/31 19:43:49 yS1    vgetty: voice_handle_event got event
FAX_CALLING_TONE with data <o>
12/31 19:43:49 yS1    vgetty: unqueued event FAX_CALLING_TONE at position
0006
12/31 19:43:49 yS1    vgetty: voice_handle_event got event
FAX_CALLING_TONE with data <n>
12/31 19:43:49 yS1    vgetty: unqueued event FAX_CALLING_TONE at position
0007
12/31 19:43:49 yS1    vgetty: voice_handle_event got event
FAX_CALLING_TONE with data <t>
12/31 19:43:49 yS1    vgetty: unqueued event FAX_CALLING_TONE at position
0008
12/31 19:43:49 yS1    vgetty: voice_handle_event got event
FAX_CALLING_TONE with data <e>
12/31 19:43:49 yS1    vgetty: unqueued event FAX_CALLING_TONE at position
0009
12/31 19:43:49 yS1    vgetty: voice_handle_event got event
FAX_CALLING_TONE with data < >
12/31 19:43:49 yS1    vgetty: unqueued event FAX_CALLING_TONE at position
0010
12/31 19:43:49 yS1    vgetty: voice_handle_event got event
FAX_CALLING_TONE with data <e>
12/31 19:43:49 yS1    ZyXEL 1496: <DLE> <b>
12/31 19:43:55 yS1    vgetty: queued event BUSY_TONE at position 0011
12/31 19:43:55 yS1    ZyXEL 1496:
12/31 19:43:55 yS1    ZyXEL 1496: <DLE> <b>
12/31 19:43:56 yS1    vgetty: queued event BUSY_TONE at position 0012
12/31 19:43:56 yS1    ZyXEL 1496:
12/31 19:43:56 yS1    ZyXEL 1496: <DLE> <b>
12/31 19:43:56 yS1    vgetty: queued event BUSY_TONE at position 0013
12/31 19:43:56 yS1    ZyXEL 1496:
12/31 19:43:56 yS1    ZyXEL 1496: <DLE> <b>
12/31 19:43:57 yS1    vgetty: queued event BUSY_TONE at position 0014
12/31 19:43:57 yS1    ZyXEL 1496:
12/31 19:43:57 yS1    ZyXEL 1496: <DLE> <b>
12/31 19:43:57 yS1    vgetty: queued event BUSY_TONE at position 0015
12/31 19:43:57 yS1    ZyXEL 1496:
12/31 19:43:57 yS1    ZyXEL 1496: <DLE> <b>
12/31 19:43:58 yS1    vgetty: queued event BUSY_TONE at position 0016
12/31 19:43:58 yS1    ZyXEL 1496:
12/31 19:43:58 yS1    ZyXEL 1496: <DLE> <b>
12/31 19:43:58 yS1    vgetty: queued event BUSY_TONE at position 0017
12/31 19:43:58 yS1    ZyXEL 1496:
12/31 19:43:58 yS1    ZyXEL 1496: <DLE> <b>
12/31 19:43:59 yS1    vgetty: queued event BUSY_TONE at position 0018
12/31 19:43:59 yS1    ZyXEL 1496:
12/31 19:43:59 yS1    ZyXEL 1496: <DLE> <b>
12/31 19:43:59 yS1    vgetty: queued event BUSY_TONE at position 0019
12/31 19:43:59 yS1    ZyXEL 1496:
12/31 19:43:59 yS1    ZyXEL 1496: <DLE> <b>
12/31 19:44:00 yS1    vgetty: queued event BUSY_TONE at position 0020
12/31 19:44:00 yS1    ZyXEL 1496:
12/31 19:44:00 yS1    ZyXEL 1496: <DLE> <b>
12/31 19:44:00 yS1    vgetty: queued event BUSY_TONE at position 0021
12/31 19:44:00 yS1    ZyXEL 1496:
12/31 19:44:00 yS1    ZyXEL 1496: <DLE> <b>
12/31 19:44:01 yS1    vgetty: queued event BUSY_TONE at position 0022
12/31 19:44:01 yS1    ZyXEL 1496:
12/31 19:44:01 yS1    ZyXEL 1496: <DLE> <b>
12/31 19:44:01 yS1    vgetty: queued event BUSY_TONE at position 0023
12/31 19:44:01 yS1    ZyXEL 1496:
12/31 19:44:01 yS1    ZyXEL 1496: <DLE> <b>
12/31 19:44:02 yS1    vgetty: queued event BUSY_TONE at position 0024
12/31 19:44:02 yS1    ZyXEL 1496:
12/31 19:44:02 yS1    ZyXEL 1496: <DLE> <b>
12/31 19:44:02 yS1    vgetty: queued event BUSY_TONE at position 0025
12/31 19:44:02 yS1    ZyXEL 1496:
12/31 19:44:02 yS1    ZyXEL 1496: <DLE> <b>
12/31 19:44:03 yS1    vgetty: queued event BUSY_TONE at position 0026
12/31 19:44:03 yS1    ZyXEL 1496:
12/31 19:44:03 yS1    ZyXEL 1496: <DLE> <b>
12/31 19:44:03 yS1    vgetty: queued event BUSY_TONE at position 0027
12/31 19:44:03 yS1    ZyXEL 1496:
12/31 19:44:03 yS1    ZyXEL 1496: <DLE> <b>
12/31 19:44:04 yS1    vgetty: queued event BUSY_TONE at position 0028
12/31 19:44:04 yS1    ZyXEL 1496:
12/31 19:44:04 yS1    ZyXEL 1496: <DLE> <b>
12/31 19:44:04 yS1    vgetty: queued event BUSY_TONE at position 0029
12/31 19:44:04 yS1    ZyXEL 1496:
12/31 19:44:04 yS1    ZyXEL 1496: <DLE> <b>
12/31 19:44:05 yS1    vgetty: queued event BUSY_TONE at position 0030
12/31 19:44:05 yS1    ZyXEL 1496:
12/31 19:44:05 yS1    ZyXEL 1496: <DLE> <b>
12/31 19:44:05 yS1    vgetty: queued event BUSY_TONE at position 0031
12/31 19:44:05 yS1    ZyXEL 1496:
12/31 19:44:05 yS1    ZyXEL 1496: <DLE> <b>
12/31 19:44:05 yS1    vgetty: queued event BUSY_TONE at position 0032
12/31 19:44:05 yS1    ZyXEL 1496:
12/31 19:44:05 yS1    ZyXEL 1496: <DLE> <b>
12/31 19:44:06 yS1    vgetty: queued event BUSY_TONE at position 0033
12/31 19:44:06 yS1    ZyXEL 1496:
12/31 19:44:06 yS1    ZyXEL 1496: <DLE> <b>
12/31 19:44:06 yS1    vgetty: queued event BUSY_TONE at position 0034
12/31 19:44:06 yS1    ZyXEL 1496:
12/31 19:44:06 yS1    ZyXEL 1496: <DLE> <b>
12/31 19:44:07 yS1    vgetty: queued event BUSY_TONE at position 0035
12/31 19:44:07 yS1    ZyXEL 1496:
12/31 19:44:07 yS1    ZyXEL 1496: <DLE> <b>
12/31 19:44:07 yS1    vgetty: queued event BUSY_TONE at position 0036
12/31 19:44:07 yS1    ZyXEL 1496:
12/31 19:44:07 yS1    ZyXEL 1496: <DLE> <b>
12/31 19:44:08 yS1    vgetty: queued event BUSY_TONE at position 0037
12/31 19:44:08 yS1    ZyXEL 1496:
12/31 19:44:08 yS1    ZyXEL 1496: <DLE> <b>
12/31 19:44:08 yS1    vgetty: queued event BUSY_TONE at position 0038
12/31 19:44:08 yS1    ZyXEL 1496:
12/31 19:44:08 yS1    ZyXEL 1496: <DLE> <b>
12/31 19:44:09 yS1    vgetty: queued event BUSY_TONE at position 0039
12/31 19:44:09 yS1    ZyXEL 1496:
12/31 19:44:09 yS1    ZyXEL 1496: <DLE> <b>
12/31 19:44:09 yS1    vgetty: queued event BUSY_TONE at position 0040
12/31 19:44:09 yS1    ZyXEL 1496:
12/31 19:44:09 yS1    ZyXEL 1496: <DLE> <b>
12/31 19:44:10 yS1    vgetty: queued event BUSY_TONE at position 0041
12/31 19:44:10 yS1    ZyXEL 1496:
12/31 19:44:10 yS1    ZyXEL 1496: <DLE> <b>
12/31 19:44:10 yS1    vgetty: queued event BUSY_TONE at position 0042
12/31 19:44:10 yS1    ZyXEL 1496:
12/31 19:44:10 yS1    ZyXEL 1496: <DLE> <b>
12/31 19:44:11 yS1    vgetty: queued event BUSY_TONE at position 0043
12/31 19:44:11 yS1    ZyXEL 1496:
12/31 19:44:11 yS1    ZyXEL 1496: <DLE> <b>
12/31 19:44:11 yS1    vgetty: queued event BUSY_TONE at position 0044
12/31 19:44:11 yS1    ZyXEL 1496:
12/31 19:44:11 yS1    ZyXEL 1496: <DLE> <b>
12/31 19:44:12 yS1    vgetty: queued event BUSY_TONE at position 0045
12/31 19:44:12 yS1    ZyXEL 1496:
12/31 19:44:12 yS1    ZyXEL 1496:
12/31 19:44:12 yS1  vgetty: Watchdog timer expired, exiting...
------------------------------ snap -----------------------------------

I hope this was not too much of the log-file ...
I don't know what I still can do!

  aleX
-- 
Alexander Wiedeck...............alexander.wiedeck@ku-eichstaett.de
Key fingerprint = 02 C9 F8 08 1A 36 F9 D0  22 6C 4C 4F 06 78 34 C3
I know it all.               I just can't remember it all at once.