From owner-freebsd-isdn Tue Jul 14 06:31:25 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id GAA02368 for freebsd-isdn-outgoing; Tue, 14 Jul 1998 06:31:25 -0700 (PDT) (envelope-from owner-freebsd-isdn@FreeBSD.ORG) Received: from gilberto.physik.RWTH-Aachen.DE (gilberto.physik.rwth-aachen.de [137.226.30.2]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id GAA02363 for ; Tue, 14 Jul 1998 06:31:12 -0700 (PDT) (envelope-from kuku@gilberto.physik.RWTH-Aachen.DE) Received: (from kuku@localhost) by gilberto.physik.RWTH-Aachen.DE (8.8.8/8.8.7) id PAA17253 for freebsd-isdn@freebsd.org; Tue, 14 Jul 1998 15:30:48 +0200 (MEST) (envelope-from kuku) Date: Tue, 14 Jul 1998 15:30:48 +0200 (MEST) From: Christoph Kukulies Message-Id: <199807141330.PAA17253@gilberto.physik.RWTH-Aachen.DE> To: freebsd-isdn@FreeBSD.ORG Subject: isdnd.rc - cannot dial in Sender: owner-freebsd-isdn@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Environment: i4b-100798, FreeBSD-2.2.6 I thought I would be able to migrate my bisdnd environment without asking a question but though I can dialout fine to every remote site I had established under bisdn I still have configuration difficulties with dialing in (raw ip). And though I studied the isdnd.rc(5) page quite thoroughly I cannot withhold coming up with a question: On vtty6 I can see incoming call from 2405419245 but it doesn't seem to get answered or recognized at all. Below is my isdnd.rc: #------------------------------------------------------------------------------ # # example of a configuration file for the isdn daemon # --------------------------------------------------- # # $Id: isdnd.rc,v 1.7 1998/07/09 12:12:58 hm Exp $ # # last edit-date: [Thu Jul 9 14:14:54 1998] # # NOTICE: # ======= # This configuration file is an EXAMPLE only and MUST be edited # carefully to get the desired results! # # Please read the "isdnd.rc" manual page (execute "man isdnd.rc") # for reference ! # #------------------------------------------------------------------------------ #============================================================================== # SYSTEM section: isdnd global configuration parameters #============================================================================== system # accounting # ---------- acctall = on # generate info for everything acctfile = /var/log/isdnd.acct # name & location of accounting file useacctfile = yes # generate accouting info to file # monitor # ------- monitor-allowed = yes # global switch: monitor on/off monitor-port = 451 # default monitor TCP port # Monitor rights are granted due to the most specific host/net spec, i.e. in # the example below host 192.168.1.2 will have the rights specified on that # line, even so it belongs to net 192.168.1.0/24 as well. # # A monitor specification may either be: # # - the name of a local (UNIX-domain) socket; this MUST start with a "/" #monitor = "/var/run/isdn-monitor" #monitor-access = fullcmd #monitor-access = channelstate, logevents #monitor-access = callin, callout ## ## - a dotted-quad host spec #monitor = "192.168.1.119" #monitor-access = restrictedcmd, channelstate, callin, callout ## ## - a dotted-quad net spec with "/len" (CIDR-style) netmask spec #monitor = "192.168.1.0/24" #monitor-access = restrictedcmd, channelstate, callin, callout ## ## - a resolveable host name #monitor = "rumolt" #monitor-access = restrictedcmd, channelstate, callin, callout ## ## - a resolveable net name with "/len" netmask (s.a.) appended #monitor = "up-vision-net/24" #monitor-access = restrictedcmd, channelstate, callin, callout # # ratesfile # --------- ratesfile = /etc/isdn/isdnd.rates # name & location of rates file # regular expression pattern matching # ----------------------------------- #regexpr = "connected.*KTS" # look for matches in log messages #regprog = connectKTS # execute program when match is found # realtime priority section # ------------------------- rtprio = 25 # modify isdnd's process priority #============================================================================== # entry section: IP over ISDN #============================================================================== entry name = rwth # name for reference. This name will # be used in the logfile to identfy # this entry. # the network or telephone device # the data traffic should be routed to: usrdevicename = ipr # ipr, isppp, tel, rbch usrdeviceunit = 0 # unit number # the ISDN controller number to be # used for this entry: isdncontroller = 0 # contoller to use or -1 to use any isdnchannel = -1 # channel (1/2) to use or 0 or -1 for any # incoming only, outgoing only or both: direction = inout # in, out, inout # numbers used to verify a DIAL IN: local-phone-incoming = 4190006 # my number # numbers used at DIAL OUT time: local-phone-dialout = 4190006 # this is my number remote-phone-dialout = 44129870 # i call this remote number # in case i have several remote # telephone numbers specified, this # is used to specify which one is # used next on dial fail or retry: remdial-handling = first # first, last or next # what happenes if someone dials in: dialin-reaction = accept # reject, ignore, answer, callback # normal dialout or do i call back: dialout-type = normal # normal / calledback callbackwait = 1 # no of secs to wait before calling back # type of protocol on the B-channel: # hdlc must be specified for IP (the # ipr and isppp drivers), raw must be # specified for telephone answering b1protocol = hdlc # hdlc, raw # shorthold mode and idle time # configuration: ratetype = 0 # ratesfile entry to use unitlength = 90 # unitlength to assume unitlengthsrc = rate # none, rate, cmdl, conf, aocd idletime-incoming = 120 # incoming call idle timeout idletime-outgoing = 60 # outgoing call idle timeout earlyhangup = 5 # time to hangup before an expected # next charging unit will occur # retry and recovery parameters dialretries = 3 # # of dial retries dialrandincr = off # random dial increment time recoverytime = 5 # time to wait between 2 dial tries usedown = off # set i/f down downtries = 5 # retry cycles before set down downtime = 30 # time to be in down before going up ##========================================================================== entry name = kuku-home # name for reference. This name will # be used in the logfile to identfy # this entry. # the network or telephone device # the data traffic should be routed to: usrdevicename = ipr # ipr, isppp, tel, rbch usrdeviceunit = 1 # unit number # the ISDN controller number to be # used for this entry: isdncontroller = 0 # contoller to use or -1 to use any isdnchannel = -1 # channel (1/2) to use or 0 or -1 for any # incoming only, outgoing only or both: direction = inout # in, out, inout # numbers used to verify a DIAL IN: local-phone-incoming = 4190006 # my number # numbers used at DIAL OUT time: local-phone-dialout = 4190006 # this is my number remote-phone-dialout = 02405419245 # i call this remote number remote-phone-incoming = 2405419245 # anyone can call in # in case i have several remote # telephone numbers specified, this # is used to specify which one is # used next on dial fail or retry: remdial-handling = first # first, last or next # what happenes if someone dials in: dialin-reaction = accept # reject, ignore, answer, callback # normal dialout or do i call back: dialout-type = normal # normal / calledback callbackwait = 1 # no of secs to wait before calling back # type of protocol on the B-channel: # hdlc must be specified for IP (the # ipr and isppp drivers), raw must be # specified for telephone answering b1protocol = hdlc # hdlc, raw # shorthold mode and idle time # configuration: ratetype = 0 # ratesfile entry to use unitlength = 90 # unitlength to assume unitlengthsrc = rate # none, rate, cmdl, conf, aocd idletime-incoming = 120 # incoming call idle timeout idletime-outgoing = 60 # outgoing call idle timeout earlyhangup = 5 # time to hangup before an expected # next charging unit will occur # retry and recovery parameters dialretries = 3 # # of dial retries dialrandincr = off # random dial increment time recoverytime = 5 # time to wait between 2 dial tries usedown = off # set i/f down downtries = 5 # retry cycles before set down downtime = 30 # time to be in down before going up #============================================================================== # entry section: answering machine example #============================================================================== entry name = I4BTEL # name for reference usrdevicename = tel # ipr, tel, rbch usrdeviceunit = 0 # unit number isdncontroller = 0 # contoller to use or -1 to use any isdnchannel = -1 # channel (1/2) to use or 0 or -1 for any # numbers used to verify at DIAL IN local-phone-incoming = 4190006 # this is my number remote-phone-incoming = * # anyone can call in dialin-reaction = answer # accept, reject, ignore, answer answerprog = answer # program to run b1protocol = raw # hdlc, raw idletime-incoming = 10 # 5 seconds idle timeout #======================================================================= # entry section: PPP example #====================================================================== entry name = I4BPPP usrdevicename = isppp usrdeviceunit = 0 isdncontroller = 0 isdnchannel = -1 local-phone-incoming = 1234 remote-phone-incoming = 5678 local-phone-dialout = 1234 remote-phone-dialout = 5678 remdial-handling = first dialin-reaction = accept dialout-type = normal b1protocol = hdlc idletime-incoming = 240 idletime-outgoing = 30 ratetype = 0 unitlength = 90 unitlengthsrc = rate dialretries = 3 dialrandincr = on recoverytime = 25 usedown = off downtries = 2 downtime = 30 # EOF ######################################################################### The problem seems to be: I can dialout through entry kuku-home but I cannot dial in from kuku-home to ipr1. Here is /etc/rc.isdn: #!/bin/sh # -- from rc.bisdn -- if [ $1 != "restart" ] ; then sysctl -w net.inet.ip.forwarding=1 # config isdn interface 0,1 echo 'configuring ISDN/IP-interface ipr0 ...' ifconfig ipr0 inet 137.226.144.17 137.226.144.1 netmask 255.255.255.255 ifconfig ipr1 inet 192.168.1.119 192.168.0.1 netmask 255.255.255.255 ifconfig ipr0 ifconfig ipr1 route add -net default 137.226.144.1 route add -net 192.168.0.0 192.168.1.119 netstat -rn #--------------------------------------------------------------------------- # # /etc/rc.isdn - isdn4bsd EXAMPLE startup script # ---------------------------------------------- # # $Id: rc.isdn,v 1.3 1998/07/09 12:19:02 hm Exp $ # # NOTICE: # ======= # This startup script file is an EXAMPLE only and MUST be edited # ============================================================== # carefully to get the desired results !!!! # ========================================= # # last edit-date: [Thu Jul 9 13:40:15 1998] # # accepts argument "restart" to kill and restart the isdnd or # argument "stop" to kill isdnd. # #--------------------------------------------------------------------------- fi # rotate isdnd's logfile at startup ? rotate_log=NO #rotate_log=YES # start isdntrace in background run_isdntrace=NO #run_isdntrace=YES # flags for isdntrace #isdntraceflags="" isdntraceflags="-i" # trace logfile for isdntrace isdntracefile=/var/tmp/isdn.trace # enable verbose debugging messages in isdnd do_isdnddebug=NO #do_isdnddebug=YES # debugging level debuglevel="-d0" #debuglevel="-d0xf9 -dn" # output device for fullscreen mode, this device must have no getty running ! out_dev=/dev/ttyv6 # terminal type for fullscreen mode (this is for the pcvt VT220 emulator) out_typ=cons25 # restart daemon ? restart=0 # check for restart or stop arguments if [ $# -eq 1 ] then if [ $1 = restart ] then restart=1 kill `cat /var/run/isdnd.pid` elif [ $1 = stop ] then echo 'terminating the isdn4bsd ISDN management daemon ...' kill `cat /var/run/isdnd.pid` exit 0 fi fi # rotate log file if [ X${rotate_log} = X"YES" ] then if [ -f /var/log/isdnd.log ] then echo "rotating /var/log/isdnd.log file ..." cd /var/log if [ -f isdnd.log4 ] ; then mv -f isdnd.log4 isdnd.log5 ; fi if [ -f isdnd.log3 ] ; then mv -f isdnd.log3 isdnd.log4 ; fi if [ -f isdnd.log2 ] ; then mv -f isdnd.log2 isdnd.log3 ; fi if [ -f isdnd.log1 ] ; then mv -f isdnd.log1 isdnd.log2 ; fi if [ -f isdnd.log0 ] ; then mv -f isdnd.log0 isdnd.log1 ; fi cp -pf isdnd.log isdnd.log0 cat /dev/null > isdnd.log fi fi # start the isdn daemon if [ -x /usr/local/bin/isdnd ] then if [ $restart -eq 1 ] then echo 'restarting the isdn4bsd ISDN management daemon ...' else echo 'starting the isdn4bsd ISDN management daemon ...' fi if [ X${do_isdnddebug} = X"YES" ] then /usr/local/bin/isdnd ${debuglevel} -b -f -r $out_dev -t $out_typ else /usr/local/bin/isdnd -b -f -r $out_dev -t $out_typ fi fi # start the isdntrace utility if [ X${run_isdntrace} = X"YES" ] then if [ -x /usr/local/bin/isdntrace -a $restart -eq 0 ] then echo 'starting the isdn4bsd ISDN tracing facility ...' nohup /usr/local/bin/isdntrace ${isdntraceflags} -f{isdntracefile} >/dev/null 2>&1 & fi fi # EOF A helping tip appreciated. Thanks. -- Chris Christoph P. U. Kukulies kuku@gil.physik.rwth-aachen.de To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the message