callerid variable
Gert Doering (gert@greenie.muc.de)
Sat, 7 Nov 1998 14:29:11 +0100
Hi,
On Sat, Nov 07, 1998 at 03:19:34AM +0100, Daniel D. Barber wrote:
> When mgetty/vgetty grabs the caller id and passes it to the cnd_program,
> what variable does it use?
cnd-program gets the caller ID on the command line.
> IE, when doing some shell programming with
> the call_program that vgetty starts upon receipt of a call, how can I
> refer to the callerid that the mgetty pulls?
In vgetty's call_program, I'm not sure. If it is exported at all, it
will be in $CALLER_ID. I think Marc Schaefer has sent patches to Marc
Eberhard for exporting the caller ID to voice scripts as well, but I'm
not sure off my head whether they have already been integrated.
(CALLER_ID is what is used for programs called from login.config).
> PS. I have successfully written a series of simple shell scripts that
> will act as a switchboard. Depending upon the caller's callerid, the
> switchboard will send it to different greetings -- including one which
> will just hang up. IE, you can personalize your messages to different
> people. If anyone is interested in this, please let me know.
Sounds good. If it isn't too customized for your personal use, and if
it's documented well enougth that people won't start asking *me*
questions about it, I'll happily include it into the docs. (But be
warned - this will generate heaps of e-mail to you, I'm sure of it! :) ).
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