From owner-freebsd-isdn Thu Nov 30 14:37: 6 2000 Delivered-To: freebsd-isdn@freebsd.org Received: from Awfulhak.org (tun.AwfulHak.org [194.242.139.173]) by hub.freebsd.org (Postfix) with ESMTP id D72DB37B400 for ; Thu, 30 Nov 2000 14:37:00 -0800 (PST) Received: from hak.lan.Awfulhak.org (root@hak.lan.awfulhak.org [172.16.0.12]) by Awfulhak.org (8.11.1/8.11.1) with ESMTP id eAUMWv818829; Thu, 30 Nov 2000 22:32:57 GMT (envelope-from brian@hak.lan.Awfulhak.org) Received: from hak.lan.Awfulhak.org (brian@localhost [127.0.0.1]) by hak.lan.Awfulhak.org (8.11.1/8.11.1) with ESMTP id eAUMYrD97827; Thu, 30 Nov 2000 22:34:53 GMT (envelope-from brian@hak.lan.Awfulhak.org) Message-Id: <200011302234.eAUMYrD97827@hak.lan.Awfulhak.org> X-Mailer: exmh version 2.2 06/23/2000 with nmh-1.0.4 To: farber@cpan.org Cc: freebsd-isdn@FreeBSD.ORG, brian@Awfulhak.org Subject: Re: How to use 2 channels on sundays? In-Reply-To: Message from Alexander.Farber@t-online.de (Alexander Farber) of "Thu, 30 Nov 2000 20:39:03 +0100." <3A26ACD7.8F372FC4@t-online.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 30 Nov 2000 22:34:53 +0000 From: Brian Somers Sender: owner-freebsd-isdn@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org In ppp(8), create two links (see src/share/examples/ppp.conf.sample under FreeBSD), and set the second one to interactive. On Sundays, change the mode to ddial with pppctl. In fact, I've just updated this file with comments describing how to do this. Now if only OpenBSD had a /usr/share/examples.... > Hi guys, > > I am using i4b with OpenBSD 2.8, USR Sportser ISA ISDN-card > and userland ppp and it works okay (after I spent 3 weeks)... > > Since I have the german Telekom flatrate and the ISDN-xxl > (which means that phone calls on sundays are freeeee), I'd > like to use both ISDN-channels on sundays. How do I do it? > I haven't found it in the i4b-documentation, "man isdnd" > and "man isdnd.rc" yet. > > The second question is: if I let my computer running all > the time, how would you handle it? Would you setup a cron > job which kills the isdnd at 23:59 on saturdays and sundays > or is there some nicer way? > > Thank you! > Alex > > Here is my /etc/ppp/ppp.conf > > default: > set device /dev/i4brbch0 > set speed sync > set login > set hangup > add! default HISADDR > > uni: > set authname XXX > set authkey XXX > set phone 88721 > > ton: > set authname XXX > set authkey XXX > set phone 0191011 > > Here is my /etc/isdn/isdnd.rc > > 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 = off # global switch: monitor on/off > > # realtime priority section > # ------------------------- > > rtprio = 25 # modify isdnd's process priority > > #============================================================================== > # example of a configuration file for the isdn daemon and userland ppp. > # (see the ppp setup examples in i4b's user-ppp dir and FAQ item 22 !) > #============================================================================== > entry > name = uppp0 # name of entry > usrdevicename = rbch # use the raw b channel access device > usrdeviceunit = 0 # unit 0 > isdncontroller = 0 # use isdn controller 0 > isdnchannel = -1 # use any channel on this controller > local-phone-incoming = 123456789 > remote-phone-incoming = * > local-phone-dialout = 123456789 > remote-phone-dialout = * # ppp(8) will override this > remdial-handling = first > dialin-reaction = ignore # no dialins allowed > dialout-type = normal > b1protocol = hdlc # b channel layer 1 protocol > idletime-incoming = 0 # Should be larger than ppps timeout > idletime-outgoing = 0 # Should be larger than ppps timeout > ratetype = 0 > unitlength = 90 > unitlengthsrc = rate > dialretries = 1 > dialrandincr = on > recoverytime = 25 > usedown = off > downtries = 2 > downtime = 30 -- Brian Don't _EVER_ lose your sense of humour ! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the message