From owner-freebsd-isdn Tue Jun 1 4: 8:35 1999 Delivered-To: freebsd-isdn@freebsd.org Received: from whiterose.net (whiterose.net [199.245.105.145]) by hub.freebsd.org (Postfix) with ESMTP id B1EFC15030 for ; Tue, 1 Jun 1999 04:08:29 -0700 (PDT) (envelope-from lundman@argonaut.com) Received: from netbsd.argonaut.com ([193.128.238.146]) by whiterose.net (8.9.1/4.1.1) with ESMTP id HAA31403 for ; Tue, 1 Jun 1999 07:08:31 -0400 From: lundman@argonaut.com Received: from argonaut.com (lordlund [192.10.13.202]) by netbsd.argonaut.com (8.9.3/8.8.5) with ESMTP id MAA29562 for ; Tue, 1 Jun 1999 12:03:05 +0100 (BST) Date: Tue, 1 Jun 1999 12:03:05 +0100 (BST) Message-ID: <3753BF41.809ADE9@argonaut.com> ate: Tue, 01 Jun 1999 12:08:49 +0100 rom: HRH Jorgen Lundman -Mailer: Mozilla 4.5 [en] (Win95; I) -Accept-Language: en,ja IME-Version: 1.0 o: freebsd-isdn@freebsd.org ubject: ISDN and ASU1690, almost there :) ontent-Type: text/plain; charset=us-ascii ontent-Transfer-Encoding: 7bit Sender: owner-freebsd-isdn@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hello ISDNers :) We are running NetBSD-1.4 (i386) here, and have just installed your ISDN package .81 May '99. This is a long message, we appologise. The ISDN card is asyscom isdnlink. After patching the kernel and installed the ISDN package the kernel boot up message was that of: May 22 08:38:30 spoongate /netbsd: isapnp0: port 0x100/8 irq 3 not configured But we spotted the kernel had support for asus 1688, so we modified layer1/isapnp_isic.c to look for ASU1690 instead of ASU1688, and we got further, however, it was expecting version 1.2 and slightly different HSC0 and 1. Like: May 27 10:06:06 spoongate /netbsd: isic0 at isapnp0 port 0x100/8 irq 3: Dynalink IS64PH May 27 10:06:06 spoongate /netbsd: isic0: HSCX VSTR test failed for Dynalink PnP May 27 10:06:06 spoongate /netbsd: isic0: HSC0: VSTR: 0x82 May 27 10:06:06 spoongate /netbsd: isic0: HSC1: VSTR: 0x82 May 27 10:06:06 spoongate /netbsd: isic0: ISAC 2085 Version V2.3 (B3) (IOM-2) May 27 10:06:06 spoongate /netbsd: isic0: HSCX 82525 Version A2 So to layer1/i4b_dynalink.c.c we went, and changed the compare for HSC0 and HSC1 to: /* Read HSCX A/B VSTR. Expected value is 0x05 (V2.1). */ if( ((HSCX_READ(0, H_VSTR) & 0xf) != 0x2) || ((HSCX_READ(1, H_VSTR) & 0xf) != 0x2) ) Rebooted once again, and finally we got: Jun 1 02:39:18 spoongate /netbsd: isic0 at isapnp0 port 0x100/8 irq 3: Dynalink IS64PH Jun 1 02:39:18 spoongate /netbsd: isic0: ISAC 2085 Version V2.3 (B3) (IOM-2) Jun 1 02:39:18 spoongate /netbsd: isic0: HSCX 82525 Version A2 Jun 1 02:39:18 spoongate /netbsd: biomask 4040 netmask 4448 ttymask 444a Jun 1 02:39:18 spoongate /netbsd: i4b: ISDN call control device attached Jun 1 02:39:18 spoongate /netbsd: i4btrc: 2 ISDN trace device(s) attached Jun 1 02:39:18 spoongate /netbsd: i4bctl: ISDN system control port attached Jun 1 02:39:18 spoongate /netbsd: i4brbch: 4 raw B channel access device(s) attached Jun 1 02:39:18 spoongate /netbsd: i4btel: 2 ISDN telephony interface device(s) attached Jun 1 02:39:18 spoongate /netbsd: i4bipr: 2 IP over raw HDLC ISDN device(s) attached (VJ header compression) Jun 1 02:39:18 spoongate /netbsd: i4bisppp: 2 ISDN SyncPPP device(s) attached Which we thought was encouraging :) So, we created the PPP script like the handbook suggests, which executes the following commands: + ifconfig isp0 delete -link1 down + spppcontrol isp0 myauthproto=pap + spppcontrol isp0 myauthname=uk,ppp,rbeswick + spppcontrol isp0 myauthsecret=craft-75trident + ifconfig isp0 0.0.0.0 XXX.XXX.XXX.XXX netmask 0xffffffff link1 ^^^ remote ISPs gate IP Then we go ifconfig isp0 up and try to telnet to XXX.XXX.XXX.XXX above. We've started isdnd -d 1023 -F -l -L log and the following is in the log file: and has the actualy phone numbers, not those strings :) Tripple checked they are correct (what was called from Win95 etc) 01.06.1999 04:19:03 DBG init_controller_state: controller 0 is Dynalink IS64PH 01.06.1999 04:19:03 DBG init_controller: found 1 ISDN controller(s) 01.06.1999 04:19:03 DBG entry 0: name = I4BPPP 01.06.1999 04:19:03 DBG entry 0: usrdevicename = isp 01.06.1999 04:19:03 DBG entry 0: usrdeviceunit = 0 01.06.1999 04:19:03 DBG entry 0: isdncontroller = 0 01.06.1999 04:19:03 DBG entry 0: isdnchannel = any 01.06.1999 04:19:03 DBG entry 0: local_phone_incoming = * 01.06.1999 04:19:03 DBG entry 0: remote_phone_incoming #0 = * 01.06.1999 04:19:03 DBG entry 0: local_phone_dialout = 01.06.1999 04:19:03 DBG entry 0: remote_phone_dialout #0 = 01.06.1999 04:19:03 DBG entry 0: remdial_handling = first 01.06.1999 04:19:03 DBG entry 0: dialin_reaction = reject 01.06.1999 04:19:03 DBG entry 0: dialouttype = normal 01.06.1999 04:19:03 DBG entry 0: b1protocol = hdlc 01.06.1999 04:19:03 DBG entry 0: idle_time_in = 240 01.06.1999 04:19:03 DBG entry 0: idle_time_out = 60 01.06.1999 04:19:03 DBG entry 0: ratetype = 0 01.06.1999 04:19:03 DBG entry 0: unitlength = 90 01.06.1999 04:19:03 DBG entry 0: unitlengthsrc = rate 01.06.1999 04:19:03 DBG entry 0: dialretries = 3 01.06.1999 04:19:03 DBG entry 0: dialrandincr = 1 01.06.1999 04:19:03 DBG entry 0: recoverytime = 25 01.06.1999 04:19:03 DBG entry 0: usedown = 0 01.06.1999 04:19:03 DBG entry 0: downtries = 2 01.06.1999 04:19:03 DBG entry 0: downtime = 30 01.06.1999 04:19:03 DBG rates: NO entry for day 0 !! (etc for all days) 01.06.1999 04:19:03 DBG ratesfile /etc/isdn/isdnd.rates read successfully 01.06.1999 04:19:03 DMN i4b isdn daemon started (pid = 1335) 01.06.1999 04:19:04 DBG time < 1 - last 928235944:760066 now 928235944:760071 01.06.1999 04:19:05 DBG time OK! - last 928235944:760066 now 928235945:760025 01.06.1999 04:19:06 DBG time OK! - last 928235945:760188 now 928235946:760033 01.06.1999 04:19:07 DBG time OK! - last 928235946:760233 now 928235947:760027 01.06.1999 04:19:08 DBG time OK! - last 928235947:760200 now 928235948:760036 01.06.1999 04:19:09 DBG time OK! - last 928235948:760237 now 928235949:760028 01.06.1999 04:19:10 DBG time OK! - last 928235949:760214 now 928235950:760035 01.06.1999 04:19:11 DBG time OK! - last 928235950:760227 now 928235951:760035 (etc on the time lines, until I issued the telnet command and this appears) 01.06.1999 04:19:28 DBG msg_dialout: dial req from isp, unit 0 01.06.1999 04:19:28 DBG setup_dialout: entry I4BPPP ok! 01.06.1999 04:19:28 DBG find_by_device_for_dialout: found entry 0! 01.06.1999 04:19:28 DBG FSM event [msg-dialout]: [idle => dialing] 01.06.1999 04:19:28 DBG F_DIAL: local dial out request 01.06.1999 04:19:28 DBG select_first_dialno: only one no, no = 08450798555 01.06.1999 04:19:28 CHD 00006 I4BPPP rate 60 sec/unit (ratescan fail) 01.06.1999 04:19:28 DBG sendm_connect_req: ctrl = 0, chan = -1 01.06.1999 04:19:28 DBG decr_free_channels: ctrl 0, now 1 chan free 01.06.1999 04:19:28 CHD 00006 I4BPPP dialing out from 01392444369 to 08450798555 01.06.1999 04:19:28 DBG time < 900000us - last 928235967:760231 now 928235968:43 7709 01.06.1999 04:19:29 DBG time OK! - last 928235967:760231 now 928235969:430035 Meanwhile, in the syslog, the following errors occur: Jun 1 04:19:30 spoongate /netbsd: i4b-L2-i4b_T202_timeout: unit 0, N202 = 3 Jun 1 04:19:30 spoongate /netbsd: i4b-L1-ph_data_req: No Space in TX FIFO, state = F4 Awaiting Signal Jun 1 04:19:30 spoongate /netbsd: i4b-L1-timer3_expired: state = F4 Awaiting Signal Jun 1 04:19:30 spoongate /netbsd: i4b-L1-isic_recover: HSCX B: ISTA = 0x0 Jun 1 04:19:30 spoongate /netbsd: i4b-L1-isic_recover: ISAC: ISTA = 0xff Jun 1 04:19:30 spoongate /netbsd: i4b-L1-isic_recover: ISAC: EXIR = 0xff Jun 1 04:19:30 spoongate /netbsd: i4b-L1-isic_recover: ISAC: CISQ = 0xff Jun 1 04:19:30 spoongate /netbsd: i4b-L1-isic_recover: ISAC: SQRR = 0xff Jun 1 04:19:30 spoongate /netbsd: i4b-L1-isic_recover: HSCX B: IMASK = 0xff Jun 1 04:19:30 spoongate /netbsd: i4b-L1-isic_recover: HSCX A: IMASK = 0xf8 Jun 1 04:19:30 spoongate /netbsd: i4b-L1-isic_recover: ISAC: IMASK = 0x2a Jun 1 04:19:32 spoongate /netbsd: i4b-L3-T303_timeout: SETUP not answered, cr = 121 Jun 1 04:19:32 spoongate /netbsd: i4b-L3-next_l3state: FSM illegal state, state = ST_OW - Out Wait EST, event = EV_T303EXP - T303 timeout! and we are stuck :( Can any help or give a hint at which direction we should go? Anything would be appreciated! Lund -- Jorgen Lundman Programmer & Unix Administrator http://www.whiterose.net/users/lundman/ "It is easy to be wise in hindsight" To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the message