1 #------------------------------------------------------------------------------
3 # example of a configuration file for the isdn daemon
4 # ---------------------------------------------------
8 # last edit-date: [Sun May 27 09:33:59 2001]
12 # This configuration file is an EXAMPLE only and MUST be edited
13 # carefully to get the desired results!
15 # Please read the "isdnd.rc" manual page (execute "man isdnd.rc")
18 #------------------------------------------------------------------------------
20 #==============================================================================
21 # SYSTEM section: isdnd global configuration parameters
22 #==============================================================================
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
35 monitor-allowed = no # global switch: monitor on/off
36 monitor-port = 451 # default monitor TCP port
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.
42 # A monitor specification may either be:
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
50 # - a dotted-quad host spec
51 monitor = "192.168.1.2"
52 monitor-access = restrictedcmd, channelstate, callin, callout
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
58 # - a resolveable host name
60 monitor-access = restrictedcmd, channelstate, callin, callout
62 # - a resolveable net name with "/len" netmask (s.a.) appended
63 monitor = "up-vision-net/24"
64 monitor-access = restrictedcmd, channelstate, callin, callout
69 ratesfile = /etc/isdn/isdnd.rates # name & location of rates file
71 # regular expression pattern matching
72 # -----------------------------------
74 #regexpr = "connected.*XXX" # look for matches in log messages
75 #regprog = connectXXX # execute program when match is found
77 regexpr = "<unknown> incoming call from"
78 regprog = unknown_incoming # execute program whan match is found
80 # realtime priority section
81 # -------------------------
83 rtprio = 25 # modify isdnd's process priority
85 #===========================================================================
87 #===========================================================================
90 firmware = /etc/isdn/b1.t4 # microcode for an AVM B1 controller
92 #==============================================================================
93 # entry section: IP over ISDN example - i call back the remote end
94 #==============================================================================
97 name = I4BIP # name for reference. This name will
98 # be used in the logfile to identfy
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
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
111 # incoming only, outgoing only or both:
112 direction = inout # in, out, inout
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
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
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
128 # what happenes if someone dials in:
129 dialin-reaction = callback # accept, reject, ignore, answer, callback
131 # normal dialout or do i call back:
132 dialout-type = normal # normal / calledback
134 callbackwait = 1 # no of secs to wait before calling back
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
142 # shorthold mode and idle time
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
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
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
170 #==============================================================================
171 # entry section: IP over ISDN example - i am called back by the remote end
172 #==============================================================================
175 name = I4BIP1 # name for reference
177 usrdevicename = ipr # ipr, tel, rbch
178 usrdeviceunit = 1 # unit number
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
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
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
191 b1protocol = hdlc # hdlc, raw
194 unitlength = 90 # default unit length
195 earlyhangup = 5 # safety zone
196 unitlengthsrc = aocd # none, rate, cmdl, conf, aocd
198 dialin-reaction = accept # accept, reject, ignore, anwer, callback
200 dialout-type = calledback # normal or calledback
211 idletime-incoming = 300
212 idletime-outgoing = 30
214 #==============================================================================
215 # entry section: answering machine example
216 #==============================================================================
219 name = I4BTEL # name for reference
220 usrdevicename = tel # ipr, tel, rbch
221 usrdeviceunit = 0 # unit number
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
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
230 dialin-reaction = answer # accept, reject, ignore, answer
232 answerprog = answer # program to run
234 b1protocol = raw # hdlc, raw
236 idletime-incoming = 5 # 5 seconds idle timeout
238 #==============================================================================
239 # kernel PPP (with budget handling) - Sunday & Holidays, we call back
240 #==============================================================================
243 valid = "0,7" # sundays & holidays
245 name = KPPPs # name for reference
247 usrdevicename = isp # ipr, tel, rbch
248 usrdeviceunit = 0 # unit number
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
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
257 # numbers used to DIAL OUT
258 local-phone-dialout = 29 # this is my number
259 remote-phone-dialout = 00401234567 # i call this number
261 remdial-handling = first # first, last or next
263 dialin-reaction = callback # accept, reject, ignore, answer, callback
265 dialout-type = normal # normal / calledback
267 b1protocol = hdlc # hdlc, raw
269 idletime-incoming = 30 # incoming call idle timeout
270 idletime-outgoing = 120 # outgoing call idle timeout
272 unitlength = 360 # unitlength to assume
273 unitlengthsrc = conf # none, rate, cmdl, conf, aocd
275 dialretries = 5 # # of dial retries
276 dialrandincr = on # random dial increment time
277 recoverytime = 3 # time to wait between 2 dial tries
279 callbackwait = 5 # time to wait to call back
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
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
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
295 #==============================================================================
296 # kernel PPP (with budget handling) - Monday-Saturday, 9:00-18:00: we call back
297 #==============================================================================
300 valid = "1,2,3,4,5,6,9:00-18:00" # Monday-Saturday, day
302 name = KPPPd # name for reference
304 usrdevicename = isp # ipr, tel, rbch
305 usrdeviceunit = 0 # unit number
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
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
314 # numbers used to DIAL OUT
315 local-phone-dialout = 29 # this is my number
316 remote-phone-dialout = 00401234567 # i call this number
318 remdial-handling = first # first, last or next
320 dialin-reaction = callback # accept, reject, ignore, answer, callback
322 dialout-type = normal # normal / calledback
324 b1protocol = hdlc # hdlc, raw
326 idletime-incoming = 30 # incoming call idle timeout
327 idletime-outgoing = 30 # outgoing call idle timeout
329 unitlength = 60 # unitlength to assume
330 unitlengthsrc = conf # none, rate, cmdl, conf, aocd
332 dialretries = 5 # # of dial retries
333 dialrandincr = on # random dial increment time
334 recoverytime = 3 # time to wait between 2 dial tries
336 callbackwait = 5 # time to wait to call back
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
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
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
352 #==============================================================================
353 # kernel PPP (with budget handling) - Monday-Saturday: we call back
354 #==============================================================================
357 valid = "1,2,3,4,5,6,18:00-9:00" # Monday-Saturday, night
359 name = KPPPn # name for reference
361 usrdevicename = isp # ipr, tel, rbch
362 usrdeviceunit = 0 # unit number
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
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
371 # numbers used to DIAL OUT
372 local-phone-dialout = 29 # this is my number
373 remote-phone-dialout = 00401234567 # i call this number
375 remdial-handling = first # first, last or next
377 dialin-reaction = callback # accept, reject, ignore, answer, callback
379 dialout-type = normal # normal / calledback
381 b1protocol = hdlc # hdlc, raw
383 idletime-incoming = 30 # incoming call idle timeout
384 idletime-outgoing = 30 # outgoing call idle timeout
386 unitlength = 60 # unitlength to assume
387 unitlengthsrc = conf # none, rate, cmdl, conf, aocd
389 dialretries = 5 # # of dial retries
390 dialrandincr = on # random dial increment time
391 recoverytime = 3 # time to wait between 2 dial tries
393 callbackwait = 5 # time to wait to call back
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
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
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
409 # EOF #########################################################################