Technical information

EVENT NOTIFY PROCEDURES
113
When an LNP is run, the fax request file will always be available to the procedure. This file is
$VSIFAX/spool/temp/f-$REQID.tif for a regular request or $VSIFAX/spool/temp/gf-$GRPID.tif for a
group request.
Syntax
Site and user LNPs are called directly from the system LNP, which passes the following arguments to the site and
user LNPs:
$1
Unique request-ID for this fax. Value is zero (0) for group fax requests.
$2
VSI-FAX user ID who submitted the fax request.
$3
Notification email address specified by the sender.
$4
Time this fax attempt was submitted.
$5
Notification mode specified by the sender. Values are:
none Never notify
ok Notify on success
fail Notify on failure
both Always notify
each Notify on each attempt
$6
Unique group fax request ID. Value is zero (0) for normal (non-group) fax requests.
$7
If a normal (non-group) fax, total number of pages in this fax request (including cover pages). If a group fax,
number of recipients in the group.
$8
Recipient's fax number. Value is a null string ("") for group faxes.
$9
Flag indicating whether Least Cost Routing (LCR) is enabled (1) or disabled (0).
Examples
This shell script archives all regular fax requests to the /usr/fax/archive/reg directory and archives all group
requests to the /usr/fax/archive/grp directory:
#!/bin/sh
# lnp-site.sh
REG_DIR=/usr/fax/archive/reg
GRP_DIR=/usr/fax/archive/grp
REQID=$1
GRPID=$6
if [ $GRPID -eq 0 ]
then
FILE=$VSIFAX/spool/temp/f-$REQID.tif
cp $FILE $REG_DIR/$REQID.tif
else
FILE=$VSIFAX/spool/temp/gf-$GRPID.tif
cp $FILE $GRP_DIR/$GRPID.tif
fi
exit 0