Distictive Ring
Gert Doering (gert@greenie.muc.de)
Thu, 22 Apr 1999 08:30:40 +0200
Hi,
On Wed, Apr 21, 1999 at 03:10:45PM -0700, Devin Redlich wrote:
> At 11:38 PM 4/21/99 +0200, Gert Doering wrote:
> >Use "cnd-program" to save the RING number somewhere, accept the call, read
> >the saved value from "new_fax" and act upon it.
> >
> >Not too elegant, but possible.
>
> Hmm. So, use a cnd-program like so:
>
> #!/bin/bash
> echo $4 > /var/distring/$1
> exit 0
>
> and a new_fax that does something like:
>
> #!/bin/bash
> tty="tty`echo $4 | cut -c10-11`"
> distring=`cat /var/distring/$tty`
> case $distring in
> 1)
> #do something
> ;;
> 2)
> #do something different
> ;;
> esac
>
> Or something like that?
Yep. This is pretty much what I had in mind.
> That looks pretty workable for me. Perhaps in a
> future version, could you set the distinctive ring number as an environment
> variable in new_fax's environment (simmilar to what Marc suggested for the
> called number, but for us non-ISDN types), or pass it as a parameter to
> new_fax?
Parameter: no - it will break too many scripts.
Environment: yes.
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