First you have to decide on how you want to dial out. You will have to use whatever your counterpart requires. These are your main options:
Have a look on section dod on how to configure dial on demand - and on the dangers attached to it.
For more advanced dialout features see question dialout_advanced.
Also you may have a look at section remote when you try to connect to a special remote ISDN device.
auto
{[quot ]}?
The new ISDN drivers in 2.0.36 defaults to manual dialmode, not autodial. This is done to prevent unexpected (and unnoticed) dialouts. (See the big section about those and their dangers: dod). To enable autodial for a given interface e.g. ippp0, use
isdnctrl dialmode ippp0 auto
The meaning of the values for dialmode is:
means that you (or the system) cannot make any connection (neither incoming nor outgoing connections are possible). Use this if you want to be sure that no connections will be made.
means that the interface is in auto-dial mode, and will attempt to make a connection whenever a network data packet needs the interface's link. Note that this can cause unexpected dialouts, and lead to a high phone bill! Some daemons or other pc's that use this interface can cause this. Incoming connections are also possible.
(DEFAULT) is a dial mode created to prevent the unexpected dialouts. In this mode, the interface will never make any connections on its own. You must explicitly initiate a connection with:
isdnctrl dial ippp0
isdnctrl hangup ippp0
huptimeout
may still end the connection
automatically! To ensure that you have to hang up manually, you have to switch
this off:
isdnctrl huptimeout ippp0 0
To allow a normal user to initiate a dialout, have a look at question dialout_permission.
Check out these special dialout features:
ISDN usage depends on the permissions to the devices /dev/ttyI*
and
/dev/cui*
. You have several choices to selectively allow users to do
ISDN transactions.
/etc/group
, and do:
chgrp isdn /dev/ttyI* /dev/cui* chmod o-rw /dev/ttyI* /dev/cui*
/etc/su1.priv
. Add these lines if they (or similar ones) are not yet
there, to allow users XXXX and YYYY to initiate dialups/hangups:
# log all dialouts in syslog syslog all define PPPUSER XXXX YYYY alias dial /sbin/isdnctrl dial ippp0 alias hangup /sbin/isdnctrl hangup ippp0 ask never allow PPPUSER prefix dial allow PPPUSER prefix hangup
ln -s /usr/bin/su1 /usr/local/bin/dial ln -s /usr/bin/su1 /usr/local/bin/hangup
dial
, and hangup with
hangup
.
There are several possibilities to configure dialout.
isdnctrl mapping
to configure the
correct MSNs (see item 'dialout on one specific card').isdnctrl bind
(not pppbind) command to specify which channel should be used.isdnctrl mappping
functionality.
Just map MSNs on the letters 0 to 9, like this:
isdnctrl mapping {[lt ]}carddriver1{[gt ]} 111,222,333,, isdnctrl mapping {[lt ]}carddriver2{[gt ]} 999,888,,777
isdnctrl mapping
functionality.
isdnctrl mapping {[lt ]}carddriver1{[gt ]} 111,222,333,-, isdnctrl mapping {[lt ]}carddriver2{[gt ]} 999,888,-,777