From owner-freebsd-isdn@FreeBSD.ORG Sun Jun 12 17:06:24 2005 Return-Path: X-Original-To: freebsd-isdn@freebsd.org Delivered-To: freebsd-isdn@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1C95016A41C for ; Sun, 12 Jun 2005 17:06:24 +0000 (GMT) (envelope-from listen@brainworx.de) Received: from joab.cx2.org (joab.cx2.org [195.225.132.171]) by mx1.FreeBSD.org (Postfix) with ESMTP id C0A8643D1F for ; Sun, 12 Jun 2005 17:06:23 +0000 (GMT) (envelope-from listen@brainworx.de) Received: from brainboxx.clx.net (p548416AD.dip0.t-ipconnect.de [84.132.22.173]) by joab.cx2.org (Postfix) with ESMTP id 85AA2B02CC for ; Sun, 12 Jun 2005 18:13:30 +0200 (CEST) Date: Sun, 12 Jun 2005 18:14:04 +0200 From: =?iso-8859-1?Q?Andr=E9?= Braselmann To: freebsd-isdn@freebsd.org Message-ID: <20050612161403.GA562@brainboxx.clx.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-PGP-URL: http://braisel.com/gpgkey.asc X-Accepted-File-Formats: ASCII PDF - *NO* MS Office Files! User-Agent: Mutt/1.5.9i Subject: Callback solution with i4b? X-BeenThere: freebsd-isdn@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using ISDN with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Jun 2005 17:06:24 -0000 Hi there, a basic question about connecting 2 D-channels as telephone lines (i4btel0 and i4btel1) in i4b: Is it possible to create a callback solution with this two interfaces? For instance: Voicecall comes in, CLID is checked and a callback to this number is initiated. When the connection is made, the caller gets the option to dial out (make a call) via the second channel. DTMF recognition is necessary. But how do i make the call and join the two devices? The BRI interface is a FritzCard PCI. Are there any Shellscript examples? ThanX so far... GreetZ from EastFrisia Andre From owner-freebsd-isdn@FreeBSD.ORG Mon Jun 13 11:02:10 2005 Return-Path: X-Original-To: freebsd-isdn@freebsd.org Delivered-To: freebsd-isdn@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5524516A41C for ; Mon, 13 Jun 2005 11:02:10 +0000 (GMT) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 19DFC43D4C for ; Mon, 13 Jun 2005 11:02:10 +0000 (GMT) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (peter@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j5DB29VC046180 for ; Mon, 13 Jun 2005 11:02:09 GMT (envelope-from owner-bugmaster@freebsd.org) Received: (from peter@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j5DB297o046174 for freebsd-isdn@freebsd.org; Mon, 13 Jun 2005 11:02:09 GMT (envelope-from owner-bugmaster@freebsd.org) Date: Mon, 13 Jun 2005 11:02:09 GMT Message-Id: <200506131102.j5DB297o046174@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: peter set sender to owner-bugmaster@freebsd.org using -f From: FreeBSD bugmaster To: freebsd-isdn@FreeBSD.org Cc: Subject: Current problem reports assigned to you X-BeenThere: freebsd-isdn@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using ISDN with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Jun 2005 11:02:10 -0000 Current FreeBSD problem reports Critical problems Serious problems Non-critical problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2004/11/16] bin/73988 isdn ISDN - first dial attempt fails o [2005/01/23] kern/76611 isdn i4b itjc bad enums for PIB cycle time o [2005/03/22] kern/79117 isdn iavc(4) for AVM B1 PCI does not attach 3 problems total. From owner-freebsd-isdn@FreeBSD.ORG Fri Jun 17 08:26:39 2005 Return-Path: X-Original-To: freebsd-isdn@freebsd.org Delivered-To: freebsd-isdn@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6F30016A41C; Fri, 17 Jun 2005 08:26:39 +0000 (GMT) (envelope-from cian@cian.ws) Received: from mail.cian.ws (cian.ws [62.231.45.32]) by mx1.FreeBSD.org (Postfix) with ESMTP id DCEC043D4C; Fri, 17 Jun 2005 08:26:38 +0000 (GMT) (envelope-from cian@cian.ws) Received: from localhost (localhost [127.0.0.1]) by mail.cian.ws (Postfix) with ESMTP id 3961D705259; Fri, 17 Jun 2005 09:26:37 +0100 (IST) Received: from mail.cian.ws ([127.0.0.1]) by localhost (g5.cian.ws [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 13879-04-2; Fri, 17 Jun 2005 09:26:36 +0100 (IST) Received: from [IPv6:2001:770:125::5] (unknown [IPv6:2001:770:125::5]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by mail.cian.ws (Postfix) with ESMTP id 60842705238; Fri, 17 Jun 2005 09:26:36 +0100 (IST) Mime-Version: 1.0 (Apple Message framework v730) To: freebsd-isdn@freebsd.org, freebsd-stable@freebsd.org Message-Id: <7112CBFA-724E-4846-AA2E-1EFBC4B49CE2@cian.ws> From: Cian Hughes Date: Fri, 17 Jun 2005 09:26:35 +0100 X-Mailer: Apple Mail (2.730) X-Virus-Scanned: amavisd-new at g5.cian.ws Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Problem with C4B on FreeBSD-Stable X-BeenThere: freebsd-isdn@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using ISDN with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Jun 2005 08:26:39 -0000 I get this error on boot: CAPI subsystem startup: kcapimgr capidev avmaic avmaic0: port 0xec80-0xec9f,0xecc0-0xecff mem 0xfdfffc00-0xfdfffc3f irq 10 at device 8.0 on pci1 avmaic0: "AVMB1-1" successfully attached as CAPI controller 1 kcapimgr: E kcapi_reset_ctlr: ERROR: Root permission required to reset controller 1 Error in download operation for board "AVMB1-1", number 1: Insufficient rights, must have root privileges /etc/rc: WARNING: Download command for avmaic failed. if you have any suggestions I would be most obliged. also if I type this from a command line: oppy# avmaicctl -q -f /etc/avmaic.cfg Error in download operation for board "AVMB1-1", number 1: Insufficient rights, must have root privileges (and on console: kcapimgr: E kcapi_reset_ctlr: ERROR: Root permission required to reset controller 1) Regards, Cian Hughes -- E cian@cian.ws NIC Handle CIAN-6BONE M +353-86-8465317 H +353-1-4991205 F +353-1-4900248 From owner-freebsd-isdn@FreeBSD.ORG Fri Jun 17 10:35:18 2005 Return-Path: X-Original-To: freebsd-isdn@freebsd.org Delivered-To: freebsd-isdn@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3091216A41C for ; Fri, 17 Jun 2005 10:35:18 +0000 (GMT) (envelope-from cian@cian.ws) Received: from mail.cian.ws (cian.ws [62.231.45.32]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2EB3043D55 for ; Fri, 17 Jun 2005 10:35:17 +0000 (GMT) (envelope-from cian@cian.ws) Received: from localhost (localhost [127.0.0.1]) by mail.cian.ws (Postfix) with ESMTP id 766CA705C0A for ; Fri, 17 Jun 2005 11:35:16 +0100 (IST) Received: from mail.cian.ws ([127.0.0.1]) by localhost (g5.cian.ws [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 16301-05 for ; Fri, 17 Jun 2005 11:35:15 +0100 (IST) Received: from [IPv6:2001:770:125::5] (unknown [IPv6:2001:770:125::5]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by mail.cian.ws (Postfix) with ESMTP id 6CD47705BEC for ; Fri, 17 Jun 2005 11:35:15 +0100 (IST) Mime-Version: 1.0 (Apple Message framework v730) In-Reply-To: <7112CBFA-724E-4846-AA2E-1EFBC4B49CE2@cian.ws> References: <7112CBFA-724E-4846-AA2E-1EFBC4B49CE2@cian.ws> Message-Id: <475744B9-48D9-474F-96E9-4C48869FD970@cian.ws> From: Cian Hughes Date: Fri, 17 Jun 2005 11:35:13 +0100 To: freebsd-isdn@freebsd.org X-Mailer: Apple Mail (2.730) X-Virus-Scanned: amavisd-new at g5.cian.ws Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Re: Problem with C4B on FreeBSD-Stable X-BeenThere: freebsd-isdn@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using ISDN with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Jun 2005 10:35:18 -0000 (I know I shouldn't reply to my own posts) I traced my last problem to kcapi_ctlr.c here are my changes starting at line 845 /* check if operation is allowed by owner of the current process / thread */ if (! curthread || curthread->td_ucred == NOCRED || curthread->td_ucred == FSCRED || suser (curthread) != 0) { mtx_unlock (&g_mtxCtlrData); DBG (LOG_ERROR, "ERROR: Root permission required to reset controller %u", uCtlr); DBG (LOG_ERROR, "ERROR: CIANHHH: User is: %u", suser (curthread)); if (! curthread) { DBG (LOG_ERROR, "ERROR: CIANHHH: curthread"); } if (curthread->td_ucred == NOCRED) { DBG (LOG_ERROR, "ERROR: CIANHHH: NOCRED"); } if (curthread->td_ucred == FSCRED ) { DBG (LOG_ERROR, "ERROR: CIANHHH: FSCRED"); } uRes = CRE_NO_RIGHTS_TO_RESET; kcapitrace_appl_reset_ctlr (uCtlr, nNumDataBlocks, paDataBlocks, uRes); return (uRes); } on boot I got: kcapimgr: E kcapi_reset_ctlr: ERROR: CIANHHH: User is: 0 kcapimgr: E kcapi_reset_ctlr: ERROR: CIANHHH: NOCRED Then I removed " curthread->td_ucred == NOCRED || " test, i'm the only one with access to this box so i'm not to worried about security, i'll look into why it's failing later. ______ Now we kernel panic when running capitest: # capitest -s -tx 014900248 capidev: T capidev_open: CAPI device is beeing opened capidev: D capidev_open: new temp fd 4 allocated kernel trap 12 with interrupts disabled Fatal trap 12: page fault while in kernel mode fault virtual address = 0x6c fault code = supervisor read, page not present instruction pointer = 0x8:0xc050b6d1 stack pointer = 0x10:0xc7dddbd8 frame pointer = 0x10:0xc7dddbdc code segment = base 0x0, limit 0xfffff, type 0x1b = DPL 0, pres 1, def32 1, gran 1 processor eflags = resume, IOPL = 0 current process = 558 (capitest) trap number = 12 panic: page fault Uptime: 54s Cannot dump. No dump device defined. Automatic reboot in 15 seconds - press a key on the console to abort and again when starting asterisk: oppy:root:/usr/local/etc/asterisk:0# capidev: T capidev_open: CAPI device is beeing opened capidev: D capidev_open: new temp fd 25 allocated capidev: D capidev_ioctl: CAPI_GET_PROFILE: Result 0x0000, controller 0 capidev: D capidev_close: Application not registered, only close file descriptor capidev: T capidev_open: CAPI device is beeing opened capidev: D capidev_open: new temp fd 25 allocated kernel trap 12 with interrupts disabled Fatal trap 12: page fault while in kernel mode fault virtual address = 0x6c fault code = supervisor read, page not present instruction pointer = 0x8:0xc050b6d1 stack pointer = 0x10:0xcc445bd8 frame pointer = 0x10:0xcc445bdc code segment = base 0x0, limit 0xfffff, type 0x1b = DPL 0, pres 1, def32 1, gran 1 processor eflags = resume, IOPL = 0 current process = 599 (asterisk) trap number = 12 panic: page fault Uptime: 5m14s Cannot dump. No dump device defined. Regards, Cian On 17 Meith 2005, at 09:26, Cian Hughes wrote: > I get this error on boot: > CAPI subsystem startup: kcapimgr capidev > avmaic avmaic0: port 0xec80-0xec9f,0xecc0-0xecff > mem 0xfdfffc00-0xfdfffc3f irq 10 at device 8.0 on pci1 > avmaic0: "AVMB1-1" successfully attached as CAPI controller 1 > kcapimgr: E kcapi_reset_ctlr: ERROR: Root permission required to > reset controller 1 > Error in download operation for board "AVMB1-1", number 1: > Insufficient rights, must have root privileges > /etc/rc: WARNING: Download command for avmaic failed. > > if you have any suggestions I would be most obliged. > > also if I type this from a command line: > oppy# avmaicctl -q -f /etc/avmaic.cfg > Error in download operation for board "AVMB1-1", number 1: > Insufficient rights, must have root privileges > (and on console: kcapimgr: E kcapi_reset_ctlr: ERROR: Root > permission required to reset controller 1) > > Regards, > Cian Hughes From owner-freebsd-isdn@FreeBSD.ORG Fri Jun 17 11:55:51 2005 Return-Path: X-Original-To: freebsd-isdn@freebsd.org Delivered-To: freebsd-isdn@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 468C216A41F for ; Fri, 17 Jun 2005 11:55:51 +0000 (GMT) (envelope-from punky@gmx.ch) Received: from mail.gmx.net (pop.gmx.net [213.165.64.20]) by mx1.FreeBSD.org (Postfix) with SMTP id 8CCAF43D1F for ; Fri, 17 Jun 2005 11:55:50 +0000 (GMT) (envelope-from punky@gmx.ch) Received: (qmail invoked by alias); 17 Jun 2005 11:55:48 -0000 Received: from p213.54.67.195.tisdip.tiscali.de (EHLO LUZIFER) [213.54.67.195] by mail.gmx.net (mp019) with SMTP; 17 Jun 2005 13:55:48 +0200 X-Authenticated: #1975484 Date: Fri, 17 Jun 2005 13:55:53 +0200 From: Johannes Ton X-Priority: 3 (Normal) Message-ID: <6610579449.20050617135553@gmx.ch> To: freebsd-isdn User-Agent: Die Fledermaus MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 Subject: C4B Patching Problem X-BeenThere: freebsd-isdn@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using ISDN with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Jun 2005 11:55:51 -0000 Hi List, I have a strange problem with the patch for controller.c under usr.sbin/i4b. The output of the do-patch script: Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |--- controller.c.orgig Sat Dec 22 10:38:24 2001 |+++ controller.c Wed Mar 23 22:51:03 2005 -------------------------- Patching file controller.c using Plan A... Hunk #1 failed at 95. Hunk #2 failed at 121. Hunk #3 failed at 218. 3 out of 3 hunks failed--saving rejects to controller.c.rej - C4B V. 1.0 - FreeBSD 5.3 Release I refetched controller.c and the whole c4b package, but the same problem. If I try to patch the file direkt: diabolo# patch < patch-usr.sbin-i4b-isdnd Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |--- usr.sbin/i4b/isdnd/controller.c.org.c4b Sat Dec 22 10:38:24 2001 |+++ usr.sbin/i4b/isdnd/controller.c Wed Mar 23 22:51:03 2005 -------------------------- File to patch: /usr/src/usr.sbin/i4b/isdnd/controller.c Patching file /usr/src/usr.sbin/i4b/isdnd/controller.c using Plan A... Hunk #1 failed at 95. Hunk #2 failed at 121. Hunk #3 failed at 218. 3 out of 3 hunks failed--saving rejects to /usr/src/usr.sbin/i4b/isdnd/controller.c.rej Any ideas? Or does the problem sit in front of my pc? Thanks in advance, Johannes From owner-freebsd-isdn@FreeBSD.ORG Fri Jun 17 16:19:16 2005 Return-Path: X-Original-To: freebsd-isdn@freebsd.org Delivered-To: freebsd-isdn@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 49A2416A41C for ; Fri, 17 Jun 2005 16:19:16 +0000 (GMT) (envelope-from cianlists@cian.ws) Received: from mail.cian.ws (cian.ws [62.231.45.32]) by mx1.FreeBSD.org (Postfix) with ESMTP id 337BB43D1D for ; Fri, 17 Jun 2005 16:19:14 +0000 (GMT) (envelope-from cianlists@cian.ws) Received: from localhost (localhost [127.0.0.1]) by mail.cian.ws (Postfix) with ESMTP id 564BE707B73; Fri, 17 Jun 2005 17:19:14 +0100 (IST) Received: from mail.cian.ws ([127.0.0.1]) by localhost (g5.cian.ws [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 18092-06-2; Fri, 17 Jun 2005 17:19:13 +0100 (IST) Received: from [0P?IPv6:2001:770:125::3] (ti.cian.ws [IPv6:2001:770:125::3]) by mail.cian.ws (Postfix) with ESMTP id D226E707B61; Fri, 17 Jun 2005 17:19:12 +0100 (IST) In-Reply-To: <6610579449.20050617135553@gmx.ch> References: <6610579449.20050617135553@gmx.ch> Mime-Version: 1.0 (Apple Message framework v730) X-Priority: 3 (Normal) Message-Id: From: Cian Hughes Date: Fri, 17 Jun 2005 17:19:09 +0100 To: Johannes Ton , freebsd-isdn@freebsd.org X-Mailer: Apple Mail (2.730) X-Virus-Scanned: amavisd-new at g5.cian.ws Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Re: C4B Patching Problem X-BeenThere: freebsd-isdn@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using ISDN with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Jun 2005 16:19:16 -0000 C4B is a bit wierd at the moment as far a patching is concerned, are you sure you are patching 5.3-Release src and have never run cvsup, you could also try patching 5.4-Release, which definitely works, I'm trying to patch FreeBSD-Current at the moment, i'll let you know how that goes. Cian Hughes cianlists@cian.ws On 17 Jun 2005, at 12:55, Johannes Ton wrote: > Hi List, > > I have a strange problem with the patch for controller.c under > usr.sbin/i4b. > > The output of the do-patch script: > > Hmm... Looks like a unified diff to me... > The text leading up to this was: > -------------------------- > |--- controller.c.orgig Sat Dec 22 10:38:24 2001 > |+++ controller.c Wed Mar 23 22:51:03 2005 > -------------------------- > Patching file controller.c using Plan A... > Hunk #1 failed at 95. > Hunk #2 failed at 121. > Hunk #3 failed at 218. > 3 out of 3 hunks failed--saving rejects to controller.c.rej > > - C4B V. 1.0 > - FreeBSD 5.3 Release > > I refetched controller.c and the whole c4b package, but the same > problem. > > If I try to patch the file direkt: > > diabolo# patch < patch-usr.sbin-i4b-isdnd > Hmm... Looks like a unified diff to me... > The text leading up to this was: > -------------------------- > |--- usr.sbin/i4b/isdnd/controller.c.org.c4b Sat Dec 22 10:38:24 > 2001 > |+++ usr.sbin/i4b/isdnd/controller.c Wed Mar 23 22:51:03 2005 > -------------------------- > File to patch: /usr/src/usr.sbin/i4b/isdnd/controller.c > Patching file /usr/src/usr.sbin/i4b/isdnd/controller.c using Plan A... > Hunk #1 failed at 95. > Hunk #2 failed at 121. > Hunk #3 failed at 218. > 3 out of 3 hunks failed--saving rejects to /usr/src/usr.sbin/i4b/ > isdnd/controller.c.rej > > Any ideas? > Or does the problem sit in front of my pc? > > Thanks in advance, > Johannes > > > > _______________________________________________ > freebsd-isdn@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-isdn > To unsubscribe, send any mail to "freebsd-isdn- > unsubscribe@freebsd.org" > From owner-freebsd-isdn@FreeBSD.ORG Sat Jun 18 08:28:09 2005 Return-Path: X-Original-To: freebsd-isdn@freebsd.org Delivered-To: freebsd-isdn@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BE89216A41C for ; Sat, 18 Jun 2005 08:28:09 +0000 (GMT) (envelope-from Thomas.Wintergerst@nord-com.net) Received: from mail4.ewetel.de (mail4.ewetel.de [212.6.122.28]) by mx1.FreeBSD.org (Postfix) with ESMTP id 478D743D1D for ; Sat, 18 Jun 2005 08:28:08 +0000 (GMT) (envelope-from Thomas.Wintergerst@nord-com.net) Received: from kalak.lemur.nord.de (dialin-80-228-48-093.ewe-ip-backbone.de [80.228.48.93]) by mail4.ewetel.de (8.12.1/8.12.9) with ESMTP id j5I8S3uh020706; Sat, 18 Jun 2005 10:28:06 +0200 (MEST) Received: from [192.168.2.4] (lullog.lemur.nord.de [192.168.2.4]) by kalak.lemur.nord.de (8.12.3/8.12.3) with ESMTP id j5I8PKF8023328; Sat, 18 Jun 2005 10:25:29 +0200 (CEST) (envelope-from Thomas.Wintergerst@nord-com.net) Message-ID: <42B3DA70.50100@nord-com.net> Date: Sat, 18 Jun 2005 10:25:20 +0200 From: Thomas Wintergerst User-Agent: Mozilla Thunderbird 0.9 (X11/20041220) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Johannes Ton References: <6610579449.20050617135553@gmx.ch> In-Reply-To: <6610579449.20050617135553@gmx.ch> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-CheckCompat: OK Cc: freebsd-isdn Subject: Re: C4B Patching Problem X-BeenThere: freebsd-isdn@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: twinterg@gmx.de List-Id: Using ISDN with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 18 Jun 2005 08:28:09 -0000 Hi Johannes, AFAIK the i4b user tools did not change at least since 5.2 regarding the sources that must be patched for c4b. This is also true for 5.4-RELEASE. So I can only assume you are not running 5.3-RELEASE any more. If you send me "your" version of control.c I will try to change it for you. Johannes Ton wrote: > Hi List, > > I have a strange problem with the patch for controller.c under > usr.sbin/i4b. > > The output of the do-patch script: > > Hmm... Looks like a unified diff to me... > The text leading up to this was: > -------------------------- > |--- controller.c.orgig Sat Dec 22 10:38:24 2001 > |+++ controller.c Wed Mar 23 22:51:03 2005 > -------------------------- > Patching file controller.c using Plan A... > Hunk #1 failed at 95. > Hunk #2 failed at 121. > Hunk #3 failed at 218. > 3 out of 3 hunks failed--saving rejects to controller.c.rej > > - C4B V. 1.0 > - FreeBSD 5.3 Release > > I refetched controller.c and the whole c4b package, but the same > problem. > > If I try to patch the file direkt: > > diabolo# patch < patch-usr.sbin-i4b-isdnd > Hmm... Looks like a unified diff to me... > The text leading up to this was: > -------------------------- > |--- usr.sbin/i4b/isdnd/controller.c.org.c4b Sat Dec 22 10:38:24 2001 > |+++ usr.sbin/i4b/isdnd/controller.c Wed Mar 23 22:51:03 2005 > -------------------------- > File to patch: /usr/src/usr.sbin/i4b/isdnd/controller.c > Patching file /usr/src/usr.sbin/i4b/isdnd/controller.c using Plan A... > Hunk #1 failed at 95. > Hunk #2 failed at 121. > Hunk #3 failed at 218. > 3 out of 3 hunks failed--saving rejects to /usr/src/usr.sbin/i4b/isdnd/controller.c.rej > > Any ideas? > Or does the problem sit in front of my pc? > > Thanks in advance, > Johannes > > > > _______________________________________________ > freebsd-isdn@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-isdn > To unsubscribe, send any mail to "freebsd-isdn-unsubscribe@freebsd.org" > -- Gruss, Thomas Wintergerst From owner-freebsd-isdn@FreeBSD.ORG Sat Jun 18 09:28:02 2005 Return-Path: X-Original-To: freebsd-isdn@freebsd.org Delivered-To: freebsd-isdn@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CBD9816A41C for ; Sat, 18 Jun 2005 09:28:02 +0000 (GMT) (envelope-from Thomas.Wintergerst@nord-com.net) Received: from mail2.ewetel.de (mail2.ewetel.de [212.6.122.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5E2DF43D4C for ; Sat, 18 Jun 2005 09:28:02 +0000 (GMT) (envelope-from Thomas.Wintergerst@nord-com.net) Received: from kalak.lemur.nord.de (dialin-80-228-51-002.ewe-ip-backbone.de [80.228.51.2]) by mail2.ewetel.de (8.12.1/8.12.9) with ESMTP id j5I9RwmY013315; Sat, 18 Jun 2005 11:27:58 +0200 (MEST) Received: from [192.168.2.4] (lullog.lemur.nord.de [192.168.2.4]) by kalak.lemur.nord.de (8.12.3/8.12.3) with ESMTP id j5I8msF8023354; Sat, 18 Jun 2005 10:48:58 +0200 (CEST) (envelope-from Thomas.Wintergerst@nord-com.net) Message-ID: <42B3DFF6.3070705@nord-com.net> Date: Sat, 18 Jun 2005 10:48:54 +0200 From: Thomas Wintergerst User-Agent: Mozilla Thunderbird 0.9 (X11/20041220) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Cian Hughes References: <7112CBFA-724E-4846-AA2E-1EFBC4B49CE2@cian.ws> <475744B9-48D9-474F-96E9-4C48869FD970@cian.ws> In-Reply-To: <475744B9-48D9-474F-96E9-4C48869FD970@cian.ws> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-CheckCompat: OK Cc: freebsd-isdn@freebsd.org Subject: Re: Problem with C4B on FreeBSD-Stable X-BeenThere: freebsd-isdn@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: twinterg@gmx.de List-Id: Using ISDN with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 18 Jun 2005 09:28:02 -0000 Hi Cian, Could you provide a stack backtrace for the panics? Maybe this could shed some light on where the crash occurs. Is this still 5.4-RELEASE or is it newer? Single- or multi-CPU? Cian Hughes wrote: > (I know I shouldn't reply to my own posts) > [...] > ______ > Now we kernel panic when running capitest: > > # capitest -s -tx 014900248 > capidev: T capidev_open: CAPI device is beeing opened > capidev: D capidev_open: new temp fd 4 allocated > kernel trap 12 with interrupts disabled > > > Fatal trap 12: page fault while in kernel mode > fault virtual address = 0x6c > fault code = supervisor read, page not present > instruction pointer = 0x8:0xc050b6d1 > stack pointer = 0x10:0xc7dddbd8 > frame pointer = 0x10:0xc7dddbdc > code segment = base 0x0, limit 0xfffff, type 0x1b > = DPL 0, pres 1, def32 1, gran 1 > processor eflags = resume, IOPL = 0 > current process = 558 (capitest) > trap number = 12 > panic: page fault > Uptime: 54s > Cannot dump. No dump device defined. > Automatic reboot in 15 seconds - press a key on the console to abort > > and again when starting asterisk: > > oppy:root:/usr/local/etc/asterisk:0# capidev: T capidev_open: CAPI > device is beeing opened > capidev: D capidev_open: new temp fd 25 allocated > capidev: D capidev_ioctl: CAPI_GET_PROFILE: Result 0x0000, controller 0 > capidev: D capidev_close: Application not registered, only close file > descriptor > capidev: T capidev_open: CAPI device is beeing opened > capidev: D capidev_open: new temp fd 25 allocated > kernel trap 12 with interrupts disabled > > > Fatal trap 12: page fault while in kernel mode > fault virtual address = 0x6c > fault code = supervisor read, page not present > instruction pointer = 0x8:0xc050b6d1 > stack pointer = 0x10:0xcc445bd8 > frame pointer = 0x10:0xcc445bdc > code segment = base 0x0, limit 0xfffff, type 0x1b > = DPL 0, pres 1, def32 1, gran 1 > processor eflags = resume, IOPL = 0 > current process = 599 (asterisk) > trap number = 12 > panic: page fault > Uptime: 5m14s > Cannot dump. No dump device defined. > > Regards, Cian > [...] -- Gruss, Thomas Wintergerst From owner-freebsd-isdn@FreeBSD.ORG Sat Jun 18 10:04:36 2005 Return-Path: X-Original-To: freebsd-isdn@freebsd.org Delivered-To: freebsd-isdn@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5A6D616A41C for ; Sat, 18 Jun 2005 10:04:36 +0000 (GMT) (envelope-from cianlists@cian.ws) Received: from mail.cian.ws (cian.ws [62.231.45.32]) by mx1.FreeBSD.org (Postfix) with ESMTP id 79A4F43D48 for ; Sat, 18 Jun 2005 10:04:35 +0000 (GMT) (envelope-from cianlists@cian.ws) Received: from localhost (localhost [127.0.0.1]) by mail.cian.ws (Postfix) with ESMTP id D1C2D70CC5E; Sat, 18 Jun 2005 11:04:35 +0100 (IST) Received: from mail.cian.ws ([127.0.0.1]) by localhost (g5.cian.ws [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 20498-04; Sat, 18 Jun 2005 11:04:28 +0100 (IST) Received: from [IPv6:2001:770:125::5] (g5.cian.ws [IPv6:2001:770:125::5]) by mail.cian.ws (Postfix) with ESMTP id AD79E70CC48; Sat, 18 Jun 2005 11:04:28 +0100 (IST) In-Reply-To: <42B3DFF6.3070705@nord-com.net> References: <7112CBFA-724E-4846-AA2E-1EFBC4B49CE2@cian.ws> <475744B9-48D9-474F-96E9-4C48869FD970@cian.ws> <42B3DFF6.3070705@nord-com.net> Mime-Version: 1.0 (Apple Message framework v730) Message-Id: From: Cian Hughes Date: Sat, 18 Jun 2005 11:04:26 +0100 To: twinterg@gmx.de X-Mailer: Apple Mail (2.730) X-Virus-Scanned: amavisd-new at g5.cian.ws Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-isdn@freebsd.org Subject: Re: Problem with C4B on FreeBSD-Stable X-BeenThere: freebsd-isdn@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using ISDN with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 18 Jun 2005 10:04:36 -0000 Ok, well i've done lots of messing around since i last wrote anything, I have cvsup'ed my src to FreeBSD-Current, and made a new patchset for c4b, with only some minor changes to the Makefiles it all compiled, and I have asterisk talking to my AVM B1 through chan_capi.so, which is very nice, I have got one vmcore from a panic (my old kernel did not have debug flags enabled), unfortunately it weighs in a 132MB so I haven't attached it, I think it's usefulness may be limited, someone else with ssh access to the box thinks they may have accidentally cvsuped src-all since I compiled the kernel last week, so I think that the panic may have been due to source synchronisation issue, to be safe I actually dumped /usr/src & /usr/ obj and started again, my reason for not posting again is that the patch & compile of everything (world included) only finished at 11.30pm last night. For the moment I'll put the Sun compile on Hold, and concentrate on making a new patchset for FreeBSD-Current. How hard do you think it would be to get c4b incorporated into FreeBSD- Current, this patching lark is a bit of a pain. Regards, Cian. On 18 Meith 2005, at 09:48, Thomas Wintergerst wrote: > Hi Cian, > > Could you provide a stack backtrace for the panics? Maybe this > could shed some light on where the crash occurs. > > Is this still 5.4-RELEASE or is it newer? Single- or multi-CPU? > > Cian Hughes wrote: > >> (I know I shouldn't reply to my own posts) >> > [...] > >> ______ >> Now we kernel panic when running capitest: >> # capitest -s -tx 014900248 >> capidev: T capidev_open: CAPI device is beeing opened >> capidev: D capidev_open: new temp fd 4 allocated >> kernel trap 12 with interrupts disabled >> Fatal trap 12: page fault while in kernel mode >> fault virtual address = 0x6c >> fault code = supervisor read, page not present >> instruction pointer = 0x8:0xc050b6d1 >> stack pointer = 0x10:0xc7dddbd8 >> frame pointer = 0x10:0xc7dddbdc >> code segment = base 0x0, limit 0xfffff, type 0x1b >> = DPL 0, pres 1, def32 1, gran 1 >> processor eflags = resume, IOPL = 0 >> current process = 558 (capitest) >> trap number = 12 >> panic: page fault >> Uptime: 54s >> Cannot dump. No dump device defined. >> Automatic reboot in 15 seconds - press a key on the console to abort >> and again when starting asterisk: >> oppy:root:/usr/local/etc/asterisk:0# capidev: T capidev_open: >> CAPI device is beeing opened >> capidev: D capidev_open: new temp fd 25 allocated >> capidev: D capidev_ioctl: CAPI_GET_PROFILE: Result 0x0000, >> controller 0 >> capidev: D capidev_close: Application not registered, only close >> file descriptor >> capidev: T capidev_open: CAPI device is beeing opened >> capidev: D capidev_open: new temp fd 25 allocated >> kernel trap 12 with interrupts disabled >> Fatal trap 12: page fault while in kernel mode >> fault virtual address = 0x6c >> fault code = supervisor read, page not present >> instruction pointer = 0x8:0xc050b6d1 >> stack pointer = 0x10:0xcc445bd8 >> frame pointer = 0x10:0xcc445bdc >> code segment = base 0x0, limit 0xfffff, type 0x1b >> = DPL 0, pres 1, def32 1, gran 1 >> processor eflags = resume, IOPL = 0 >> current process = 599 (asterisk) >> trap number = 12 >> panic: page fault >> Uptime: 5m14s >> Cannot dump. No dump device defined. >> Regards, Cian >> > [...] > > -- > > Gruss, > > Thomas Wintergerst >