Is that possible with vgetty ?
Marc SCHAEFER (schaefer@alphanet.ch)
17 Jan 1999 1910:01:52 +0100
Marc SCHAEFER <schaefer@alphanet.ch> wrote:
> This is implemented in mvm-current, look for param_cmd command file
> argument. It's just needs the user to identify at this time, but this
> can be removed.
For details: (see also example in add_ons/)
1. use this in the /usr/spool/voice/main/commands file
0 goodbye 0
8 param_cmd 0 /usr/spool/voice/main/fax_operation_description_file
# message_to_operator 0
this will by the way not request user identification (use 1 as
parameter instead of zero). Hitting a 8 goes to this mode.
2. Now in the fax_operation_description_file:
enter_fax_number_prompt queue_fax.sh prepare_your_fax_now couldnt_queue_fax
^rmd format for prompt ^script ^rmd format ^rmd format
The prompts are to be in the /usr/spool/voice/messages directory.
3. in queue_fax.sh (in the $SCRIPTS directory)
#! /bin/sh
# MVM Project (C) Marc SCHAEFER <schaefer@alphanet.ch>
# queue_fax.sh -- Queue a mail to a fax server with user specified number.
# Creation: 08/03/98
# Update: 12/04/98
# V2.0 PV002
# DISCLAIMER
# No warranty, either expressed or implied.
# COPYRIGHT
# Fully protected under Berne Convention, use authorized except
# if you make money from this use (contact me before).
# DESCRIPTION
# This shell script queues a fax by mail. Look at the README in
# the same directory for details. This is just an example.
# BUGS
# TODO
# NOTES
# BASED-ON
# voice_script.sh V1.3 PV004 of 08/02/98.
# MODIFICATION-HISTORY
# 08/03/98 schaefer Created this file.
# 12/04/98 schaefer better comments.
# $Id: queue_fax.sh,v 1.2 1998/04/12 14:27:30 schaefer Exp $
echo "fax $1 vmaccount $2" | mail -s "example" root
exit 0
Ideally, this would maybe tell vgetty that the next fax is ID X through
the pipe protocol; or create a file somewhere which is handled by the
next new_fax, but that's less reliable.
Try that and if it works we will do the rest.