new patches

Marc SCHAEFER (schaefer@alphanet.ch)
10 Jan 1999 1908:59:11 +0100


Henk-Jan (Linux news.*) <hj_kloosterman@softhome.net> wrote:
> II. The installation of the "mgetty-1.1.19.vgetty-0901199.patch" goes
> allright, but I get errors when I do a make. Do you want me to make a log
> file?

well, this is the current state of the vgetty tree. You do not
need it for called ID mapping.

> III (I can not find it in the examples). Is it possible to map an ISDN MSNs
> to a distinctive ring?

Do it as follows: use a cnd_program like this one:


#! /bin/sh
# very simple MSN filtering (BOOLEAN)
# NOTES
#    - Arguments
#      <program> <tty> <CallerID> <Name> <dist-ring-nr.> <Called Nr.>

CND_SCRIPT_ACCEPT_CALL=0
CND_SCRIPT_IGNORE_CALL=257
CND_SCRIPT_REJECT_CALL=258
CND_SCRIPT_MORE_RINGS_NEEDED=259
CND_SCRIPT_LET_IT_RING=260

if [ $# != 5 ]; then
   exit $CND_SCRIPT_REJECT_CALL
fi

case $4 in
   1) exit $CND_SCRIPT_ACCEPT_CALL;;
      # 8414081, accept fax/modem (and also X.75)
   2) exit $CND_SCRIPT_ACCEPT_CALL;;
      # 8414037, accept X.75 (and also fax/modem).
   3) exit $CND_SCRIPT_ACCEPT_CALL;;
      # 8414013
#   4) if [ $RING_COUNT -lt 5 ]; then
#          exit $CND_SCRIPT_MORE_RINGS_NEEDED
#       else
#          exit $CND_SCRIPT_ACCEPT_CALL
#       fi;;
#      # 8414014
esac

exit $CND_SCRIPT_IGNORE_CALL

This will either accept or reject the call (needs called ID patch)
based on number.

Then, if you selected vgetty, it will call the vgetty program,
which can be this one:


#! /bin/sh

case $CALLED_ID in
   8414013) exec /usr/lib/mgetty/mvm_vgetty_script.sh;;
   8414037) export MVM_INSTANCE=8414037
            export SELECTED_LANGUAGE=NO_ASK
            exec /usr/lib/mgetty/mvm_vgetty_script.sh;;
esac

exit 3

Now you can in this vgetty script do all sort of other funny
things, in that case it launches mvm with special arguments.
However I also need to do a mvm release.