Определение голосовых звонков в mgetty (voice getty modem)
Ключевые слова: voice, getty, modem, (найти похожие документы)
Date: Thu, 13 May 2004 21:49:38 +0600
From: Kirill Frolov <Kirill_Frolov@p2.f827.n5030.z2.fidonet.org.>
Newsgroups: ftn.ru.linux
Subject: Определение голосовых звонков в mgetty
AS> Можно как-нибудь научить mgetty отличать голосовые звонки от данных/факсов?
AS> Модем на pоквеле, исашный. Войсовости хватает.
Можно:
=== start of file /etc/mgetty/voice.conf ===
part generic
voice_log_level 4
voice_shell_log /var/log/vgetty_voice_shell.%s
voice_dir /var/spool/voice
phone_owner root
phone_group voice
phone_mode 0660
message_flag_file .flag
receive_dir incoming
message_dir messages
message_list Index
backup_message standard.rmd
# WARNING: if you use vgetty, this MUST be the same value as the
# setting of "speed <n>" in mgetty.config. If you change one,
# change the other one as well!
#
port_speed 38400
voice_shell /bin/sh
port_timeout 10
dial_timeout 90
command_delay 50
dtmf_len 30
dtmf_threshold 40
dtmf_wait 7
ignore_fax_dle true
raw_data true
rec_compression 4
rec_speed 0
rec_silence_len 40
rec_silence_threshold 40
rec_remove_silence false
rec_max_len 300
rec_min_len 10
do_hard_flow true
beep_frequency 933
beep_length 700
max_tries 3
retry_delay 5
watchdog_timeout 120
receive_gain -1
transmit_gain -1
enable_command_echo true
poll_interval 10
program vgetty
rings /etc/mgetty/rings
answer_mode /etc/mgetty/answer
force_autodetect false
toll_saver_rings 0
rec_always_keep false
button_program
call_program
dtmf_program dtmf.sh
message_program
do_message_light false
ring_report_delay 15
program vm
voice_devices modem
dialout_timeout 90
ringback_goes_away 70
ringback_never_came 100
=== end of file /etc/mgetty/voice.conf ===
=== start of file /etc/mgetty/answer.modem ===
voice:data
=== end of file /etc/mgetty/answer.modem ===
=== start of file /etc/mgetty/rings.modem ===
4
=== end of file /etc/mgetty/rings.modem ===
По крону, ночью, "voice:data" меняется на "data", а "4" на "1"
(нужно для работы фидонета).