]> git.ipfire.org Git - thirdparty/HylaFAX.git/commitdiff
[Bug 215] HylaFAX DNIS routing enhancement
authorDarren Nickerson <darren.nickerson@ifax.com>
Fri, 15 Feb 2002 04:31:02 +0000 (04:31 +0000)
committerDarren Nickerson <darren.nickerson@ifax.com>
Fri, 15 Feb 2002 04:31:02 +0000 (04:31 +0000)
Primarily a documentation update, other than passing the cid.name value
from faxgetty to faxrcvd. Thanks Lee!

faxd/faxGettyApp.c++
man/cid.4f
man/faxrcvd.1m
man/hylafax-config.4f
util/faxrcvd.sh.in

index ec0202a12e2d32702dbb769b465ceac1da8edb4b..c1d84de0774ffc404344d729444b0d7017df050b 100644 (file)
@@ -713,6 +713,7 @@ faxGettyApp::notifyRecvDone(const FaxRecvInfo& ri, const CallerID& cid)
        | quote |           getCommID() | enquote
        | quote |            ri.reason  | enquote
        | quote |           cid.number  | enquote
+       | quote |             cid.name  | enquote
     );
     traceServer("RECV FAX: %s", (const char*) cmd);
     setProcessPriority(BASE);                  // lower priority
index ae2ad684b6466e860d6c7b7b94e40c9390fc2862..fa7ca2b6407a788bf5e45ef082a5176dcd5dada7 100644 (file)
 .ds Fx \fIHyla\s-1FAX\s+1\fP
 .TH CID ${MANNUM4_5} "May 28, 2001"
 .SH NAME
-cid \- Caller-ID access control list
+cid \- Caller-ID and DNIS access control list
 .SH DESCRIPTION
 The \*(Fx configuration parameter
 .B QualifyCID
-specifies whether or not the identity of an inbound call
+specifies whether or not the identity or identifier of an inbound call
 should be checked against an access
 control list before the telephone is answered.
-If a modem is attached to a phone line that has Caller-ID service, and
+This both enables call screening against those values and fax routing
+(in faxrcvd's FaxDispatch) based on those values.
+If a modem is attached to a phone line that has 
+Caller-ID or DNIS service, and
 .B QualifyCID
-is non-null, then only the callers identified
-in the file specified by the string (typically \fBetc/cid\fP)
-will be answered.
+is non-null, then only the calls identified by
+strings matching 
+.B CIDNumber
+in the file 
+(typically \fBetc/cid\fP) will be answered.
 .PP
 Patterns are specified one per line and must conform to the
 regular expressions syntax specified by
@@ -101,17 +106,19 @@ matches the following phone number strings:
 Finally, note that regular expressions can be used to specify
 many numbers with one pattern.
 .SH NOTES
-The caller's telephone number is recognized by using the
+In the case of Caller-ID, the caller's identity, and in the case
+of DNIS, the called number, 
+is recognized by using the
 .B CIDNumber
 configuration parameter described in
 .IR hylafax-config (${MANNUM4_5}).
 This parameter must be present in the per-modem configuration
-file for Caller-ID screening to function properly.
+file for Caller-ID or DNIS screening or routing to function properly.
 If 
 .B QualifyCID
 is defined, but no
 .B CIDNumber
-is specified, then no phone numbers will be recognized and all
+is specified, then no match will occur and all
 incoming calls will be ignored.
 .PP
 Caller-ID data is only sent once by the telco, and the timing of
index 766a986fb8db0627a755668999d9a336ba75f5c4..5c3e451fa300dd8828f992ab5fa44980b765599d 100644 (file)
@@ -37,6 +37,7 @@ faxrcvd \- \*(Fx notification script for received facsimile
 .I commid
 .I error-msg
 .I cidnumber
+.I cidname
 .SH DESCRIPTION
 .B bin/faxrcvd
 is the command script invoked by the facsimile server whenever
@@ -67,6 +68,12 @@ the value of
 .B CIDNumber
 when using
 .B QualifyCID
+.TP
+.B cidname
+the value of
+.B CIDName
+when using
+.B QualifyCID
 .SH NOTES
 This script can route facsimile directly to the intended receipient.
 To do this create a shell script
@@ -95,11 +102,40 @@ esac\s+1
 .sp
 Note that you must match any embedded white space.
 The facsimile will be sent as a MIME-encoded PostScript document
-as default.  The attachment filetype is controlled by the
+as default.
+.TP
+.I CIDNAME
+is equivalent to
+.B CIDName
+above.
+.TP
+.I CIDNUMBER
+is equivalent to
+.B CIDNumber
+above.
+.TP
+.I DEVICE
+is equivalent to
+.B device
+above.
+.TP
 .I FILETYPE
-shell variable, and can be controlled as shown above.  Current
+controls the filetype of the image attachment.  Current
 filetype options are ``ps'', ``tif'', and ``pdf''.
-Consult the shell script for details.
+.TP
+.I MSG
+is equivalent to
+.B error-msg
+above.
+.TP
+.I SENDER
+is the received TSI of the fax sender.
+.TP
+.I SENDTO
+controls the recipient of the received fax notification.  It is
+given as an e-mail address.
+.TP
+Other shell variables are available.  Consult the faxrcvd script directly.
 .SH FILES
 .nf
 .ta \w'${SBIN}/faxinfo    'u
index 95df69109d4f49b0713716379a9edf5a633c5f0f..f8401559298627f188e7f0c4192f09231fecd480 100644 (file)
@@ -119,8 +119,8 @@ AdaptiveAnswer      boolean \s-1No\s+1      enable adaptive answer of inbound calls
 AnswerRotary   string  \s-1Any\s+1     alternatives for answering calls
 AnswerBias     integer \-      bias to apply to successful rotary answer 
 AreaCode\(S2   string  \-      local area code
-CIDName        string  \-      Caller \s-1ID\s+1 name pattern string
-CIDNumber      string  \-      Caller \s-1ID\s+1 number pattern string
+CIDName        string  \-      Caller \s-1ID\s+1 or DNIS name pattern string
+CIDNumber      string  \-      Caller \s-1ID\s+1 or DNIS number pattern string
 ClocalAsRoot   boolean \s-1No\s+1      set \s-1CLOCAL\s+1 using root \s-1UID\s+1
 ContCoverCmd\(S1       string  \s-1bin/mkcover\s+1     continuation cover page generation script
 ContCoverPage\(S1      string  \-      continuation cover page template filename
@@ -167,7 +167,7 @@ PollRcvdCmd string  \s-1bin/pollrcvd\s+1    delivery script for facsimile received b
 PostScriptTimeout\(S1  integer \s-1300\s+1     timeout on \*(Ps interpreter runs (secs)
 PriorityScheduling     boolean \s-1\fIsee below\fP\s+1 use available priority job scheduling mechanism
 PS2FaxCmd\(S1  string  \s-1bin/ps2fax\s+1      \*(Ps \s-1RIP\s+1 command script
-QualifyCID     string  \-      file of Caller-ID patterns for checking inbound calls
+QualifyCID     string  \-      file of Caller-ID or DNIS patterns for checking inbound calls
 QualifyTSI     string  \-      file of \s-1TSI\s+1 patterns for qualifying senders
 RecvDataFormat string  \s-1adaptive\s+1        format for received facsimile data
 RecvFileMode   octal   \s-10600\s+1    protection mode to use for received facsimile files
@@ -447,7 +447,7 @@ below.)
 .TP
 .B CIDName
 A string that identifies the caller's identity in any Caller-ID
-status messages.
+status messages or the called identity in any DNIS messages.
 The specified string is compared against any
 unrecognized status messages received from the modem before the
 phone is placed off-hook.
@@ -462,7 +462,7 @@ and
 .TP
 .B CIDNumber
 A string that identifies the caller's phone number in any Caller-ID
-status messages.
+status messages or the called number in any DNIS messages.
 The specified string is compared against any
 unrecognized status messages received from the modem before the
 phone is placed off-hook.
@@ -927,12 +927,13 @@ see
 .TP
 .B QualifyCID
 A string that specifies whether or not \fICaller-ID information\fP
+and/or \fIDNIS information\fP
 should be checked against an access control list before accepting
 an inbound call.
 If 
 .B QualifyCID
-is non-null and there is Caller-ID service,
-then only calls from phone numbers identified
+is non-null and there is Caller-ID or DNIS service,
+then only calls with data matching numbers identified
 in the file specified by this string (typically \fBetc/cid\fP)
 will be accepted; see
 .IR cid (${MANNUM4_5}).
@@ -940,15 +941,15 @@ If
 .B QualifyCID
 is not specified in the configuration file, or the value is
 null, then all incoming calls will be answered.
-Note that Caller-ID screening is only available when this
+Note that Caller-ID screening and DNIS routing are only available when this
 service is enabled on the phone line and the modem is capable of
-presenting Caller-ID status information to the host.
+presenting Caller-ID status or DNIS data information to the host.
 The
 .B CIDNumber
 and
 .B CIDName
 parameters must also be setup to reflect the manner in which
-the modem returns Caller-ID status information to the host.
+the modem returns Caller-ID status or DNIS data information to the host.
 .TP
 .B QualifyTSI
 A string that specifies whether or not the identity of 
index 409a71ae4a6ef4b23236e4fdc7cd620040f9c232..e9a34cb4ce25d14b17085263b26ed8cf6917ed75 100644 (file)
@@ -30,8 +30,8 @@
 #
 # faxrcvd file devID commID error-msg
 #
-if [ $# != 5 ]; then
-    echo "Usage: $0 file devID commID error-msg CIDNumber "
+if [ $# != 6 ]; then
+    echo "Usage: $0 file devID commID error-msg CIDNumber CIDName "
     exit 1
 fi
 
@@ -80,6 +80,7 @@ DEVICE="$2"
 COMMID="$3"
 MSG="$4"
 CIDNUMBER="$5"
+CIDNAME="$6"
 
 FILENAME=`echo $FILE | $SED -e 's/\.tif//' -e 's/recvq\///'`
 
@@ -124,6 +125,10 @@ if [ -f $FILE ]; then
            echo " CIDNumber: $CIDNUMBER"
            echo ""
        fi
+       if [ "$CIDNAME" ]; then
+           echo "   CIDName: $CIDNAME"
+           echo ""
+       fi
        if [ -n "$SENDTO" ]; then
            echo ""
            echo "The facsimile was automatically dispatched to: $SENDTO." 
@@ -169,6 +174,10 @@ if [ -f $FILE ]; then
            echo " CIDNumber: $CIDNUMBER"
            echo ""
         fi
+        if [ "$CIDNAME" ]; then
+           echo "   CIDName: $CIDNAME"
+           echo ""
+        fi
         echo ""
         echo "--$MIMEBOUNDARY"
         if [ "$FILETYPE" = "tif" ]; then