home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Bila Vrana
/
BILA_VRANA.iso
/
019A
/
BGFAX160.ZIP
/
DOCS
/
WAFFLE.TXT
< prev
next >
Wrap
Text File
|
1995-08-12
|
12KB
|
322 lines
By: Gregory Youngblood zeta@tcscs.com 707-489-7500
Of: The Complete Solution BBS Data/Fax: 707-459-9058
Date: 9/14/93; Revision 2
Date: 9/13/93; Revision 1
************************* UPDATE for BG Fax 1.06 ****************************
* BGFax 1.06 adds some new features. Make sure to read the docs for the *
* new version along with these instructions to understand new options. The *
* marked changes to this file to reflect new features in 1.06 with a double *
* astericks ("**"). If you have version 1.05 then you can ignore those *
* items, otherwise, make sure you include the updates for BGFax to work *
* with Waffle BBS. *
*****************************************************************************
This file explains how to set up BGFax to use with Waffle BBS. The config
file and batch files are slightly edited versions of batchfiles in use at
The Complete Solution BBS. This file covers BGFax 1.05.
Thanks goes to marc@mala.proteus.qc.ca for his configuration files from which
I was able to expand upon.
Those who use Waffle as a BBS are used to the one letter commands that are
used while the BBS of "Awaiting Call.." such as P for POLL and C for Chrome
and so on. Using BGFax to answer calls Waffle Sysops lose those letters.
These instructions will maintain several of those functions while allowing
your faxmodem to receive fax or data calls. Best of all, your existing users
won't see the modifications.
NOTE: The MODEM init strings used in these configurations are for a Practical
Peripherals PM14400FXMT (Rockwell based) fax/modem. The base configuration
has been stored in location 0 and can be retrieved with ATZ0 if I should
want to. Instead I always init the modem starting with the factory defaults
and make the needed changes for my tastes. This way I've always got the
changes if another misbehaved program changes my settings.
This works under OS/2 2.1 beta (3/93) and probably under 2.1 GA as well. I
also use Ray Gwinn's SIO/VSIO/VX00 package, version 1.02. I found that
adding the line
RUN=C:\OS2\MODE.COM COM1:19200,N,8,1,,XON=OFF,IDSR=ON,ODSR=ON,OCTS=ON,
RTS=HS,DTR=ON,BUFFER=AUTO
to the end of the CONFIG.SYS file helps out. Note, this line should be on
one line. I had to split the line to fit in 80 columns.
I also recommend using BGFax in Front End mode since I had some problems
getting Waffle to recognize the +FCON message that my modem returns.
First, the BGFAX.CNF file:
;Start BGFAX.CNF file
;--------------------------------------------------------------------------
;Basic Configuration
;COM1, set speed to 19200, choose QLII Fax documents, set incoming directory
;--------------------------------------------------------------------------
po=1
ft=Q
sp=19200
rp=d:\BGFAX\incoming
;** tc added in 1.06
tc=ATH0
;--------------------------------------------------------------------------
;Init
;Displays CONNECT xxx where xxx is speed of caller, and some extra stuff for
;data callers. Set FAX mode, set Fax Id to Data/Fax number, see BGFAX.DOC!
;--------------------------------------------------------------------------
in=AT&F0e1l1m1w2&c1&d2&k3s0=0s11=70s46=2s95=3
in=AT+FCR=1;+FLID="707-459-9058";+FDCC=1,5,0,2,0,0,0,0
;--------------------------------------------------------------------------
;Front End configuration
;Answer first ring with adaptive answering enabled. If data call load BBS
;immediately. Display BBS name if it displays anything. Send /xxx in
;CONNECT 14400/xxx to batch file that calls BBS. Accept all calls 300 bps
;and faster, allow Waffle to display call not accepted message if too slow.
;--------------------------------------------------------------------------
ri=1
an=AT+FAA=1;A
do=<load>
lo=The Complete Solution BBS
ec=<echo>
sl=300
ts=Calls are not accepted below 300bps.
;--------------------------------------------------------------------------
;Keys (ALT + letter exits with errorlevel
;S for local login
;X for exit
;C for Chrome
;P for Poll
;--------------------------------------------------------------------------
;**ky added in 1.06
ky=C,244
ky=S,245
ky=P,246
ky=X,0
;--------------------------------------------------------------------------
;Events (taken from Waffle's schedule)
;--------------------------------------------------------------------------
ev=00:00,247
ev=07:00,246
;--------------------------------------------------------------------------
;Fax Send Setup
;--------------------------------------------------------------------------
si=AT&f0e1l1m1w2&c1&d2&k3s0=0s11=70s46=2s95=3
si=AT+FLID="713 893 9124"
ds=ATDT
mb=3
mf=3
;End BGFAX.CNF file
Each setting is explained. If more info is needed see the BGFAX.CNF file in
the distribution file for BGFAX.
The port was set to 19,200 because I was having problems getting OS/2 to
change port speeds from 57,600 down to 19,200 for faxes. I will play with
some other settings and such later, but for now this configuration works
fine. I've received several faxes using this configuration already.
The next file is what I've called BBS.BAT. This is what will replace RUN.BAT
for Waffle. I used a new batch file in case I needed to go back to a
known working RUN.BAT later on. Make sure to note the WAF_MENU section as
that is where you can put extra options.
@echo off
CLS
:TOP
BGFAX.EXE
If ERRORLEVEL == 247 goto MAINT
If ERRORLEVEL == 246 goto POLL
REM ** Errorlevels for 245 and 244 added for new ALT-Key codes in 1.06
IF ERRORLEVEL == 245 GOTO LOCAL
IF ERRORLEVEL == 244 GOTO CHROME
If ERRORLEVEL == 4 goto FAX
If ERRORLEVEL == 3 goto WAF_MENU
If ERRORLEVEL == 2 goto WAFFLE
If ERRORLEVEL == 1 BBS.BAT
Goto End
:MAINT
REM Run Door Maintenance
call doormnt.bat
REM Run ALLFILES listing
call allfiles.bat
REM Expire newsgroups
call expire.bat
REM Run VACATION
call vacation.bat
REM Run stats for term program to track LD costs
call tmstats.bat 1
REM Delay for 60 seconds to make sure that event doesn't get run again
be delay 1080
Goto TOP
:POLL
Rem Poll CCM for 10 minutes or until connection established
call poll.bat ccm 10
REM Delay for 60 seconds to make sure that event doesn't get run again
be delay 1080
Goto TOP
:FAX
call %BGFAX%\doprint.bat
goto TOP
:WAF_MENU
REM USING a batch utility that allows single character input without pressing
REM Return and then exits using ERRORLEVEL to determine choice. This example
REM uses BE.EXE from Norton Utils 6. The options are virtually limitless,
REM I personally have 12, this example just lists 4. C=Command.COM (my
REM personal replacement for Chrome), P=POLL, S=Sysop Login, U=UUQ.
type %BGFAX%\waf_menu.txt
BE ASK "" CPSU Default=P
IF ERRORLEVEL == 4 GOTO UUQ
IF ERRORLEVEL == 3 GOTO LOCAL
IF ERRORLEVEL == 2 GOTO POLL
IF ERRORLEVEL == 1 GOTO CHROME
Goto TOP
:UUQ
uuq.exe
pause
goto TOP
:LOCAL
call %BGFAX%\dobbs.bat LOCAL
goto TOP
:CHROME
command.com
goto TOP
:WAFFLE
call %BGFAX%\dobbs.bat
:END
Since BGFAX uses RETURN to start the local login, I have put a sort of
menu system in that gives me back some of the functionality of Waffle when
it is waiting for a call. Instead of starting the Waffle Local when
RETURN is pressed I display a menu, such as:
The Complete Solution BBS Interactive MENU
C Command Shell P Poll Neighbor
S Local Login U Query Outgoing
And then using some utility to read input and return an errorlevel I
can launch any of these or anything else I might want to put in this menu.
************************* UPDATE for BG Fax 1.06 ****************************
* BGFAX 1.06 now supports exiting with errorcodes for ALT-Key combinations. *
* The above example has been updated to work with 1.06 and still maintains *
* the use of the MENU system as described for 1.05. Since 1.06 has this *
* new feature, then the RETURN key can be put back to local log in. To *