|
ru.linux- RU.LINUX --------------------------------------------------------------------- From : Alexey Prokopchuk 2:5030/1498.10 16 Mar 2001 16:24:34 To : Dmitry Alexandrov Subject : Re: mgetty --------------------------------------------------------------------------------
> Да пpолетало тут как-то pаз...
> Типа, ты мне днем тpубку поднимай с 10-го звонка, а ночью с пеpвого...
> Или как такую схему можно по-кpасивше оpганизовать?
Вообще это можно сделать штатными средствами mgetty без всяких патчей. Заменяем
mgetty на vgetty, правим конфиг оной по своему усмотрению. Добираемся до вот
этого участка:
------------
# Please note, that vgetty forces the number of rings to be at least 2.
# This is, because the caller ID information (if available from your
# provider) is sent between the first and the second ring. Since we don't
# know in advance, if you get CID or not, we stay on the save side.
#
# The default is 3
#
rings /etc/rings/rings.ttyS1
-----------
В указанном файле храним количество звонков до подъема трубки.
-----------
# Instead of an answer mode, you can also give a file name, that
# contains a single line with the desired answer mode. Vgetty will
# automatically append the name of the modem device to the file name.
# The file name must be an absolut path starting with a leading "/".
# E.g. "answer_mode /etc/answer" and the modem device is ttyS0, will
# lead to the file name "/etc/answer.ttyS0". If this file doesn't
# exist, vgetty will check for a file without the modem device name
# appended. In this example, vgetty would check for /etc/answer.
#
# The default is "voice:fax:data".
#
answer_mode /etc/rings/answer.ttyS1
-----------
А здесь тип ответа (data:fax:voice). Вот и все. Эти два файла можно править по
крону в соответствии с необходимостью.
Alexey
--- slrn/0.9.6.2 (Linux)
* Origin: alexbp@mail.ru (2:5030/1498.10@fidonet)
Вернуться к списку тем, сортированных по: возрастание даты уменьшение даты тема автор
Архивное /ru.linux/21697a49658b6.html, оценка из 5, голосов 10
|