Initial import from FreeBSD RELENG_4:
[dragonfly.git] / etc / isdn / isdnd.rc.sample
1 #------------------------------------------------------------------------------
2 #
3 #       example of a configuration file for the isdn daemon
4 #       ---------------------------------------------------
5 #
6 # $FreeBSD: src/etc/isdn/isdnd.rc.sample,v 1.2.2.1 2001/08/01 20:34:38 obrien Exp $
7 #
8 #       last edit-date: [Sun May 27 09:33:59 2001]
9 #
10 #       NOTICE:
11 #       =======
12 #       This configuration file is an EXAMPLE only and MUST be edited
13 #       carefully to get the desired results!
14 #
15 #       Please read the "isdnd.rc" manual page (execute "man isdnd.rc")
16 #       for reference !
17 #
18 #------------------------------------------------------------------------------
19
20 #==============================================================================
21 # SYSTEM section: isdnd global configuration parameters
22 #==============================================================================
23 system
24
25 # accounting
26 # ----------
27
28 acctall         = on                    # generate info for everything
29 acctfile        = /var/log/isdnd.acct   # name & location of accounting file
30 useacctfile     = yes                   # generate accouting info to file
31
32 # monitor
33 # -------
34
35 monitor-allowed = no                    # global switch: monitor on/off
36 monitor-port    = 451                   # default monitor TCP port
37
38 # Monitor rights are granted due to the most specific host/net spec, i.e. in 
39 # the example below host 192.168.1.2 will have the rights specified on that
40 # line, even so it belongs to net 192.168.1.0/24 as well.
41 #
42 # A monitor specification may either be:
43 #
44 #  - the name of a local (UNIX-domain) socket; this MUST start with a "/"
45 monitor         = "/var/run/isdn-monitor" 
46 monitor-access  = fullcmd
47 monitor-access  = channelstate, logevents
48 monitor-access  = callin, callout
49 #
50 #  - a dotted-quad host spec
51 monitor         = "192.168.1.2"
52 monitor-access  = restrictedcmd, channelstate, callin, callout
53 #
54 #  - a dotted-quad net spec with "/len" (CIDR-style) netmask spec
55 monitor         = "192.168.1.0/24"
56 monitor-access  = restrictedcmd, channelstate, callin, callout
57 #
58 #  - a resolveable host name
59 monitor         = "rumolt"
60 monitor-access  = restrictedcmd, channelstate, callin, callout
61 #
62 #  - a resolveable net name with "/len" netmask (s.a.) appended
63 monitor         = "up-vision-net/24"
64 monitor-access  = restrictedcmd, channelstate, callin, callout
65
66 # ratesfile
67 # ---------
68
69 ratesfile       = /etc/isdn/isdnd.rates # name & location of rates file
70
71 # regular expression pattern matching
72 # -----------------------------------
73
74 #regexpr        = "connected.*XXX"      # look for matches in log messages
75 #regprog        = connectXXX            # execute program when match is found
76
77 regexpr         = "<unknown> incoming call from"
78 regprog         = unknown_incoming      # execute program whan match is found
79
80 # realtime priority section
81 # -------------------------
82
83 rtprio          = 25                    # modify isdnd's process priority
84
85 #===========================================================================
86 # controller section
87 #===========================================================================
88 controller
89
90 firmware        = /etc/isdn/b1.t4       # microcode for an AVM B1 controller
91
92 #==============================================================================
93 # entry section: IP over ISDN example - i call back the remote end
94 #==============================================================================
95 entry                           
96
97 name                    = I4BIP         # name for reference. This name will
98                                         # be used in the logfile to identfy
99                                         # this entry.
100
101                                         # the network or telephone device
102                                         # the data traffic should be routed to:
103 usrdevicename           = ipr           # ipr, isp, tel, rbch
104 usrdeviceunit           = 0             # unit number
105
106                                         # the ISDN controller number to be
107                                         # used for this entry:
108 isdncontroller          = 0             # controller to use or -1 to use any
109 isdnchannel             = -1            # channel (1/2) to use or 0 or -1 for any
110
111                                         # incoming only, outgoing only or both:
112 direction               = inout         # in, out, inout
113
114                                         # numbers used to verify a DIAL IN:
115 local-phone-incoming    = 321           # this is my number
116 remote-phone-incoming   = 0123456789    # this one can call in
117
118                                         # numbers used at DIAL OUT time:
119 local-phone-dialout     = 321           # this is my number
120 remote-phone-dialout    = 00123456789   # i call this remote number
121
122                                         # in case i have several remote 
123                                         # telephone numbers specified, this 
124                                         # is used to specify which one is 
125                                         # used next on dial fail or retry:
126 remdial-handling        = first         # first, last or next
127
128                                         # what happenes if someone dials in:
129 dialin-reaction         = callback      # accept, reject, ignore, answer, callback
130
131                                         # normal dialout or do i call back:
132 dialout-type            = normal        # normal / calledback
133
134 callbackwait            = 1             # no of secs to wait before calling back
135
136                                         # type of protocol on the B-channel:
137                                         # hdlc must be specified for IP (the
138                                         # ipr and isp drivers), raw must be
139                                         # specified for telephone answering
140 b1protocol              = hdlc          # hdlc, raw
141
142                                         # shorthold mode and idle time 
143                                         # configuration:
144 ratetype                = 0             # ratesfile entry to use
145 unitlength              = 90            # unitlength to assume
146 unitlengthsrc           = rate          # none, rate, cmdl, conf, aocd
147 idletime-incoming       = 120           # incoming call idle timeout
148 idletime-outgoing       = 60            # outgoing call idle timeout
149 earlyhangup             = 5             # time to hangup before an expected
150                                         # next charging unit will occur
151
152                                         # retry and recovery parameters
153 dialretries             = 3             # # of dial retries
154 dialrandincr            = off           # random dial increment time
155 recoverytime            = 5             # time to wait between 2 dial tries
156 usedown                 = off           # set i/f down
157 downtries               = 5             # retry cycles before set down
158 downtime                = 30            # time to be in down before going up
159
160 #connectprog            = "ip-up"       # run /etc/isdn/ip-up when an interface
161                                         # has established its network connection.
162                                         # example parameters are:
163                                         # /etc/isdn/ip-up -d isp0 -f up -a 192.110.12.14
164 #disconnectprog         = "ip-down"     # like connectprog, but run after the connection
165                                         # is closed (ISDN layer down). The actual
166                                         # interface address might not be known
167                                         # any more. example parameters are:
168                                         # /etc/isdn/ip-up -d isp0 -f down -a 0.0.0.0
169
170 #==============================================================================
171 # entry section: IP over ISDN example - i am called back by the remote end
172 #==============================================================================
173 entry                           
174                                 
175 name                    = I4BIP1        # name for reference
176                                 
177 usrdevicename           = ipr           # ipr, tel, rbch
178 usrdeviceunit           = 1             # unit number
179                                 
180 isdncontroller          = 0             # controller to use or -1 to use any
181 isdnchannel             = -1            # channel (1/2) to use or 0 or -1 for any
182
183                                         # numbers used to DIAL OUT
184 remote-phone-dialout    = 00401234567   # remote number to dial 
185 local-phone-dialout     = 38            # our number to tell remote
186
187                                         # numbers used to verify at DIAL IN
188 local-phone-incoming    = 38            # we take calls for this local number
189 remote-phone-incoming   = 00401234567   # we take calls from this remote machine
190
191 b1protocol              = hdlc          # hdlc, raw
192
193 ratetype                = 0             # city
194 unitlength              = 90            # default unit length
195 earlyhangup             = 5             # safety zone
196 unitlengthsrc           = aocd          # none, rate, cmdl, conf, aocd
197                                 
198 dialin-reaction         = accept        # accept, reject, ignore, anwer, callback
199
200 dialout-type            = calledback    # normal or calledback
201
202 dialretries             = 3
203 recoverytime            = 3
204 calledbackwait          = 20
205 dialrandincr            = off
206
207 usedown                 = off
208 downtries               = 2
209 downtime                = 30
210
211 idletime-incoming       = 300
212 idletime-outgoing       = 30
213
214 #==============================================================================
215 # entry section: answering machine example
216 #==============================================================================
217 entry                           
218
219 name                    = I4BTEL        # name for reference
220 usrdevicename           = tel           # ipr, tel, rbch
221 usrdeviceunit           = 0             # unit number
222                                 
223 isdncontroller          = 0             # controller to use or -1 to use any
224 isdnchannel             = -1            # channel (1/2) to use or 0 or -1 for any
225
226                                         # numbers used to verify at DIAL IN
227 local-phone-incoming    = 456           # this is my number
228 remote-phone-incoming   = *             # anyone can call in
229                                 
230 dialin-reaction         = answer        # accept, reject, ignore, answer
231
232 answerprog              = answer        # program to run
233
234 b1protocol              = raw           # hdlc, raw
235
236 idletime-incoming       = 5             # 5 seconds idle timeout
237
238 #==============================================================================
239 # kernel PPP (with budget handling) - Sunday & Holidays, we call back
240 #==============================================================================
241 entry                           
242
243 valid                   = "0,7"         # sundays & holidays
244
245 name                    = KPPPs         # name for reference
246                                 
247 usrdevicename           = isp           # ipr, tel, rbch
248 usrdeviceunit           = 0             # unit number
249                                 
250 isdncontroller          = 1             # controller to use or -1 to use any
251 isdnchannel             = -1            # channel (1/2) to use or 0 or -1 for any
252
253                                         # numbers used to verify at DIAL IN
254 local-phone-incoming    = 29            # this is my number
255 remote-phone-incoming   = 00401234567   # this one can call in
256
257                                         # numbers used to DIAL OUT
258 local-phone-dialout     = 29            # this is my number
259 remote-phone-dialout    = 00401234567   # i call this number
260
261 remdial-handling        = first         # first, last or next
262                                 
263 dialin-reaction         = callback      # accept, reject, ignore, answer, callback
264
265 dialout-type            = normal        # normal / calledback
266
267 b1protocol              = hdlc          # hdlc, raw
268
269 idletime-incoming       = 30            # incoming call idle timeout
270 idletime-outgoing       = 120           # outgoing call idle timeout
271
272 unitlength              = 360           # unitlength to assume
273 unitlengthsrc           = conf          # none, rate, cmdl, conf, aocd
274
275 dialretries             = 5             # # of dial retries
276 dialrandincr            = on            # random dial increment time
277 recoverytime            = 3             # time to wait between 2 dial tries
278
279 callbackwait            = 5             # time to wait to call back
280
281 usedown                 = off           # set i/f down
282 downtries               = 5             # retry cycles before set down
283 downtime                = 60            # time to be in down before going up
284
285 budget-callbackperiod   = 10800         # 3 hours
286 budget-callbackncalls   = 1000          # 2 callbacks in 3 hours
287 budget-callbacksfile    = /var/log/isdn/callbacks.isp0
288 budget-callbacksfile-rotate = yes
289
290 budget-calloutperiod    = 3600          # 1 hour
291 budget-calloutncalls    = 1000          # 3 calls in 1 hour
292 budget-calloutsfile     = /var/log/isdn/callouts.isp0
293 budget-calloutsfile-rotate = yes
294
295 #==============================================================================
296 # kernel PPP (with budget handling) - Monday-Saturday, 9:00-18:00: we call back
297 #==============================================================================
298 entry                           
299
300 valid                   = "1,2,3,4,5,6,9:00-18:00" # Monday-Saturday, day
301
302 name                    = KPPPd         # name for reference
303                                 
304 usrdevicename           = isp           # ipr, tel, rbch
305 usrdeviceunit           = 0             # unit number
306                                 
307 isdncontroller          = 1             # controller to use or -1 to use any
308 isdnchannel             = -1            # channel (1/2) to use or 0 or -1 for any
309
310                                         # numbers used to verify at DIAL IN
311 local-phone-incoming    = 29            # this is my number
312 remote-phone-incoming   = 00401234567   # this one can call in
313
314                                         # numbers used to DIAL OUT
315 local-phone-dialout     = 29            # this is my number
316 remote-phone-dialout    = 00401234567   # i call this number
317
318 remdial-handling        = first         # first, last or next
319                                 
320 dialin-reaction         = callback      # accept, reject, ignore, answer, callback
321
322 dialout-type            = normal        # normal / calledback
323
324 b1protocol              = hdlc          # hdlc, raw
325
326 idletime-incoming       = 30            # incoming call idle timeout
327 idletime-outgoing       = 30            # outgoing call idle timeout
328
329 unitlength              = 60            # unitlength to assume
330 unitlengthsrc           = conf          # none, rate, cmdl, conf, aocd
331
332 dialretries             = 5             # # of dial retries
333 dialrandincr            = on            # random dial increment time
334 recoverytime            = 3             # time to wait between 2 dial tries
335
336 callbackwait            = 5             # time to wait to call back
337
338 usedown                 = off           # set i/f down
339 downtries               = 5             # retry cycles before set down
340 downtime                = 60            # time to be in down before going up
341
342 budget-callbackperiod   = 10800         # 3 hours
343 budget-callbackncalls   = 1             # 1 callbacks in 3 hours
344 budget-callbacksfile    = /var/log/isdn/callbacks.isp0
345 budget-callbacksfile-rotate = yes
346
347 budget-calloutperiod    = 3600          # 1 hour
348 budget-calloutncalls    = 3             # 3 calls in 1 hour
349 budget-calloutsfile     = /var/log/isdn/callouts.isp0
350 budget-calloutsfile-rotate = yes
351
352 #==============================================================================
353 # kernel PPP (with budget handling) - Monday-Saturday: we call back
354 #==============================================================================
355 entry                           
356
357 valid                   = "1,2,3,4,5,6,18:00-9:00" # Monday-Saturday, night
358
359 name                    = KPPPn         # name for reference
360                                 
361 usrdevicename           = isp           # ipr, tel, rbch
362 usrdeviceunit           = 0             # unit number
363                                 
364 isdncontroller          = 1             # controller to use or -1 to use any
365 isdnchannel             = -1            # channel (1/2) to use or 0 or -1 for any
366
367                                         # numbers used to verify at DIAL IN
368 local-phone-incoming    = 29            # this is my number
369 remote-phone-incoming   = 00401234567   # this one can call in
370
371                                         # numbers used to DIAL OUT
372 local-phone-dialout     = 29            # this is my number
373 remote-phone-dialout    = 00401234567   # i call this number
374
375 remdial-handling        = first         # first, last or next
376                                 
377 dialin-reaction         = callback      # accept, reject, ignore, answer, callback
378
379 dialout-type            = normal        # normal / calledback
380
381 b1protocol              = hdlc          # hdlc, raw
382
383 idletime-incoming       = 30            # incoming call idle timeout
384 idletime-outgoing       = 30            # outgoing call idle timeout
385
386 unitlength              = 60            # unitlength to assume
387 unitlengthsrc           = conf          # none, rate, cmdl, conf, aocd
388
389 dialretries             = 5             # # of dial retries
390 dialrandincr            = on            # random dial increment time
391 recoverytime            = 3             # time to wait between 2 dial tries
392
393 callbackwait            = 5             # time to wait to call back
394
395 usedown                 = off           # set i/f down
396 downtries               = 5             # retry cycles before set down
397 downtime                = 60            # time to be in down before going up
398
399 budget-callbackperiod   = 7200          # 2 hours
400 budget-callbackncalls   = 2             # 2 callbacks in 2 hours
401 budget-callbacksfile    = /var/log/isdn/callbacks.isp0
402 budget-callbacksfile-rotate = yes
403
404 budget-calloutperiod    = 3600          # 1 hour
405 budget-calloutncalls    = 3             # 3 calls in 1 hour
406 budget-calloutsfile     = /var/log/isdn/callouts.isp0
407 budget-calloutsfile-rotate = yes
408
409 # EOF #########################################################################