Q: vgetty ignores dtmf-commands?
Dirk Slaghekke (dirk@moria.in-berlin.de)
Sun, 13 Apr 97 12:25 MET DST
Hello,
although the Zyxel seems to recognize the dtmf commands I type, vgetty refuses
to start the dtmf.sh.
While hearing the greeting message I pressed "5". The Modem correcktly says
so. But afterwards simply starts fax-data connection. If answer_mode is only
"data" the modem simply hangs up.
Can anyone can give me a hint to start with?
Thank a lot
dirk
04/12 15:03:57 yS2 CND: RING ** found **
04/12 15:03:57 yS2 reading ring_type ring configuration from config file /usr/local/etc/mgetty+sendfax/voice.conf
04/12 15:03:57 yS2 reading /usr/local/etc/mgetty+sendfax/voice.conf...
04/12 15:03:57 yS2 conf lib: read: 'part generic'
04/12 15:03:57 yS2 found CT_KEYWORD part generic
04/12 15:03:57 yS2 conf lib: read: 'voice_log_level 6'
04/12 15:03:57 yS2 conf lib: read: 'voice_dir /var/spool/voice'
04/12 15:03:57 yS2 conf lib: read: 'message_flag_file .flag'
04/12 15:03:57 yS2 conf lib: read: 'receive_dir incoming'
04/12 15:03:57 yS2 conf lib: read: 'message_dir messages'
04/12 15:03:57 yS2 conf lib: read: 'message_list Index'
04/12 15:03:57 yS2 conf lib: read: 'backup_message standard.rmd'
04/12 15:03:57 yS2 conf lib: read: 'port_speed 38400'
04/12 15:03:57 yS2 conf lib: read: 'voice_shell /bin/sh'
04/12 15:03:57 yS2 conf lib: read: 'port_timeout 5'
04/12 15:03:57 yS2 conf lib: read: 'dtmf_len 30'
04/12 15:03:57 yS2 conf lib: read: 'dtmf_threshold 10'
04/12 15:03:57 yS2 conf lib: read: 'dtmf_wait 5'
04/12 15:03:57 yS2 conf lib: read: 'raw_data false'
04/12 15:03:57 yS2 conf lib: read: 'rec_compression 0'
04/12 15:03:57 yS2 conf lib: read: 'rec_silence_len 70'
04/12 15:03:57 yS2 conf lib: read: 'rec_silence_threshold 30'
04/12 15:03:57 yS2 conf lib: read: 'rec_remove_silence true'
04/12 15:03:57 yS2 conf lib: read: 'rec_max_len 30'
04/12 15:03:57 yS2 conf lib: read: 'do_hard_flow true'
04/12 15:03:57 yS2 conf lib: read: 'beep_frequency 933'
04/12 15:03:57 yS2 conf lib: read: 'beep_length 15'
04/12 15:03:57 yS2 conf lib: read: 'max_tries 3'
04/12 15:03:57 yS2 conf lib: read: 'retry_delay 5'
04/12 15:03:57 yS2 conf lib: read: 'watchdog_timeout 30'
04/12 15:03:57 yS2 conf lib: read: 'program vgetty'
04/12 15:03:57 yS2 conf lib: read: 'speaker_answer_volume 100'
04/12 15:03:57 yS2 conf lib: read: 'rings 2'
04/12 15:03:57 yS2 conf lib: read: 'answer_mode data:voice'
04/12 15:03:57 yS2 conf lib: read: 'force_autodetect true'
04/12 15:03:57 yS2 conf lib: read: 'toll_saver_rings 0'
04/12 15:03:57 yS2 conf lib: read: 'rec_always_keep false'
04/12 15:03:57 yS2 conf lib: read: 'button_program '
04/12 15:03:57 yS2 conf lib: read: 'call_program '
04/12 15:03:57 yS2 conf lib: read: 'dtmf_program /var/spool/voice/messages/dtmf.sh'
04/12 15:03:57 yS2 conf lib: read: 'message_program '
04/12 15:03:57 yS2 conf lib: read: 'do_message_light false'
04/12 15:03:57 yS2 conf lib: read: 'program vm'
04/12 15:03:57 yS2 conf lib: read: 'voice_devices ttyS2'
04/12 15:03:57 yS2 conf lib: read: 'dialout_timeout 90'
04/12 15:03:57 yS2 conf lib: read: 'speaker_play_volume 100'
04/12 15:03:57 yS2 conf lib: read: 'program pvf'
04/12 15:03:57 yS2 key: 'part', type=6, flags=4, data=(ignored)
04/12 15:03:57 yS2 key: 'program', type=6, flags=4, data=(ignored)
04/12 15:03:57 yS2 key: 'port', type=6, flags=4, data=(ignored)
04/12 15:03:57 yS2 key: 'ring_type', type=6, flags=4, data=(ignored)
04/12 15:03:57 yS2 key: 'voice_log_level', type=0, flags=3, data=6
04/12 15:03:57 yS2 key: 'voice_devices', type=1, flags=0, data=(empty)
04/12 15:03:57 yS2 key: 'port_speed', type=0, flags=3, data=38400
04/12 15:03:57 yS2 key: 'port_timeout', type=0, flags=3, data=5
04/12 15:03:57 yS2 key: 'dtmf_len', type=0, flags=3, data=30
04/12 15:03:57 yS2 key: 'dtmf_threshold', type=0, flags=3, data=10
04/12 15:03:57 yS2 key: 'dtmf_wait', type=0, flags=3, data=5
04/12 15:03:57 yS2 key: 'rec_compression', type=0, flags=3, data=0
04/12 15:03:57 yS2 key: 'rec_speed', type=0, flags=1, data=0
04/12 15:03:57 yS2 key: 'rec_silence_len', type=0, flags=3, data=70
04/12 15:03:57 yS2 key: 'rec_silence_threshold', type=0, flags=3, data=30
04/12 15:03:57 yS2 key: 'rec_remove_silence', type=3, flags=3, data=TRUE
04/12 15:03:57 yS2 key: 'rec_max_len', type=0, flags=3, data=30
04/12 15:03:57 yS2 key: 'speaker_answer_volume', type=0, flags=3, data=100
04/12 15:03:57 yS2 key: 'rings', type=1, flags=3, data=2
04/12 15:03:57 yS2 key: 'answer_mode', type=1, flags=3, data=data:voice
04/12 15:03:57 yS2 key: 'toll_saver_rings', type=0, flags=3, data=0
04/12 15:03:57 yS2 key: 'rec_always_keep', type=3, flags=3, data=FALSE
04/12 15:03:57 yS2 key: 'voice_dir', type=1, flags=3, data=/var/spool/voice
04/12 15:03:57 yS2 key: 'message_flag_file', type=1, flags=3, data=.flag
04/12 15:03:57 yS2 key: 'receive_dir', type=1, flags=3, data=incoming
04/12 15:03:57 yS2 key: 'message_dir', type=1, flags=3, data=messages
04/12 15:03:57 yS2 key: 'message_list', type=1, flags=3, data=Index
04/12 15:03:57 yS2 key: 'backup_message', type=1, flags=3, data=standard.rmd
04/12 15:03:57 yS2 key: 'dialout_timeout', type=0, flags=1, data=90
04/12 15:03:57 yS2 key: 'speaker_play_volume', type=0, flags=1, data=100
04/12 15:03:57 yS2 key: 'beep_frequency', type=0, flags=3, data=933
04/12 15:03:57 yS2 key: 'beep_length', type=0, flags=3, data=15
04/12 15:03:57 yS2 key: 'raw_data', type=3, flags=3, data=FALSE
04/12 15:03:57 yS2 key: 'max_tries', type=0, flags=3, data=3
04/12 15:03:57 yS2 key: 'retry_delay', type=0, flags=3, data=5
04/12 15:03:57 yS2 key: 'voice_shell', type=1, flags=3, data=/bin/sh
04/12 15:03:57 yS2 key: 'button_program', type=1, flags=3, data=
04/12 15:03:57 yS2 key: 'call_program', type=1, flags=3, data=
04/12 15:03:57 yS2 key: 'dtmf_program', type=1, flags=3, data=/var/spool/voice/messages/dtmf.sh
04/12 15:03:57 yS2 key: 'message_program', type=1, flags=3, data=
04/12 15:03:57 yS2 key: 'do_message_light', type=3, flags=3, data=FALSE
04/12 15:03:57 yS2 key: 'do_hard_flow', type=3, flags=3, data=TRUE
04/12 15:03:57 yS2 key: 'force_autodetect', type=3, flags=3, data=TRUE
04/12 15:03:57 yS2 key: 'watchdog_timeout', type=0, flags=3, data=30
04/12 15:03:57 yS2 key: 'rec_min_len', type=0, flags=1, data=0
04/12 15:03:57 yS2 key: 'command_delay', type=0, flags=1, data=50
04/12 15:03:57 yS2 key: 'ignore_fax_dle', type=3, flags=1, data=FALSE
04/12 15:03:57 yS2 key: 'dial_timeout', type=0, flags=1, data=90
04/12 15:03:57 yS2 vgetty: answer mode was set directly
04/12 15:03:57 yS2 vgetty: answer mode is [data|voice]
04/12 15:03:57 yS2 vgetty: opening list file /var/spool/voice/messages/Index
04/12 15:03:57 yS2 vgetty: found 1 messages, picked message number 1
04/12 15:03:57 yS2 vgetty: message name is /var/spool/voice/messages/bob.z3
04/12 15:03:57 yS2 vgetty: entering voice mode
04/12 15:03:57 yS2 vgetty: Installing signal handlers
04/12 15:03:57 yS2 voice command: 'AT+FCLASS?' -> ''
04/12 15:03:57 yS2 vgetty: AT+FCLASS?
04/12 15:03:57 yS2 ZyXEL 2864: AT+FCLASS?
04/12 15:03:57 yS2 ZyXEL 2864: 2.0
04/12 15:03:57 yS2 voice command: '' -> 'OK'
04/12 15:03:57 yS2 ZyXEL 2864: OK
04/12 15:03:57 yS2 voice command: 'AT+FCLASS=8' -> 'OK'
04/12 15:03:57 yS2 vgetty: AT+FCLASS=8
04/12 15:03:57 yS2 ZyXEL 2864: AT+FCLASS=8
04/12 15:03:57 yS2 ZyXEL 2864: OK
04/12 15:03:57 yS2 voice command: 'AT+VLS=2' -> 'OK|CONNECT'
04/12 15:03:57 yS2 vgetty: AT+VLS=2
04/12 15:03:57 yS2 ZyXEL 2864: AT+VLS=2
04/12 15:03:57 yS2 ZyXEL 2864: OK
04/12 15:03:57 yS2 playing voice file /var/spool/voice/messages/bob.z3
04/12 15:03:57 yS2 vgetty: raw modem data header found
04/12 15:03:57 yS2 vgetty: modem type ZyXEL 2864 found
04/12 15:03:57 yS2 vgetty: compression method 0x0003, speed 0, bits 0
04/12 15:03:57 yS2 voice command: 'AT+VSM=3,9600' -> 'OK'
04/12 15:03:57 yS2 vgetty: AT+VSM=3,9600
04/12 15:03:57 yS2 ZyXEL 2864: AT+VSM=3,9600
04/12 15:03:57 yS2 ZyXEL 2864: OK
04/12 15:03:57 yS2 voice command: 'AT+FLO=2' -> 'OK'
04/12 15:03:57 yS2 vgetty: AT+FLO=2
04/12 15:03:57 yS2 ZyXEL 2864: AT+FLO=2
04/12 15:03:58 yS2 ZyXEL 2864: OK
04/12 15:03:58 yS2 tio_set_flow_control( HARD XON_OUT )
04/12 15:03:58 yS2 voice command: 'AT+VTX' -> 'CONNECT'
04/12 15:03:58 yS2 vgetty: AT+VTX
04/12 15:03:58 yS2 ZyXEL 2864: AT+VTX
04/12 15:03:58 yS2 ZyXEL 2864: CONNECT
04/12 15:03:58 yS2 vgetty: <DATA 369 bytes>
04/12 15:03:58 yS2 vgetty: <DATA 372 bytes>
04/12 15:03:58 yS2 vgetty: <DATA 363 bytes>
04/12 15:03:58 yS2 vgetty: <DATA 365 bytes>
04/12 15:03:58 yS2 vgetty: <DATA 365 bytes>
04/12 15:03:58 yS2 vgetty: <DATA 363 bytes>
04/12 15:03:58 yS2 vgetty: <DATA 362 bytes>
04/12 15:03:58 yS2 vgetty: <DATA 364 bytes>
04/12 15:03:58 yS2 vgetty: <DATA 365 bytes>
04/12 15:03:58 yS2 vgetty: <DATA 367 bytes>
04/12 15:03:58 yS2 vgetty: <DATA 366 bytes>
04/12 15:03:58 yS2 vgetty: <DATA 366 bytes>
04/12 15:03:59 yS2 vgetty: <DATA 363 bytes>
04/12 15:03:59 yS2 vgetty: <DATA 364 bytes>
04/12 15:03:59 yS2 vgetty: <DATA 367 bytes>
04/12 15:03:59 yS2 vgetty: <DATA 369 bytes>
04/12 15:03:59 yS2 vgetty: <DATA 362 bytes>
04/12 15:03:59 yS2 vgetty: <DATA 367 bytes>
04/12 15:03:59 yS2 vgetty: <DATA 369 bytes>
04/12 15:03:59 yS2 vgetty: <DATA 366 bytes>
04/12 15:03:59 yS2 vgetty: <DATA 365 bytes>
04/12 15:03:59 yS2 vgetty: <DATA 365 bytes>
04/12 15:03:59 yS2 vgetty: <DATA 365 bytes>
04/12 15:04:00 yS2 vgetty: <DATA 361 bytes>
04/12 15:04:00 yS2 vgetty: <DATA 365 bytes>
04/12 15:04:00 yS2 vgetty: <DATA 365 bytes>
04/12 15:04:00 yS2 vgetty: <DATA 364 bytes>
04/12 15:04:00 yS2 vgetty: <DATA 367 bytes>
04/12 15:04:00 yS2 vgetty: <DATA 377 bytes>
04/12 15:04:00 yS2 vgetty: <DATA 364 bytes>
04/12 15:04:00 yS2 vgetty: <DATA 364 bytes>
04/12 15:04:00 yS2 vgetty: <DATA 370 bytes>
04/12 15:04:00 yS2 vgetty: <DATA 364 bytes>
04/12 15:04:00 yS2 vgetty: <DATA 366 bytes>
04/12 15:04:01 yS2 ZyXEL 2864: <DLE> <5>
04/12 15:04:01 yS2 vgetty: queued event 0x2010 at position 0000
04/12 15:04:01 yS2 vgetty: unqueued event 0x2010 at position 0000
04/12 15:04:01 yS2 vgetty: voice_handle_event got event 0x2010 with data <5>
04/12 15:04:01 yS2 vgetty: <DLE> <CAN> <DLE> <ETX>
04/12 15:04:01 yS2 voice command: '' -> 'OK|VCON'
04/12 15:04:01 yS2 ZyXEL 2864: OK
04/12 15:04:01 yS2 voice command: 'AT' -> 'OK'
04/12 15:04:01 yS2 vgetty: AT
04/12 15:04:01 yS2 ZyXEL 2864: AT
04/12 15:04:01 yS2 ZyXEL 2864: OK
04/12 15:04:01 yS2 vgetty: trying data and fax connection
04/12 15:04:01 yS2 voice command: 'AT+FCLASS=2' -> 'OK'
04/12 15:04:01 yS2 vgetty: AT+FCLASS=2
04/12 15:04:01 yS2 ZyXEL 2864: AT+FCLASS=2
04/12 15:04:01 yS2 ZyXEL 2864: OK
04/12 15:04:01 yS2 voice command: 'AT+FAA=1' -> 'OK'
04/12 15:04:01 yS2 vgetty: AT+FAA=1
04/12 15:04:01 yS2 ZyXEL 2864: AT+FAA=1
04/12 15:04:01 yS2 ZyXEL 2864: OK
04/12 15:04:01 yS2 mdm_send: 'AT+FBOR=0'
04/12 15:04:01 yS2 got:AT+FBOR=0[0d]
04/12 15:04:01 yS2 mdm_command: string 'AT+FBOR=0'
04/12 15:04:01 yS2 got:[0d][0a]OK[0d]
04/12 15:04:01 yS2 mdm_command: string 'OK' -> OK
04/12 15:04:01 yS2 vgetty: Restoring signal handlers
04/12 15:04:01 yS2 send: ATA[0d]
04/12 15:04:01 yS2 waiting for ``CONNECT''
04/12 15:04:01 yS2 got: ATA[0d]
04/12 15:04:01 yS2 CND: ATA[0d][0a]NO CARRIER
04/12 15:04:05 yS2 found action string: ``NO CARRIER''
04/12 15:04:05 ##### failed A_FAIL dev=ttyS2, pid=8306, caller=3044340519 TO:44340521, conn='', name=''
--
--
.