mgetty 1.15?

Gert Doering (gert@greenie.muc.de)
Wed, 17 Jun 1998 20:10:03 +0200


Hi,

Paul Miller wrote:
> How far is the next release from being completed?

It's definitely going to be released before July 3rd.  

What is the meaning of "completed" in the context of a development
release?

> And is that external execution of a program with the caller id information
> feature going to be included?

Yeup.  It's done, and works nicely.  Quoting from mgetty.texi:

--------------------------------
...
For most applications, this kind of static configuration is enough.  If
you have special needs, you can choose to run an external program to
decide this.  The program name is configured with the @code{cnd-program}
statement in @file{mgetty.config}.  Its command line arguments are:

@example
  <program> <tty> <CallerID> <dist-ring-nr.> <Called Nr.>
@end example

@code{CallerID} is the number of the caller, if known, or @samp{none}, if
not.  @code{dist-ring-nr.} is the RING type, if you have ``distinctive
RING'' on your telephone line and your modem supports this, or ``0''
for an unidentified call.  @code{Called Nr.} is the number that was called
(this is only meaningful if you have ISDN, and your modem signals the
complete number called to the host - e.g. ELSA or ZyXEL 2864I do that).

For example, a call from 12345 to 56789, using ISDN, coming in on ttyS3,
could lead to a program called like this:

@example
  check.cnd ttyS3 12345 0 56789
@end example

The program return value decides whether the call should be accepted.
Currently, the following values are defined:

@display
 0 - accept call, no specific preferences
 1 - reject call
@end display

Future versions will allow external selection of the way mgetty/vgetty is
supposed to answer the call (data/voice/fax/...), but that's not
implemented yet.

Note: this can not only be used to decide whether to accept a call or not.
You could as well use it to display the caller ID on an external LCD
screen, in an X11 window, print it, initiate a D-Channel Callback, or do
whatever you want that needs the Caller ID data.

@strong{Note2: be careful what kind of programs you call! They run with
user id 0 (root), so that could easily be a security risk if you're not
careful.}

--------------------------------

I, for example, use this to have my ZyXEL 2864DI monitor our voice lines,
ignore all incoming calls, and display the Caller ID via syslog...

gert


-- 
USENET is *not* the non-clickable part of WWW!
                                                           //www.muc.de/~gert/
Gert Doering - Munich, Germany                             gert@greenie.muc.de
fax: +49-89-35655025                        gert.doering@physik.tu-muenchen.de