Hlavní navigace

.isdnctrl_conf

I writeconf file
Writes the configuration into a file. If file is omitted, the default file /etc/isdn/isdn.conf will be used.
I 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 R [INTERFACE] or [SLAVE] describes one interface. There are the following entries possible:
I NAME = name
The name of the interface. This entry is required. Example: NAME = ippp0
I EAZ = eaz
Set the EAZ or the MSN. This entry is required. Example: EAZ = 4711
I 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
I 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
I CBDELAY = seconds
Set the callback delay to R seconds . Example: CBDELAY = 5
I DIALMAX = num
Set the number of dial atempts to R num . Example: DIALMAX = 1
I HUPTIMEOUT = seconds
Set the hanguptime to R 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
I CHARGEINT = seconds
Sets the charge interval to R seconds . Example: CHARGEINT = 1
I L2_PROT = protocol
Set the layer-2 protocol. Allowed values for protocol are x75i, x75ui, x75bui and hdlc. Example: L2_PROT = hdlc
I L3_PROT = protocol
Set the layer-3 protocol. Allowed value for protocol is only trans. Example: L3_PROT = trans
I ENCAP = encapsulation
Sets the encapsulation mode. Allowed values for encapsulation are rawip, ip, cisco_h, cisco_hk, ethernet, syncppp and uihdlc. Example: ENCAP = rawip
I ADDSLAVE = slave
Adds a slave interface for channel-bundling. Example: ADDSLAVE = s-ippp0
I SDELAY = seconds
Set the delay in seconds for the slave-dialing. Example: SDELAY = 10
I TRIGGER = cps
Set trigger level for slave-dialing. Example: TRIGGER = 4000
I 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
I PPPBIND = num
Binds the current interface to the ippp device I /dev/ippp X . 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 }