Re: AW: ISDN (bisdn)

From: Wolfgang Helbig <helbig(at)MX.BA-Stuttgart.De>
Date: Sun, 8 Jun 1997 01:46:17 +0200 (MET DST)

Hallo Martin,

Zur Lösung der ersten Aufgabe einige Tips :-)
(Ehrlich, ich war nie Lehrer ...)

Da Du auch das PPP Paket installiert hast, hast Du auch vermutlich
den bisdnd gepatcht. Dadurch hat er die Fähigkeit verloren, auf
Telefonanrufe zu antworten. In bisdnd/support.c muß es heißen:

int
connected(accept_t **accept_pp, int isdnfd, int atyp, int appl_no, int chan,
                int active)
{
        accept_t *accept_p;
        int ret;
        
        switch(atyp)
        {
                case ATYP_IP:
                        accept_p = connect_ip(appl_no, chan, active);
                        ret = GOOD;
                        break;
                case ATYP_PPP:
                        accept_p = connect_ipp(appl_no, chan, active);
                        ret = GOOD;
                        break;
#ifdef NOTDEF
                case ATYP_TTY:
                        accept_p = connect_tty(isdnfd, appl_no, chan, active);
                        ret = GOOD;
                        break;
#endif
                case ATYP_TEL:
                        accept_p = connect_tel(appl_no, chan, active);
                        ret = GOOD;
                        break;
                default:
                        accept_p = NULL;
                        ret = ERROR;
                        break;
                        
        }

Der Fall ATYP_TEL ist aus irgendeinem Grunde verlorengegangen und
muß wieder eingefügt werden.

Hier eine Beispielkonfigurationsdatei für den "Anrufbeantworter":

#------------------------------------------------------------------------------
#
# example of a DSS1 (Euro-ISDN) configuration file for the bisdn-daemon
# ---------------------------------------------------------------------
#
# last edit-date: [Mon Jul 8 12:41:52 1996]
#
#------------------------------------------------------------------------------
#==============================================================================
# system configuration section
#==============================================================================
system # this keyword starts the system configuration
                                # ============================================
ratesfile = /etc/bisdn/bisdnd.rates # the name of the ratesfile, specify this
                                # if you don't like the default
acctfile = /var/log/bisdnd.acct # if useacctfile is true, this is the name
                                # of the file the charging and accounting
                                # information is written into.
useacctfile = on # off = do not write accounting info
                                # on = write accounting info into the file
                                # specified by acctfile
acctall = on # off = write accounting records only for
                                # charged connections
                                # on = write accounting records for charged
                                # and not charged connections
answprog = answer # program name of the telephone answering
                                # program, located under /etc/bisdn
playprog = play # program name of the telephone play
                                # program, located under /etc/bisdn
#regprog0 = connectHCS # program to be executed when regular
                                # expression regexpr0 is matched
#regexpr0 = connected.*HCS # regular expression, this will be compared
                                # to logging output, if match, exec regprog0
#==============================================================================
# incoming telephone calls
#==============================================================================
entry # this keyword starts a configuration entry
                                # =========================================
name = TEL-IN # symbolic name for this entry/link
                                # any alphanumeric value, just for identification
interface = play # name of the interface / service
                                # possible entries for interface are:
                                # ipi<n> IP over ISDN, <n> = i/f number
                                # tty login via a tty
                                # answ telephone answering
                                # play telephone playback
controller = 0 # controller number to use for outgoing calls
                                # (is configured by the 'isdntype' keyword)
isdntype = dss1 # isdn protocol type for this controller
                                # possible values are '1tr6' and 'dss1'
telnrem-rdi = * # telephone number used to detect/verify a
                                # remote site calling into the local system
telnloc-rdi = 920228 # my own local telephone number used to verify
                                # me as a correct destination when i'm called
                                # by a remote site.
                                # (in case of the 1TR6 protocol this must be
                                # the local systems 'EAZ')
reaction = accept # what to do when remote site calls in
                                # possible values are:
                                # accept - accept incoming call
                                # reject - reject incoming call
                                # callback - hangup and call back
                                # calledback - after dialing i'm called back
                                # alert - only Juergen knows ...
protocol = raw # protocol to use for this link, values:
                                # raw - raw HDLC frames
                                # ui - ui frames
                                # x75 - X.75 encapsulation
                                # t70 - T.70 protocol
                                # t90 - T.90 protocol
                                # iso - ISO 8208 protocol
idletime-in = 30 # close incoming connection after being idle
                                # this time in seconds
ratetype = 0 # which rate entry to use from bisdnd.rates
                                #
# EOF #########################################################################

Wenn alles richtig installiert ist, und BISDN über Deine Inhouseanlage
funktioniert (das muß nicht so sein!) kannst Du bisdn anrufen und
er sagt Dir dann was. Wenn er nichts sagt, lohnt es sich bisdntrc
zu starten, um den Fehler einzukreisen.
 
Viel Erfolg

Wolfgang

Uebrigens, haben die patches von bisdntest-2 funktioniert? Wenn
/usr/include/machine keinen symbolischen Link auf /sys/i386/include
hat, sondern ein ``echtes'' Verzeichnis ist, mußt Du noch bisdn_ioctl.h
und bisdn_isdn.h von /usr/include/machine nach /sys/i386/include
kopieren und dann `sh mkbisdnkernel' aufrufen.
Received on Sun 08 Jun 1997 - 09:42:08 CEST

search this site