1 #------------------------------------------------------------------------------
3 # example of a configuration file for the isdn daemon
4 # ---------------------------------------------------
6 # $Id: isdnd.rc.sample,v 1.6 2006/11/24 21:23:07 wiz Exp $
8 # $NetBSD: isdnd.rc.sample,v 1.5 2003/10/02 21:32:56 abs Exp $
10 # last edit-date: [Wed Jul 19 09:59:42 2000]
14 # This configuration file is an EXAMPLE only and MUST be edited
15 # carefully to get the desired results!
17 # Please read the "isdnd.rc" manual page (execute "man isdnd.rc")
20 #------------------------------------------------------------------------------
22 #==============================================================================
23 # SYSTEM section: isdnd global configuration parameters
24 #==============================================================================
30 acctall = on # generate info for everything
31 acctfile = /var/log/isdnd.acct # name & location of accounting file
32 useacctfile = yes # generate accouting info to file
37 monitor-allowed = yes # global switch: monitor on/off
38 monitor-port = 451 # default monitor TCP port
40 # Monitor rights are granted due to the most specific host/net spec, i.e. in
41 # the example below host 192.168.1.2 will have the rights specified on that
42 # line, even so it belongs to net 192.168.1.0/24 as well.
44 # A monitor specification may either be:
46 # - the name of a local (UNIX-domain) socket; this MUST start with a "/"
47 monitor = "/var/run/isdn-monitor"
48 monitor-access = fullcmd
49 monitor-access = channelstate, logevents
50 monitor-access = callin, callout
52 # - a dotted-quad host spec
53 monitor = "192.168.1.2"
54 monitor-access = restrictedcmd, channelstate, callin, callout
56 # - a dotted-quad net spec with "/len" (CIDR-style) netmask spec
57 monitor = "192.168.1.0/24"
58 monitor-access = restrictedcmd, channelstate, callin, callout
60 # - a resolveable host name
62 monitor-access = restrictedcmd, channelstate, callin, callout
64 # - a resolveable net name with "/len" netmask (s.a.) appended
65 monitor = "up-vision-net/24"
66 monitor-access = restrictedcmd, channelstate, callin, callout
71 ratesfile = /etc/isdn/isdnd.rates # name & location of rates file
73 # regular expression pattern matching
74 # -----------------------------------
76 #regexpr = "connected.*KTS" # look for matches in log messages
77 #regprog = connectKTS # execute program when match is found
79 # realtime priority section
80 # -------------------------
82 rtprio = 25 # modify isdnd's process priority
84 #==============================================================================
85 # entry section: IP over ISDN example - i call back the remote end
86 #==============================================================================
89 name = I4BIP # name for reference. This name will
90 # be used in the logfile to identfy
93 # the network or telephone device
94 # the data traffic should be routed to:
95 usrdevicename = irip # irip, ippp, isdntel, isdnbchan
96 usrdeviceunit = 0 # unit number
98 autoupdown = no # If this entry is missing (or set
99 # to "yes") isdnd will mark the
100 # interface UP on startup, which
101 # may result in an immediate connection
102 # attempt (depending on network
103 # setup). If set to "no" this will
104 # not happen and a manual
106 # will be needed to make the interface
108 # Note: if there is no IP configure via
109 # /etc/ifconfig.irip0
110 # isdnd will note the missing
111 # IP configuration and leave the
114 # the ISDN controller number to be
115 # used for this entry:
116 isdncontroller = -1 # contoller to use or -1 to use any
117 isdnchannel = -1 # channel (1/2) to use or 0 or -1 for any
119 # incoming only, outgoing only or both:
120 direction = inout # in, out, inout
122 # numbers used to verify a DIAL IN:
123 local-phone-incoming = 321 # this is my number
124 remote-phone-incoming = 0123456789 # this one can call in
126 # numbers used at DIAL OUT time:
127 local-phone-dialout = 321 # this is my number
128 remote-phone-dialout = 00123456789 # i call this remote number
130 # in case i have several remote
131 # telephone numbers specified, this
132 # is used to specify which one is
133 # used next on dial fail or retry:
134 remdial-handling = first # first, last or next
136 # what happenes if someone dials in:
137 dialin-reaction = callback # accept, reject, ignore, answer, callback
139 # normal dialout or do i call back:
140 dialout-type = normal # normal / calledback
142 callbackwait = 1 # no of secs to wait before calling back
144 # type of protocol on the B-channel:
145 # hdlc must be specified for IP (the
146 # irip and ippp drivers), raw must be
147 # specified for telephone answering
148 b1protocol = hdlc # hdlc, raw
150 # shorthold mode and idle time
152 ratetype = 0 # ratesfile entry to use
153 unitlength = 90 # unitlength to assume
154 unitlengthsrc = rate # none, rate, cmdl, conf, aocd
155 idletime-incoming = 120 # incoming call idle timeout
156 idletime-outgoing = 60 # outgoing call idle timeout
157 earlyhangup = 5 # time to hangup before an expected
158 # next charging unit will occur
160 # retry and recovery parameters
161 dialretries = 3 # # of dial retries
162 dialrandincr = off # random dial increment time
163 recoverytime = 5 # time to wait between 2 dial tries
164 usedown = off # set i/f down
165 downtries = 5 # retry cycles before set down
166 downtime = 30 # time to be in down before going up
168 connectprog = "ip-up" # run /etc/isdn/ip-up when an interface
169 # has established its network connection.
170 # example parameters are:
171 # /etc/isdn/ip-up -d isp0 -f up -a 192.110.12.14
172 disconnectprog = "ip-down" # like connectprog, but run after the connection
173 # is closed (ISDN layer down). The actual
174 # interface address might not be known
175 # any more. example parameters are:
176 # /etc/isdn/ip-up -d isp0 -f down -a 0.0.0.0
178 #==============================================================================
179 # entry section: IP over ISDN example - i am called back by the remote end
180 #==============================================================================
183 name = I4BIP1 # name for reference
185 usrdevicename = irip # irip, isdntel, isdnbchan
186 usrdeviceunit = 1 # unit number
188 isdncontroller = 0 # contoller to use or -1 to use any
189 isdnchannel = -1 # channel (1/2) to use or 0 or -1 for any
191 # numbers used to DIAL OUT
192 remote-phone-dialout = 00401234567 # remote number to dial
193 local-phone-dialout = 38 # our number to tell remote
195 # numbers used to verify at DIAL IN
196 local-phone-incoming = 38 # we take calls for this local number
197 remote-phone-incoming = 00401234567 # we take calls from this remote machine
199 b1protocol = hdlc # hdlc, raw
202 unitlength = 90 # default unit length
203 earlyhangup = 5 # safety zone
204 unitlengthsrc = aocd # none, rate, cmdl, conf, aocd
206 dialin-reaction = accept # accept, reject, ignore, anwer, callback
208 dialout-type = calledback # normal or calledback
219 idletime-incoming = 300
220 idletime-outgoing = 30
222 #==============================================================================
223 # entry section: answering machine example
224 #==============================================================================
227 name = I4BTEL # name for reference
228 usrdevicename = isdntel # irip, ippp, isdntel, isdnbchan
229 usrdeviceunit = 0 # unit number
231 isdncontroller = 0 # contoller to use or -1 to use any
232 isdnchannel = -1 # channel (1/2) to use or 0 or -1 for any
234 # numbers used to verify at DIAL IN
235 local-phone-incoming = 456 # this is my number
236 remote-phone-incoming = * # anyone can call in
238 dialin-reaction = answer # accept, reject, ignore, answer
240 answerprog = answer # program to run
242 b1protocol = raw # hdlc, raw
244 idletime-incoming = 5 # 5 seconds idle timeout
246 #=======================================================================
247 # entry section: sync PPP example using the isp device
248 #======================================================================
251 name = I4BPPP # name for reference
253 usrdevicename = ippp # irip, isdntel, isdnbchan
254 usrdeviceunit = 0 # unit number
256 isdncontroller = 0 # controller to use or -1 to use any
257 isdnchannel = -1 # channel to use or -1 to use any
259 # numbers used to verify at DIAL IN
260 local-phone-incoming = 1234 # we take calls for this local number
261 remote-phone-incoming = 5678 # we take calls from this remote machine
263 # numbers used to DIAL OUT
264 remote-phone-dialout = 5678 # remote number to dial
265 local-phone-dialout = 1234 # our number to tell remote
267 # used next on dial fail or retry:
268 remdial-handling = first # first, last or next
270 # what happenes if someone dials in:
271 dialin-reaction = accept # accept, reject, ignore, answer, callback
273 # normal dialout or do i call back:
274 dialout-type = normal # normal / calledback
276 # type of protocol on the B-channel:
277 # hdlc must be specified for IP (the
278 # irip and ippp drivers), raw must be
279 # specified for telephone answering
281 ppp-expect-auth = chap # authentication method used by the
282 # remote side to prove its identity,
283 # one of: none, pap or chap
285 ppp-expect-name = LetMeIn # name sent in pap or chap message
286 ppp-expect-password = Geheim # password that must be sent by the
289 ppp-send-auth = chap # authentication method that we have
290 # to use to be accepted by the remote
291 # side, one of: none, pap or chap
293 ppp-send-name = ItsMe # our PPP login name at the remote site
294 ppp-send-password = WhoKnows # the password the remote side expects
297 ppp-auth-paranoid = yes # do we expect the remote side to prove
298 # its identity even if we dial out
300 ppp-auth-rechallenge = yes # chap only: rechallenge once in a while
302 b1protocol = hdlc # hdlc, raw
304 idletime-incoming = 240 # incoming call idle timeout
305 idletime-outgoing = 30 # outgoing call idle timeout
307 ratetype = 0 # city rate
308 unitlength = 90 # default unit length
309 unitlengthsrc = rate # none, rate, cmdl, conf, aocd
311 dialretries = 3 # no of retries
312 dialrandincr = on # increase time between dials
313 recoverytime = 25 # wait between dials
315 usedown = off # do not use soft up/down
319 #==============================================================================
320 # example of a configuration file for the isdn daemon and userland ppp.
321 # (see the ppp setup examples in i4b's user-ppp dir and FAQ item 22 !)
322 #==============================================================================
324 name = userppp0 # name of entry
325 usrdevicename = rbch # use the raw b channel access device
326 usrdeviceunit = 0 # unit 0
328 isdncontroller = 0 # use isdn controller 0
329 isdnchannel = -1 # use any channel on this controller
331 local-phone-incoming = 01494723626
332 remote-phone-incoming = *
333 local-phone-dialout = 01494723626
334 remote-phone-dialout = 01494723626 # ppp(8) will override this
336 remdial-handling = first
337 dialin-reaction = ignore # no dialins allowed
339 dialout-type = normal
341 b1protocol = hdlc # b channel layer 1 protocol
343 idletime-incoming = 900 # Should be larger than ppps timeout
344 idletime-outgoing = 900 # Should be larger than ppps timeout
364 local-phone-incoming = 01494723626
365 remote-phone-incoming = *
366 local-phone-dialout = 01494723626
367 remote-phone-dialout = 01494723626 # ppp(8) will override this
368 remdial-handling = first
369 dialin-reaction = accept
370 dialout-type = normal
372 idletime-incoming = 900 # Should be larger than ppps timeout
373 idletime-outgoing = 900 # Should be larger than ppps timeout
384 # EOF #########################################################################