home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / dec / 6771 < prev    next >
Encoding:
Internet Message Format  |  1993-01-08  |  2.5 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!darwin.sura.net!haven.umd.edu!umd5!gotail.umd.edu!BLEAU
  2. From: bleau@umdsp.umd.edu
  3. Newsgroups: comp.sys.dec
  4. Subject: Re: question about phone utility
  5. Message-ID: <17873@umd5.umd.edu>
  6. Date: 9 Jan 93 00:45:52 GMT
  7. References: <1993Jan5.002352.13386@bsu-ucs>
  8. Sender: news@umd5.umd.edu
  9. Reply-To: bleau@umdsp.umd.edu
  10. Organization: University of Maryland Physics Dept.
  11. Lines: 38
  12.  
  13. In article <1993Jan5.002352.13386@bsu-ucs>, 01jmbrown@leo.bsuvc.bsu.edu writes:
  14. >
  15. >
  16. >This may be an incredibly elementary question, but I'll risk it...
  17. >
  18. >Anyone know if there's a way to isolate the output from the VAX Phone Utility?
  19. >
  20. >I'm thinking along the lines of logicals like SYS$OUTPUT and SYS$ERROR and
  21. >PAS$OUTPUT, etc., which you can assign to files. What I'm trying to do is
  22. >capture the output of the message, "(USERNAME) is phoning you .. blah blah" and
  23. >stick it to a file somewhere, so that perhaps the file can be searched for
  24. >usernames before the phone call is accepted. That way obnoxious jerks could be
  25. >kept from phoning a user without the user having to turn off their broadcast.
  26. >
  27. >anyone know of a way to accomplish this?
  28.  
  29. Actually, although this may sound like an elementary question, ths solution is
  30. not as simple.  First, it can be done, because TPU does it.  When someone
  31. PHONEs me the message is displayed at the bottom of my screen, not in the
  32. middle of my text.  I don't know the exact mechanism used, but I can make a
  33. good stab at it, and the rest you can get from the documentation set.  First,
  34. open a channel to OPCOM's mailbox.  BTW, this is part I'm unsure about.  It may
  35. be a system service other than $ASSIGN, or may be to someone else's mailbox. 
  36. Check keywords operator message, mailbox, and broadcast in your index.  Next,
  37. issue a $QIO to it with a completion AST.  Now that it's set up, every time you
  38. get a broadcast message of some type (actually, I think any type) your routine
  39. gets activated, and you can check the class of the message, text, source, etc.
  40. If it is from PHONE, check the content of the message for the username and
  41. compare it against your list.  If there is a match, send a message to the user
  42. (the one running the program) that a friendly user is calling, and do whatever
  43. you want next, including lib$spawn-ing a PHONE ANSWER command.  Be sure to
  44. reactivate you're qio so the next message gets intercepted, too.  Excuse me for
  45. any technical details I've gotten wrong; I've never tried this.  Good luck!
  46.  
  47. Larry Bleau
  48. University of Maryland
  49. bleau@umdsp.umd.edu
  50. 301-405-6223
  51.