🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.dec
Article #4399

Re: question about phone utility

#4399
From: bleau
Date: Sat, 09 Jan 1993 00:45
38 lines
2603 bytes
In article <1993Jan5.002352.13386@bsu-ucs>, 01jmbrown@leo.bsuvc.bsu.edu writes:
>
>
>This may be an incredibly elementary question, but I'll risk it...
>
>Anyone know if there's a way to isolate the output from the VAX Phone Utility?
>
>I'm thinking along the lines of logicals like SYS$OUTPUT and SYS$ERROR and
>PAS$OUTPUT, etc., which you can assign to files. What I'm trying to do is
>capture the output of the message, "(USERNAME) is phoning you .. blah blah" and
>stick it to a file somewhere, so that perhaps the file can be searched for
>usernames before the phone call is accepted. That way obnoxious jerks could be
>kept from phoning a user without the user having to turn off their broadcast.
>
>anyone know of a way to accomplish this?

Actually, although this may sound like an elementary question, ths solution is
not as simple.  First, it can be done, because TPU does it.  When someone
PHONEs me the message is displayed at the bottom of my screen, not in the
middle of my text.  I don't know the exact mechanism used, but I can make a
good stab at it, and the rest you can get from the documentation set.  First,
open a channel to OPCOM's mailbox.  BTW, this is part I'm unsure about.  It may
be a system service other than $ASSIGN, or may be to someone else's mailbox. 
Check keywords operator message, mailbox, and broadcast in your index.  Next,
issue a $QIO to it with a completion AST.  Now that it's set up, every time you
get a broadcast message of some type (actually, I think any type) your routine
gets activated, and you can check the class of the message, text, source, etc.
If it is from PHONE, check the content of the message for the username and
compare it against your list.  If there is a match, send a message to the user
(the one running the program) that a friendly user is calling, and do whatever
you want next, including lib$spawn-ing a PHONE ANSWER command.  Be sure to
reactivate you're qio so the next message gets intercepted, too.  Excuse me for
any technical details I've gotten wrong; I've never tried this.  Good luck!

Larry Bleau
University of Maryland
bleau@umdsp.umd.edu
301-405-6223
Technical Details
Message-ID: <17873@umd5.umd.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!darwin.sura.net!haven.umd.edu!umd5!gotail.umd.edu!BLEAU
References: <1993Jan5.002352.13386@bsu-ucs>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!darwin.sura.net!haven.umd.edu!umd5!gotail.umd.edu!BLEAU
From: bleau@umdsp.umd.edu
Newsgroups: comp.sys.dec
Subject: Re: question about phone utility
Message-ID: <17873@umd5.umd.edu>
Date: 9 Jan 93 00:45:52 GMT
References: <1993Jan5.002352.13386@bsu-ucs>
Sender: news@umd5.umd.edu
Reply-To: bleau@umdsp.umd.edu
Organization: University of Maryland Physics Dept.
Lines: 38