Distictive Ring
Devin Redlich (devin@pctc.com)
Wed, 21 Apr 1999 15:10:45 -0700
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? 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?
Muchos Gracias.
__
Devin Redlich
devin@pctc.com