📄 readme.src
字号:
.ti -2iget_msgs_mnu.msg\ Press 4 to rewind, 6 to forward, 9 to deletemessage, # to stop..ti -2igreeting.msg\ This is the (phone #), leave a message afterthe beep..ti -2imsg_deleted.msg\ Message deleted..ti -2ipasswd_ch.msg\ Password changed successfully..ti -2ipasswd_not_ch.msg\ Password not changed..ti -2iremote_menu.msg\ Press 1 to listen the messages, 2 to listenthe greeting, 3 to change it and 4 to changethe password..ti -2iwrong_passwd.msg\ Wrong password..in 0i.sp.sp.LINERUNNING ans.br.LINE.ta 0.5iYou can start ans from the command line, log messages aredisplayed to the screen. You can redirect standard outputand standard error messages to a file and put the processrunning in the background with the command:.sp ans >> /var/log/ans 2>&1 &.spIf you want init to start ans every time the system is booted,add a line to /etc/inittab like this:.sp d1:12456:respawn:/usr/local/bin/ans >> /var/log/ans 2>&1.spThis instructs init to start ans whenever it enters runlevels1, 2, 4, 5 or 6. Default runlevel is 5 on my system.The "respawn" keyword means that if ans is terminated (after acall is answered, due an error, because you killed it),init restarts the script again. The label "d1" identify the linein the file, so it must be different from the existing ones.You can choose two characters you prefere.See init(8) and inittab(5) man pages..brOnce ans is running, you can issue the following commands (seeans man page for more details):.sp.ta 0.5i 2i.in +2i.ti -2i ans\ play\ play received messages.ti -2i ans\ delete\ delete received messages.ti -2i ans\ now\ force the running ans process to answer a callimmediately.ti -2i ans\ stop\ prevent the running ans process fromanswering the phone.ti -2i ans\ start\ resume the running ans process answeringthe phone.in 0i.spTo terminate a running ans process you must:.ta 0.3i.in +0.3i.ti -0.3i- issue an "ans stop" command: it creates a stop file and killsthe vmcp process which is waiting for the RING,.ti -0.3i- kill the running ans process,.ti -0.3i- issue an "ans start" command to remove the stop file..in 0iIf ans is respawned by init you must first change inittab andrestart init, of course!.spIf you want to use the vplay or vrec scripts while ans iswaiting for a call, you must first release the ttySn devicewith the "ans stop" command..brRemember that if you issued an "ans stop" command, a stop fileis created and ans will never answer a call again untill youissue an "ans start" command. The stop file remains even if youkill and restart the ans process..sp.sp.LINERECEIVING FAXES AND REMOTE LOGIN.br.LINEAns is able to discriminate incoming faxes or data calls, but itrelies on auxiliary programs to handle them..br To receive incoming faxes you must have /usr/bin/efax installed(I use version 0.7a of efax avaliable from Sunsite, see Creditssection), check the command line that starts efax in thefax_call() function of the ans script..brTo handle incoming data calls (remote logins) I use agetty. It isstandard on my Linux box (Slackware).See data_call() function in the ans script for the command thatstarts agetty..brAfter the user has logged in, he/she can also switch the line toSLIP or PPP..sp.sp.LINEOUTPUT SAMPLES.br.LINE.sp.nfMessage record/playback with vrec/vplay---------------------------------------.ta 3iprompt# vrec greeting.msgResetting the serial line (3 seconds pause)Sending AT&F1 0x0dExit code 0Sending AT#CLS=8 0x0dExit code 0Sending AT#VBS=4 0x0dExit code 0Sending ATS30=60 0x0dExit code 0Sending AT#BDR=16 0x0dExit code 0Sending AT#VSP=20 0x0dExit code 0Sending AT#VSS=2 0x0dExit code 0Sending AT#VSD=1 0x0dExit code 0Sending AT#VLS=2 0x0dExit code 0Sending AT#VBT=5#VTS=# 0x0d (Play a beep from the speaker)Exit code 0Sending AT#VLS=3 0x0dExit code 0Sending AT#VRX 0x0d (Start talking in the microphone)Exit code 1 (Exit on silence or ESC keypress)Sending 0x0aExit code 0Sending ATH 0x0dExit code 0prompt# vplay greeting.msgResetting the serial line (3 seconds pause)Sending AT&F1 0x0dExit code 0Sending AT#CLS=8 0x0dExit code 0Sending AT#VBS=4 0x0dExit code 0Sending AT#BDR=16 0x0dExit code 0Sending AT#VSD=1 0x0dExit code 0Sending AT#VLS=2 0x0dExit code 0Sending AT#VTX 0x0dExit code 0Playing greeting.msg... (Start playing through the speaker)Exit code 0Sending 0x10 0x03Exit code 0Sending ATH 0x0dExit code 0prompt#.fi.sp.sp.LINECREDITS.br.LINE.in 0.5i.ti -0.5iWolfgang Henke <wolfgang@whnet.com>.brHe made available an invaluable guide to voice commandsfor Rockwell chipset modem..brftp://ftp.whnet.com/rockwell/voice.commands.brSee also http://www.nb.rockwell.com/ref/reference.html (?).sp.ti -0.5iKenneth J. Hendrickson <kjh@usc.edu, kjh@seas.smu.edu>.brFor its modem-stats 0.9, a simple program to sendcommands to a modem. It was the starting pointfor this work..brftp://sunsite.unc.edu/pub/Linux/apps/comm/modem-stats.tar.gz (?).sp.ti -0.5iDaniel Chouinard <danny@limestone.kosone.com>.brFor its dcon 0.9, a scripting language interpreter forestablishing communications on serial lines.Here I found some hints for programming the modem device..brftp://sunsite.unc.edu/pub/Linux/system/serial/dcon0.91.tgz.sp.ti -0.5iVernon C. Hoxie <vern@zebra.alphacdc.com>.brFor detailed information about termios and serialdevice locking. Many hints are included in his.brftp://scicom.alphacdc.com/pub/linux/serial_suite.tgz.sp.ti -0.5iEd Casas <edc@cce.com>.brFor efax version 0.7a, a program to send and receive faxesusing any Class 1 or Class 2 fax modem. I use his programto handle incoming faxes and I found many hints in his code..brftp://sunsite.unc.edu/pub/Linux/apps/serialcomm/fax/efax08a.tar.gz.sp.ti -0.5iDaniel Quinlan <Daniel.Quinlan@linux.org>.brFor version 1.2 of the Linux Filesystem Structure (FSSTND).It is - AFAIK - the unique attempt to define a standard fordirectories structure and files location for a Linux system..brftp://sunsite.unc.edu/pub/Linux/docs/fsstnd/.sp.ti -0.5iU.S. Robotics PCD Applications Engineering.brFor the Technical Reference page they made available on the Internet..brhttp://ae.pcd.usr.com/.sp.ti -0.5iRobert de Bath <robert@mayday.cix.co.uk>.brFor contributing many ideas and code, enhancing vmcp. He is developinga more enhanced version of vmcp, with many new options. Check his webpage at http://www.cix.co.uk/~mayday. .in 0i.sp.sp.LINEHISTORY.br.LINE.in 0.5i.ti -0.5i14 Jul 1999: voice-0.6.1.tar.gz.brVmcp: fixed some things causing compiling trouble or warning:termios.h included file is in linux subdir,main function is int not void..sp.in 0.5i.ti -0.5i8 Sep 1997: voice-0.6.tar.gz.brVmcp: fixed a bug causing an ioctl(2) error when vmcp was run from inittab orin the background (thanks to Robert Hawkins <robert@waltz.demon.co.uk>).Added -W option to work with US-Robotics modems. Added -z option to useonly one program to do everything, eliminating linres. Added escaped charsconversion on -c,-w and -W strings (thanks to Robert de Bath <robert@mayday.cix.co.uk>)..sp.in 0.5i.ti -0.5i4 Jan 1997: voice-0.5.tar.gz.brOption "now" added to the ans script: it forces a running ans processto answer a call immediately..sp.in 0.5i.ti -0.5i23 Oct 1996: voice-0.4.tar.gz.brBug fixed for modems that do not assert CD during voice operation.Some improvement to the ans script..sp.ti -0.5i31 Aug 1996: voice-0.3.tar.gz.brFirst public release.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -