4. Adjusting ISDN

4.1. /etc/isdn/callerid.conf

As I am not quite sure, what does the magic, I entered the INTERFACE for my MSN as well as for my ISP. Your own numbers go into MSN-sections, other numbers into NUMBER-sections.

Example 1. /etc/isdn/callerid.conf


[MSN]
NUMBER = YourMSN # (eg. +497219374530)
SI     = 7
ALIAS  = YourMachineName
ZONE   = 0
INTERFACE = ippp0

[NUMBER]
NUMBER = ISPsPhoneNumber # (eg. +49721945939)
ALIAS  = ISPsName
ZONE   = 1
INTERFACE = ippp0

If you don't enter any information here, isdnlog will not be able to change chargehup-time automatically for you. Also make sure to set I4L_DEBUG to 4 (see Section 4.2). It seems to be important to include country-prefix, country- and areacode for this to work. Have a look at man 5 callerid.conf for more options.

4.2. /etc/sysconfig/isdn

Here you have to enter hardware-specific settings. Make sure you set the right driver (I4L_DRIVER), card-type (I4L_TYPE), protocol (I4L_PROTOCOL) etc.

Note: You will normally enter 2 (=EDSS1(Euro-ISDN)) here, older german connections might have to set this to 1 (=1TR6)

If you have a PnP-Card it is important that you have configured it right before trying to start the isdn-subsystem. IRQ, IO and MEM should be set to the same values as in /etc/isapnp.conf.

Example 2. /etc/sysconfig/isdn


I4L_ISDNLOG="yes"
I4L_DEBUG=4
I4L_VERBOSE=3
I4L_PROTOCOL=2
I4L_DRIVER="hisax"
I4L_TYPE=7 # Elsa QuikStep
I4L_ID="ElsaQS"
I4L_IRQ="12"
I4L_IO="0x0360"
I4L_MEM="" # no need for Elsa QS
DYNAMIC_IP="yes"

For further information have a look into:/usr/src/linux/Documentation/isdn/README.HiSax

In the case you do not have static IP-addresses make sure to set DYNAMIC_IP="yes" right here.

If you are done you may try your settings with /etc/rc.d/init.d/isdn4linux start. Instead you might consider executing rcisdn which is in fact just a symlink to /etc/rc.d/init.d/isdn4linux.

If you encounter any problems you may try to increase the values for I4L_DEBUG and I4L_VERBOSE which will end in a flood of information in /var/log/messages. Look into the manpages for isdnctrl and hisaxctrl as well.

Note: Wether this information will actually show up, is dependant from your syslog-settings. You better include a statement for debug in /etc/syslog.conf like this:


*.debug                           /var/log/debug

Also make sure you uncommented debug in /etc/ppp/ippp0.d/options.

Setting I4L_ISDNLOG to "yes" will invoke isdnlog which will:

Of course this is of interest mostly for people living in countries without a flat-rate, here in Germany you will pay about 2.40 Euro (appr. the same in $) per hour for the telephone-connection alone on weekdays during daytime.

4.3. /etc/isdn/ippp0.conf

The only things you may want to change here are:

Example 3. /etc/isdn/ippp0.conf


HUPTIMEOUT = 3
CHARGEHUP = on
CHARGEINT = 90

CHARGEINT is the period in seconds after which ipppd will normally hangup, if CHARGEHUP is set to on. Of course it would be stupid if ipppd would do so during a download, wouldn't it? Well, this is controlled by HUPTIMEOUT. ipppd will only hangup if there was no traffic on the connection for the last HUPTIMEOUT seconds.

A whole bunch of other options might be set by editing /etc/isdn/isdn.conf, I did include mine in the samples-directory of the documentation. You should set your COUNTRYCODE and AREACODE right here [1].

Notes

[1]

Of course in the one in /etc/isdn, not in the one in the samples-directory ;-).