Scroll to navigation

() ()
Writes the configuration into a file. If file is omitted, the default file /etc/isdn/isdn.conf will be used.
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:

The name of the interface. This entry is required.

Example: NAME = ippp0

Set the EAZ or the MSN. This entry is required.

Example: EAZ = 4711

Set the incoming phone number(s). It requires at least one blank between the different numbers.

Example: PHONE_IN = 08151234 08151235 08151236

Set the outgoing phone number(s). It requires at least one blank between the different numbers.

Example: PHONE_OUT = 08151237 08151238

Turn on or off the security feature.

Example: SECURE = on

Selects callback mode.

Example: CALLBACK = in

Turns on or off hangup before starting callback.

Example: CBHUP = on

Set the callback delay to seconds.

Example: CBDELAY = 5

Set the number of dial atempts to num.

Example: DIALMAX = 1

Set the hanguptime to seconds.

Example: HUPTIMEOUT = 20

Turns on or off the hangup timeout for incoming calls.

Example: IHUP = on

Turns on or off hangup before next charge info.

Example: CHARGEHUP = on

Sets the charge interval to seconds.

Example: CHARGEINT = 1

Set the layer-2 protocol. Allowed values for protocol are x75i, x75ui, x75bui and hdlc.

Example: L2_PROT = hdlc

Set the layer-3 protocol. Allowed value for protocol is only trans.

Example: L3_PROT = trans

Sets the encapsulation mode. Allowed values for encapsulation are rawip, ip, cisco_h, cisco_hk, ethernet, syncppp and uihdlc.

Example: ENCAP = rawip

Adds a slave interface for channel-bundling.

Example: ADDSLAVE = s-ippp0

Set the delay in seconds for the slave-dialing.

Example: SDELAY = 10

Set trigger level for slave-dialing.

Example: TRIGGER = 4000

Binds the current interface to a specific physical channel. Before and after the comma may not be a blank.

Example: BIND = teles1,0

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

[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
}