Marc SCHAEFER <schaefer@alphanet.ch> wrote:
> For details: (see also example in add_ons/)
Really, I did implement that mostly completely. Memory, memory.
> the pipe protocol; or create a file somewhere which is handled by the
> next new_fax, but that's less reliable.
This is the implementation.
Look for mvm/add_ons/fax
This is the README (for fax-forwarding)
1. You want the user to be able to receive fax to a user-indicated
number.
Add this to /usr/spool/voice/main/commands
8 param_cmd 1 /usr/spool/voice/main/fax_operation_description_file
Create /usr/spool/voice/main/fax_operation_description_file with:
enter_fax_number_prompt queue_fax.sh prepare_your_fax_now couldnt_queue_fax
Create a file /usr/spool/voice/messages/enter_fax_number_prompt with
appropriate content (Please enter your fax number, e.g.).
Create a file /usr/spool/voice/messages/prepare_your_fax_now with
appropriate content (Please prepare your fax machine, e.g.).
Create a file /usr/spool/voice/messages/couldnt_queue_fax with
appropriate content (Internal error, e.g.).
Use the script named as queue_fax.sh and put it in $SCRIPTS_DIR.
Adapt that script.
2. You want to use this as a fax forwarding capability:
here is in detail how it works:
- the menu /usr/spool/voice/main/commands must contain a single
option which is e.g. 7 or 8 (choose an unused one), such as:
(leftflushed)
7 param_cmd 5 /usr/spool/voice/main/fax_forwarding_description_file
- the file /usr/spool/voice/main/fax_forwarding_description_file
must contain (leftflushed)
enter_fax_number_prompt get_fax.sh prepare_your_fax_now processing_error
- /usr/spool/voice/messages/{enter_fax_number_prompt|prepare_your_fax_now|pr$
must have been generated or recorded.
- use get_fax.sh from this directory to $SCRIPTS_DIR.
- the users you want to be able to use this fax-forwarding facility
must have a file .level in their voicemailbox containing a single
number which must be 5
echo 5 > /usr/spool/voice/mailboxes/NUMBER/.level
the 5 is the 3rd argument in the commands file.