home *** CD-ROM | disk | FTP | other *** search
-
-
- Phone Utility for 4DOS
-
- by
-
- Marshall E. Giguere
- CIS ID: [71511,3513]
-
- Created: April 8, 1992
- Last revised: April 16, 1992
-
-
-
- Purpose:
- --------
-
- Phone works in conjunction with a freeform text database as described
- in DB.ZIP. Phone is a simple interface to your text database that
- can extract a series of records by a query string, extract the phone
- number from a selected record and then use your Hayes compatible
- modem as a dialer.
-
-
- Requirements:
- -------------
-
- PHONE requires:
-
- * 4DOS version 4.0 or later
- * DB utilities (DB.ZIP)
- * GREP or FGREP text search utility
- * ATMODEM (included)
- * Hayes compatible modem
-
-
- Acknowledgements:
- -----------------
-
- I would like to thank those people who have contributed either
- directly or indirectly to the PHONE utility. Donavon Kuhn and Jon
- Niedfeldt for their AT utility without which nothing would be
- possible and Myles Barrett for the original version of PHONE.BTM.
-
-
- Installation:
- -------------
-
- The 4Phone utility consists of three parts: PHONE.BTM, DIAL.BTM and
- AT.COM. The files PHONE.BTM and DIAL.BTM will be found in the ZIP
- file 4PHONE.ZIP. The utility AT.COM will be found in the file
- ATMODEM.ARC contained in 4PHONE.ZIP. Simply copy these files to
- where ever you keep your system utilities, e.g. \BIN.
-
-
- Using PHONE:
- ------------
-
-
- PHONE provides the interface to the DIAL.BTM phone dialer through a
- DB (freeform text database). You place a call by first issuing the
- PHONE command with a search string. The PHONE command has the form:
-
- PHONE search-string [number prefix]
-
- Example:
-
- C:\ > PHONE Fred
-
- The above causes PHONE to examine the DB file for instances of
- records containing the string "Fred". PHONE the creates a pop-up
- select list containing all the records in your database that
- contained the string "Fred". You may then select the proper record
- using the arrow keys on your keyboard and PHONE will then process the
- number and dial your phone.
-
-
- Configuring PHONE:
- ------------------
-
- PHONE.BTM requires access to the text search utility FGREP for
- scanning the DB file and selecting records.
-
- There are several variables used by PHONE to perform its function:
-
- Variable Purpose
- -------- -------
-
- %ac set to contain your area code
- %dbpath the directory contaning your DB file.
- %dc contains the list of local codes.
- %prefix set to any prefix you want default is nothing.
- %temp4dos where 4DOS will create temporary files.
-
- The variables AC, DC, and PREFIX will be found in the file PHONE.BTM,
- TEMP4DOS should be set in your AUTOEXEC.BAT file.
-
-
- Setting %AC:
- ------------
-
- Set AC to your area code. PHONE uses this to determine if you a
- making a call outside of your area code and therefore need to prefix
- the phone number with a "1". If your area code is 408 then change
- the SET AC= statement in PHONE.BTM as follows:
-
- SET AC=408
-
-
- Setting %DC:
- ------------
-
- The %DC variable is a comma seperated list of local codes, those
- local codes you may dial with out first dialing a 1. PHONE uses this
- list to determine whether or not to prefix the selected number with a
- "1". This list may be found in the front of your local phone
- directory. Example:
-
- SET DC=555,555,555,555
-
-
- Setting %PREFIX:
- ----------------
-
- PHONE will prefix any phone number with the contents of this
- variable. As installed %PREFIX is undefined. If you are using PHONE
- from an office that requires you to dial an access number to get to
- an outside line you might define PREFIX to contain the access number,
- e.g. you need to dial a "9" to get an outside line:
-
- SET PREFIX=9
-
- PHONE will now prefix each phone number with a "9".
-
-
- Format of phone numbers:
- ------------------------
-
- Phone numbers obey simple syntactic conventions. A phone number is
- simply a string of numbers preceded by the sentinel string "**".
- Some examples of valid phone numbers:
-
- **(555)-555-5555
- **555-555-5555
- **5555
-
- Phone numbers may ONLY consist of the characters "0123456789()-#*.;".
- The characters ".;" are meta characters and change the behavior of
- PHONE. Metacharacters have the following meaning:
-
- metacharacter meaning
- ------------- ------------------------------------------
- . if a number begins with the "." the number
- is simply dialed as is no attempt is made
- to determine area code etc.
-
- ; If a number is terminated with a ";" PHONE
- will place the modem into continued dialing
- mode. This allows you to continue entering
- more numbers to be dial. This is useful for
- calling into automated systems, or networks
- that require you to enter more codes.
-
-
-
- Examples:
-
-
- **.5555 Dail this number as is.
- **(555)-555-5555; Dial this number and wait for
- more dialing codes.
-
- DIAL.BTM:
- ---------
-
- DIAL.BTM provides the interface to your modem for the purpose of
- dialing a phone number. DIAL also saves the last number dialed and
- allows you to continue entering dialing codes if a number is
- terminated with a ";". Finally DIAL will allow you to edit a number
- if you a keypress is detected before dialing begins.
-
-
- Configuring DIAL:
- -----------------
-
- DIAL.BTM contains the variable %PORT which tells DIAL which COMn: device
- your modem is connected to. The currently set default value of %PORT
- is COM2:. The %PORT variable MUST be set properly before using DIAL.BTM
- or DIAL will be unable to connect to your modem.
-
-
- Using DIAL:
- -----------
-
- DIAL is normally called by PHONE, however, you may use DIAL as a
- standalone phone dialer. The DIAL command has the following form:
-
- DIAL [phone-number[;]]
-
-
- Examples:
-
-
- DIAL 555-5555
-
- Dials the number and exits command mode.
- NOTE: You must pick up the hand set before
- dialing is completed or the modem will
- go on-hook (hang-up the line).
-
-
- DIAL 1-555-5555;
-
- Dials the number and prompts for more dialing codes.
- The modem stays off-hook and accepts further input until
- a carriage return is entered, i.e. an empty line.
-
-
- DIAL
-
- Redial the last number.
-