📄 ans.8
字号:
.\" Process this file with.\" groff -man -Tascii ans.8.\".TH ANS 8 "14 July 1999" "Ans Version 0.6" "User Manuals".SH NAMEans \- answering machine for voice modem.SH SYNOPSIS\fBans\fR [ \fIplay\fR | \fIdelete\fR | \fInow\fR | \fIstop\fR | \fIstart\fR ].SH DESCRIPTIONFull-featured answering machine for voice modems. Automaticvoice/data/fax discrimination. Run from the command line orfrom \fBinittab\fR(5)..SH OPTIONSWithout option, \fIans\fR starts waiting for a call, displayinglog messages to the standard output. \fIAns\fR can be run in thebackground with output redirected to a file..IP \fBplay\fRPlay received voice messages..IP \fBdelete\fRDelete received messages upon confirmation..IP \fBnow\fRThe running \fIans\fR process is forced to answer a callimmediately. No (more) rings are waited and the greetingmessage is not played: the process starts to record anincoming message. If a fax or a calling modem is detected, theprocess switches to the appropriate operation..IP \fBstop\fRCreate a stop file (see FILES section) and kill a \fBvmcp\fR(8)process which is waiting for the RINGs from the modem.This prevent a running \fIans\fR process from answering the phone.The running \fIans\fR process starts a loop and every 10 secondschecks if the stop file was removed.The modem device is so released for use by other processes..IP \fBstart\fRThe stop file is removed.A running \fIans\fR process can exit the loop and restart waitingRINGs from the modem. The modem device is locked and becomeunavailable to other processes..SH OPERATIONWhen properly installed and started, \fIans\fR sleeps untill it receivesa call (really it starts a \fBvmcp\fR(8) process which waits for a RING).After WAITRINGS rings (default is 4) it answers the call playingthe \fIgreeting.msg\fR message. After the beep the caller can leavea message (deafult max time is 120 s)..brIf \fIans\fR detects a fax or a calling modem during greeting or duringmessage recording, it switches to the appropriate operation..brTo enter \fIans\fR remote operation the caller must play a \fI#\fR DTMFtone when \fIans\fR is playing its greeting, then he/she must enter thepassword and terminate it with a \fI#\fR too. If all the messages listed inFILES section has been recorded, each remote operation is drivenby an appropriate message..SH RECEIVING DATA CALLSAs stated before, \fIans\fR can discriminate voice, fax or datacalls.Neverthless, while every fax machine or modem-fax emits a\fIfax call tone\fR whenit is placing a fax call, not every modem can produce a\fIdatacall tone\fR when it is placing a data call.So if the caller doesn't produce the tone, \fIans\fRis not able to acknowledge the data call and it responds as ifit was voice..brIf the caller's modem allows the \fI^\fR dialling modifier,he/she should place the call with a command like:.sp \fBATDT^291568\fR.spotherwise, he/she sould try a command like:.sp \fBATDT291568,,,,,,3\fR..spThe number of commas must be adjusted until the DTMF tone \fI3\fRfalls during the playing of the greeting message. If \fIans\fRdetects a DTMF tone \fI3\fR during the greeting, it is forcedto answer a data call..SH FILESThe \fIans\fR script relies on many binaries and support files.Except \fBefax\fR(1), \fBvmcp\fR(8) and maybe\fBagetty\fR(8), all thebinaries should to be standard on every unix-like system.This is a complete list of files and directories needed:.in +0.5i.ti -0.5i\fB/bin/cat\fR.ti -0.5i\fB/bin/cp\fR.ti -0.5i\fB/bin/cut\fR.ti -0.5i\fB/bin/date\fR.ti -0.5i\fB/bin/echo\fR.ti -0.5i\fB/bin/kill\fR.ti -0.5i\fB/bin/ls\fR.ti -0.5i\fB/bin/mv\fR.ti -0.5i\fB/bin/rm\fR.ti -0.5i\fB/bin/touch\fR.ti -0.5i\fB/dev/null\fR.brNull file for fake input and output..ti -0.5i\fB/dev/ttyS\fRn.brDevice to which modem is connected..ti -0.5i\fB/sbin/agetty\fR.brProgram for incoming data calls handling..ti -0.5i\fB/tmp/\fR.brTemporary directory..ti -0.5i\fB/usr/bin/diff\fR.ti -0.5i\fB/usr/bin/efax\fR.brProgram for incoming faxes handling..ti -0.5i\fB/usr/bin/find\fR.ti -0.5i\fB/usr/bin/sed\fR.ti -0.5i\fB/usr/bin/sort\fR.ti -0.5i\fB/usr/bin/vmcp\fR.brProgram to communicate with the modem..ti -0.5i\fB/usr/bin/wc\fR.ti -0.5i\fB/usr/local/lib/ans/\fR.brThis directory must contains the following files:\fBask_passwd.msg\fR.brvoice message: "please enter your password and terminate it with #".br\fBch_greeting.msg\fR.brvoice message: "record the new greeting after the beep, press # toconfirm, 9 to cancel".br\fBget_msgs_mnu.msg\fR.brvoice message: "press 4 to rewind, 6 to forward, 9 to delete message,# to stop".br\fBgreeting.msg\fR.brvoice message: "this is the (phone #), leave a message after the beep".br\fBmsg_deleted.msg\fR.brvoice message: "message deleted".br\fBpasswd\fR.brtext file containig the password for \fIans\fR remote access. Thepassword is followed by a \fI#\fR and a new-line..br\fBpasswd_ch.msg\fR.brvoice message: "password changed successfully".br\fBpasswd_not_ch.msg\fR.brvoice message: "password not changed".br\fBremote_menu.msg\fR.brvoice message: "press 1 to listen the messages, 2 to listen thegreeting, 3 to change it and 4 to change the password".br\fBwrong_passwd.msg\fR.brvoice message: "wrong password".ti -0.5i\fB/var/lock/LCK..ttyS\fRn.brLock file created to signal that modem device is in use..ti -0.5i\fB/var/run/ans.ttyS\fRn\fB.stop\fR.brStop file created when \fIans stop\fR is executed..ti -0.5i\fB/var/spool/fax/\fR.brDirectory for incoming faxes..ti -0.5i\fB/var/spool/voice/\fR.brDirectory for incoming voice messages..SH "SEE ALSO"\fBagetty\fR(8),\fBefax\fR(1),\fBvmcp\fR(8).SH AUTHORNiccolo Rigacci <fd131@cleveland.freenet.edu>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -