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