table of contents
() | () |
- writeconf file
- Writes the configuration into a file. If file is omitted, the default file /etc/isdn/isdn.conf will be used.
- readconf file
- Reads the configuration from a file. If file is omitted, the default file /etc/isdn/isdn.conf will be used.
Syntax of the configuration file¶
This syntax will be used for the options readconf and writeconf.
All entries are included in the section [ISDNCTRL]. This section contains an entry INTERFACES, which describes the interfaces. Each subsection [INTERFACE] or [SLAVE] describes one interface. There are the following entries possible:
- NAME = name
- The name of the interface. This entry is required.
Example: NAME = ippp0
- EAZ = eaz
- Set the EAZ or the MSN. This entry is required.
Example: EAZ = 4711
- PHONE_IN = num [num...]
- Set the incoming phone number(s). It requires at least one blank between
the different numbers.
Example: PHONE_IN = 08151234 08151235 08151236
- PHONE_OUT = num [num...]
- Set the outgoing phone number(s). It requires at least one blank between
the different numbers.
Example: PHONE_OUT = 08151237 08151238
- SECURE = on|off
- Turn on or off the security feature.
Example: SECURE = on
- CALLBACK = off|in|out
- Selects callback mode.
Example: CALLBACK = in
- CBHUP = on|off
- Turns on or off hangup before starting callback.
Example: CBHUP = on
- CBDELAY = seconds
- Set the callback delay to seconds.
Example: CBDELAY = 5
- DIALMAX = num
- Set the number of dial atempts to num.
Example: DIALMAX = 1
- HUPTIMEOUT = seconds
- Set the hanguptime to seconds.
Example: HUPTIMEOUT = 20
- IHUP = on|off
- Turns on or off the hangup timeout for incoming calls.
Example: IHUP = on
- CHARGEHUP = on|off
- Turns on or off hangup before next charge info.
Example: CHARGEHUP = on
- CHARGEINT = seconds
- Sets the charge interval to seconds.
Example: CHARGEINT = 1
- L2_PROT = protocol
- Set the layer-2 protocol. Allowed values for protocol are
x75i, x75ui, x75bui and hdlc.
Example: L2_PROT = hdlc
- L3_PROT = protocol
- Set the layer-3 protocol. Allowed value for protocol is only
trans.
Example: L3_PROT = trans
- ENCAP = encapsulation
- Sets the encapsulation mode. Allowed values for encapsulation
are rawip, ip, cisco_h, cisco_hk,
ethernet, syncppp and uihdlc.
Example: ENCAP = rawip
- ADDSLAVE = slave
- Adds a slave interface for channel-bundling.
Example: ADDSLAVE = s-ippp0
- SDELAY = seconds
- Set the delay in seconds for the slave-dialing.
Example: SDELAY = 10
- TRIGGER = cps
- Set trigger level for slave-dialing.
Example: TRIGGER = 4000
- BIND = driverId,channel
- Binds the current interface to a specific physical channel. Before and
after the comma may not be a blank.
Example: BIND = teles1,0
- PPPBIND = num
- Binds the current interface to the ippp device
/dev/ipppX. This works only for syncronous ppp. The
value must be a number.
Example: PPPBIND = 0
- Example for a configuration file
-
[ISDNCTRL]
INTERFACES = {
[INTERFACE]
NAME = isdn0
EAZ = 4711
PHONE_IN = 08151234
PHONE_OUT = 08151234
SECURE = on
DIALMAX = 1
HUPTIMEOUT= 20
IHUP = on
CHARGEHUP = on
L2_PROT = hdlc
L3_PROT = trans
ENCAP = rawip
ADDSLAVE = s-isdn0
SDELAY = 10
[SLAVE]
NAME = s-isdn0
EAZ = 4711
PHONE_OUT = 08151234
SECURE = on
DIALMAX = 1
HUPTIMEOUT= 10
IHUP = on
CHARGEHUP = on
L2_PROT = hdlc
L3_PROT = trans
ENCAP = rawip
[INTERFACE]
NAME = ippp0
EAZ = 4712
PHONE_OUT = 08151235 08151236
SECURE = on
DIALMAX = 5
HUPTIMEOUT= 200
IHUP = on
CHARGEHUP = on
L2_PROT = hdlc
L3_PROT = trans
ENCAP = syncppp
PPPBIND = 0
}