1 #------------------------------------------------------------------------------
3 # example of a configuration file for the isdn daemon
4 # ---------------------------------------------------
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 $
9 # last edit-date: [Sun May 27 09:33:59 2001]
13 # This configuration file is an EXAMPLE only and MUST be edited
14 # carefully to get the desired results!
16 # Please read the "isdnd.rc" manual page (execute "man isdnd.rc")
19 #------------------------------------------------------------------------------
21 #==============================================================================
22 # SYSTEM section: isdnd global configuration parameters
23 #==============================================================================
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
36 monitor-allowed = no # global switch: monitor on/off
37 monitor-port = 451 # default monitor TCP port
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.
43 # A monitor specification may either be:
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
51 # - a dotted-quad host spec
52 monitor = "192.168.1.2"
53 monitor-access = restrictedcmd, channelstate, callin, callout
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
59 # - a resolveable host name
61 monitor-access = restrictedcmd, channelstate, callin, callout
63 # - a resolveable net name with "/len" netmask (s.a.) appended
64 monitor = "up-vision-net/24"
65 monitor-access = restrictedcmd, channelstate, callin, callout
70 ratesfile = /etc/isdn/isdnd.rates # name & location of rates file
72 # regular expression pattern matching
73 # -----------------------------------
75 #regexpr = "connected.*XXX" # look for matches in log messages
76 #regprog = connectXXX # execute program when match is found
78 regexpr = "<unknown> incoming call from"
79 regprog = unknown_incoming # execute program whan match is found
81 # realtime priority section
82 # -------------------------
84 rtprio = 25 # modify isdnd's process priority
86 #===========================================================================
88 #===========================================================================
91 firmware = /etc/isdn/b1.t4 # microcode for an AVM B1 controller
93 #==============================================================================
94 # entry section: IP over ISDN example - i call back the remote end
95 #==============================================================================
98 name = I4BIP # name for reference. This name will
99 # be used in the logfile to identfy
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
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
112 # incoming only, outgoing only or both:
113 direction = inout # in, out, inout
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
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
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
129 # what happenes if someone dials in:
130 dialin-reaction = callback # accept, reject, ignore, answer, callback
132 # normal dialout or do i call back:
133 dialout-type = normal # normal / calledback
135 callbackwait = 1 # no of secs to wait before calling back
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
143 # shorthold mode and idle time
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
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
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
171 #==============================================================================
172 # entry section: IP over ISDN example - i am called back by the remote end
173 #==============================================================================
176 name = I4BIP1 # name for reference
178 usrdevicename = ipr # ipr, tel, rbch
179 usrdeviceunit = 1 # unit number
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
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
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
192 b1protocol = hdlc # hdlc, raw
195 unitlength = 90 # default unit length
196 earlyhangup = 5 # safety zone
197 unitlengthsrc = aocd # none, rate, cmdl, conf, aocd
199 dialin-reaction = accept # accept, reject, ignore, anwer, callback
201 dialout-type = calledback # normal or calledback
212 idletime-incoming = 300
213 idletime-outgoing = 30
215 #==============================================================================
216 # entry section: answering machine example
217 #==============================================================================
220 name = I4BTEL # name for reference
221 usrdevicename = tel # ipr, tel, rbch
222 usrdeviceunit = 0 # unit number
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
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
231 dialin-reaction = answer # accept, reject, ignore, answer
233 answerprog = answer # program to run
235 b1protocol = raw # hdlc, raw
237 idletime-incoming = 5 # 5 seconds idle timeout
239 #==============================================================================
240 # kernel PPP (with budget handling) - Sunday & Holidays, we call back
241 #==============================================================================
244 valid = "0,7" # sundays & holidays
246 name = KPPPs # name for reference
248 usrdevicename = isp # ipr, tel, rbch
249 usrdeviceunit = 0 # unit number
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
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
258 # numbers used to DIAL OUT
259 local-phone-dialout = 29 # this is my number
260 remote-phone-dialout = 00401234567 # i call this number
262 remdial-handling = first # first, last or next
264 dialin-reaction = callback # accept, reject, ignore, answer, callback
266 dialout-type = normal # normal / calledback
268 b1protocol = hdlc # hdlc, raw
270 idletime-incoming = 30 # incoming call idle timeout
271 idletime-outgoing = 120 # outgoing call idle timeout
273 unitlength = 360 # unitlength to assume
274 unitlengthsrc = conf # none, rate, cmdl, conf, aocd
276 dialretries = 5 # # of dial retries
277 dialrandincr = on # random dial increment time
278 recoverytime = 3 # time to wait between 2 dial tries
280 callbackwait = 5 # time to wait to call back
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
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
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
296 #==============================================================================
297 # kernel PPP (with budget handling) - Monday-Saturday, 9:00-18:00: we call back
298 #==============================================================================
301 valid = "1,2,3,4,5,6,9:00-18:00" # Monday-Saturday, day
303 name = KPPPd # name for reference
305 usrdevicename = isp # ipr, tel, rbch
306 usrdeviceunit = 0 # unit number
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
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
315 # numbers used to DIAL OUT
316 local-phone-dialout = 29 # this is my number
317 remote-phone-dialout = 00401234567 # i call this number
319 remdial-handling = first # first, last or next
321 dialin-reaction = callback # accept, reject, ignore, answer, callback
323 dialout-type = normal # normal / calledback
325 b1protocol = hdlc # hdlc, raw
327 idletime-incoming = 30 # incoming call idle timeout
328 idletime-outgoing = 30 # outgoing call idle timeout
330 unitlength = 60 # unitlength to assume
331 unitlengthsrc = conf # none, rate, cmdl, conf, aocd
333 dialretries = 5 # # of dial retries
334 dialrandincr = on # random dial increment time
335 recoverytime = 3 # time to wait between 2 dial tries
337 callbackwait = 5 # time to wait to call back
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
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
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
353 #==============================================================================
354 # kernel PPP (with budget handling) - Monday-Saturday: we call back
355 #==============================================================================
358 valid = "1,2,3,4,5,6,18:00-9:00" # Monday-Saturday, night
360 name = KPPPn # name for reference
362 usrdevicename = isp # ipr, tel, rbch
363 usrdeviceunit = 0 # unit number
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
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
372 # numbers used to DIAL OUT
373 local-phone-dialout = 29 # this is my number
374 remote-phone-dialout = 00401234567 # i call this number
376 remdial-handling = first # first, last or next
378 dialin-reaction = callback # accept, reject, ignore, answer, callback
380 dialout-type = normal # normal / calledback
382 b1protocol = hdlc # hdlc, raw
384 idletime-incoming = 30 # incoming call idle timeout
385 idletime-outgoing = 30 # outgoing call idle timeout
387 unitlength = 60 # unitlength to assume
388 unitlengthsrc = conf # none, rate, cmdl, conf, aocd
390 dialretries = 5 # # of dial retries
391 dialrandincr = on # random dial increment time
392 recoverytime = 3 # time to wait between 2 dial tries
394 callbackwait = 5 # time to wait to call back
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
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
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
410 # EOF #########################################################################