ModAns v1.1 Copyright © 1990 Niklas Lindholm ModAns is a Freeware program. Permition is given to copy ModAns as long as no files are changed and nobody makes any money on it. An exception is a REASONABLE copying fee in a PD-library. If you intend to use any routins in ModAns in a commercial product, please contact me first. ModAns is an answering machine for modems. Shortly it makes the modem answer when somebody calls. Then it displays a login-text. Then the user is supposed to write a little letter which will be seved on disk. Then the user logs out, a logou-text will apear and the modem hangs up. Now the program waits for a new caller. In the archive you are supposed to find these files: ModAns - The executable. ModAns.doc - This file. Swedish.doc - The documentation in swedish. Changes - What has happened since the last version? Login.txt - A sample login-text. Logout.txt - A sample logout-text. ModAns.cfg - A config-file. ModAns.c - The sourcecode in C. (SAS/C 5.10) Installation. ModAns needs a directory with the logical namn 'ModAns:' assigned to it. Here ModAns will search for the config-file, the login-text and the logout.txt. Also all the messages will be saved here. The will be given have the names 'Message0', 'Message1', 'Message2' etc. An example: If you want the files to be in the directory 'Mydir' on df1: then type the following at the dos-prompt. 1 > Assign ModAns: df1:Mydir The config-file. In this file you define certian things which affects the communication between the computer and the modem. It is inmportant that the keywords before the '=' character are in capitals. Important is also that there should be no spaces before and after the '=' character. Empty lines and lines that begin with a non-letter are ignored. INITSTRING These characters are sent to the modem when the program starts and after every login. The modem should NOT echo any character back to the computer. This can be done by giving the command 'ATE'. Also, the modem should NOT be in autoanswer- mode. This can be done by giving the command 'ATS0=0'. ANSWERSTRING These characters are sent to the modem when somebody calls. (When a 'RING' is detected) Typically this shold be 'ATA'. HANGUPSTRING These characters are sent to the modem when the modem is supposed to hang up. Typically this should be 'ATH'. HIGHBAUDRATE This is the highest baud-rate that your modem can make. The modem will be made to answer at this speed. Must be one of the following: 300,600,1200,2400,4800,9600,14400,19200. FIXED If this is set to 'YES' the modem will operate at fixed speed. (The speed will be the one given i HIGHBAUDRATE). Else this skould be set to 'NO'. PASSWORD The password that must be given to see all the messages from distance. DEVICE The device that ModAns will open to the modem. Typically this is 'serial.device'. When all this is done all you have to do is to start ModAns. Then a window will be opened where you can watch anybody who is online. If you want to spare som ememory when you don't use the program you can make the window as small as posible. Now the program will send the init-string to the modem and then wait for someone to call. When that happens it sends the answerstring and waits for a 'CONNECT xxxx' When this happens the login-text is displayed. If the user gets bored of wathing this procedure every time he can just press to break it. Now the user is in the editor. At the very beginning of the line you can always see which line you are typing. When you get to the end of the line the word you are currently writing is wrapped over to the next line. In the editor there are a few commands which are given by typing a '!' and then a letter at the beginning of a line. The commands are: !d x Deletes line number x. !i x Inserts a new line before line number x. When inserting a line word-wrap is disabled and you must end the line by pressing return. !r To read the whole text. !m Asks for a password and then (if the password was correct) displays all the message-files. !q Logs out without saving the text. !l Displays the login-text again. When you are finished typing you log out by pressing . Then the text will be saved, the logou-text will shoe up and then the modem hangs up. If you would like to have a word with the user online you press . Then you get into chat-mode. From here you log out as normal by pressing . If you want to see the login-text one more time when in chat-mode you press . If you are curios and wish to see how it looks like when somebody calls you can fool the program by typing 'RING'. Then yoy press twice. Type 'CONNECT 2400' (or any other speed) and press again. Bugs: I can't find any. Misbehaviours: There might be some problems if somebody drops the carrier instead of loging out the normal way. Especially if the carrier is dropped by typing '+++' and then 'ATH'. These night fix itself when someone calls the next time. This is untested. If you have any bugreports, suggestions or any other comment. Feel fre to contact me. Niklas Lindholm Marknadsvägen 203 2tr S-183 34 Täby SWEDEN +46-87684037