File: pagermap.4f

package info (click to toggle)
hylafax 2%3A6.0.5-4.1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 8,776 kB
  • ctags: 7,663
  • sloc: sh: 15,158; ansic: 13,231; makefile: 1,543; cpp: 781; awk: 529
file content (127 lines) | stat: -rw-r--r-- 4,216 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
.\"	$Id$
.\"
.\" HylaFAX Facsimile Software
.\"
.\" Copyright (c) 1995-1996 Sam Leffler
.\" Copyright (c) 1995-1996 Silicon Graphics, Inc.
.\" HylaFAX is a trademark of Silicon Graphics
.\" 
.\" Permission to use, copy, modify, distribute, and sell this software and 
.\" its documentation for any purpose is hereby granted without fee, provided
.\" that (i) the above copyright notices and this permission notice appear in
.\" all copies of the software and related documentation, and (ii) the names of
.\" Sam Leffler and Silicon Graphics may not be used in any advertising or
.\" publicity relating to the software without the specific, prior written
.\" permission of Sam Leffler and Silicon Graphics.
.\" 
.\" THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, 
.\" EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY 
.\" WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.  
.\" 
.\" IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
.\" ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
.\" OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
.\" WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF 
.\" LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE 
.\" OF THIS SOFTWARE.
.\"
.if n .po 0
.ds Fx \fIHyla\s-1FAX\s+1\fP
.TH PAGERMAP ${MANNUM4_5} "May 8, 1996"
.SH NAME
pagermap \- \s-1SNPP\s+1 pager identifier mapping file
.SH DESCRIPTION
The file
.B etc/pagermap
(by default) is used by the \s-1SNPP\s+1 support in
.IR hfaxd (${MANNUM1_8})
to map pager identifiers specified with the \s-1PAGE\s+1 directive
to
.SM IXO/TAP
or
.SM SMS
service providers and optionally a Pager Identification
Number (\s-1PIN\s+1).
(The ability to specify a \s-1PIN\s+1 makes it possible to define 
.I aliases
for pagers.)
Note that 
.B etc/pagermap
may be called a different name; the filename is specified
with the
.I PagerIDMapFile
configuration parameter read by
.IR hfaxd (${MANNUM1_8}).
.PP
The pagermap file is comprised of one or more
lines of the following format:
.sp
.nf
.RS
<\fIpattern\fP> <\fIdialstring\fP>[/<\fIpin\fP>]
.RE
.fi
.PP
Each line specifies a <\fIpattern\fP> that is matched against
a client-specified pager identifier string.
A pattern may be a plain string or a
.SM POSIX
1003.2 extended regular expression; plain strings
must compare exactly while regular expressions are unanchored and any
substring match constitutes a ``hit''.
Regular expressions are distinguished from plain strings by the
presence of one or more of the magic characters ``[]*.^$-+{}()''.
The <\fIdialstring\fP> identifies the
.SM IXO/TAP
or
.SM SMS
service provider to contact for delivery or, if <\fIdialstring\fP>
is the string ``reject'' (case insensitive) then the pager identifier
is rejected.
If the optional <\fIpin\fP> is specified then it used to deliver the
page instead of the client-specified identifier.
.PP
If the matching expression is a regular expression
the optional <\fIpin\fP\>
may reference the entire string matched by the
regular expression with the ``&'' character.
Substrings matched with the ``(...)'' constructs may be referenced
by using ``\e\fIn\fP'' where
.I n
is a single numeric digit between 1 and 9 that refers to the
.IR n -th
matched substring; c.f.
.IR re_format (7),
.IR sed (1),
etc.
.PP
.I hfaxd
processes lines in the mapping file sequentially; the first line
with a pattern that matches the pager identifier is used to deliver
or reject the page.
Lines that begin with a ``#'' are treated as comments and discarded.
Leading whitespace on a line is also ignored.
.SH EXAMPLES
The following defines an alias for ``sam'', submits all destinations
with a leading ``Sky'' to a particular
.SM IXO/TAP 
service provider, and otherwise rejects the pager ID.
(Note that using alphabetics in dial strings requires
a dialstring rules file that understands how to map alphabetics
to key codes\(emor one that passes them through verbatim.)
.sp .5
.nf
.RS
.ft C
.ta \w'Sky(.*)    'u
# a simple mapping example
sam	5551212/99
Sky(.*)	1800SkyTel/\e1
\&.*	reject
.ft P
.RE
.fi
.sp .5
.SH "SEE ALSO"
.IR hfaxd (${MANNUM1_8}),
.IR hylafax-server (${MANNUM4_5})