TIP: Click on subject to list as thread! ANSI
echo: commo
to: AL KEITH
from: JIM BENNETT
date: 1995-04-01 10:44:00
subject: Callwaiting

Hi..
 AK> Hello Jim, could I get you to write a script to provide a
 AK> ring-back feature for MOSTHOST while in COMMO's terminal mode?
Sure..here it is (name it RBACK.MAC):
{:START}
        {SETE-P0 exit}{CLEA}
        {SETV rback}
        {LOOK RING}
        {SETL 8,rback_y}
   {:OTHER}
        {LOOK RING}
        {SETL 8,rback_n}
        {GOTO other}
   {:LOADB}
        {COMP rback,yes}
        {IFCO ,start}
        {CALL bbs,mosthost.mac}
        {GOTO start}
{:RBACK_Y}{SETV rback,yes}{GOTO loadb}
{:RBACK_N}{SETV rback,no}{GOTO loadb}
{:EXIT}{exit}
May not be the most elegant (but I don't think it's *too* bad ),
and it works (as tested here).  Requires some mods to the
MOSTHOST.MAC..see below.  To run the macro, use the following command
line from DOS:
        commo /Mrback.mac /:start
Pressing "esc" while RBACK.MAC is running will exit to dos.
 AK> call back a second time (after waiting 15 seconds) and MOSTHOST
 AK> would answer the first "RING".  (Should be a "timer" here in case
 AK> you don't callback within, say 90 seconds, it will return to
 AK> "Waiting for a call."
Once MOSTHOST is loaded, it will "wait for call" forever, just as if
you had loaded MOSTHOST from your {COMMO} utility menu.  It will
answer on the first ring whenever you call, just as it would
otherwise do.
 AK> P.S. When you press [G]oodby in MOSTHOST, it would need to exit back
 AK> to the callwait script so it can "wait for calls...."
MOSTHOST would need to be modified.  Here's the mod:
1.  Load mosthost.mac into an editor
2.  Search for "{:hng}"
3.  Change this from
        {:hng}
            {SETV success}
            {GOTO bbs}
  to
       {:hng}
           {SETV success}
           {COMP rback,yes}{IFCO return,bbs}
       {:return}{retu}
This will set it to return to the RBACK.MAC macro at {:START}
whenever you hangup..assuming mosthost was CALLed from RBACK.MAC in
the first place.  If mosthost were executed from your {COMMO} utility
screen (i.e., you want to turn on your host normally), then mosthost
would go back to the "waiting for caller" screen after someone hangs
up from logging into the host.
 AK> What do you think?
I think it's a done deal :)  Like I said, I tested RBACK.MAC here,
along with the MOSTHOST.MAC mod I mentioned.  Works great.  Only one
ring..mosthost is loaded..more than one, it just goes back to waiting
for the phone to ring after the phone stopped ringing from the first
call, and starts all over again.  If MOSTHOST is loaded normally,
then it still operates normally.
Jim
                                                                              
                                                                      
--- JCQWK
---------------
* Origin: Meredith Place Mail Drop (1:300/15)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.