From owner-freebsd-hackers@FreeBSD.ORG Fri Apr 30 14:47:22 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E9FEA16A4DE for ; Fri, 30 Apr 2004 14:47:22 -0700 (PDT) Received: from arg1.demon.co.uk (arg1.demon.co.uk [62.49.12.213]) by mx1.FreeBSD.org (Postfix) with ESMTP id 614D843D49 for ; Fri, 30 Apr 2004 14:47:22 -0700 (PDT) (envelope-from arg-bsd@arg.me.uk) Received: by arg1.demon.co.uk (Postfix, from userid 1002) id 55E409B25; Fri, 30 Apr 2004 22:47:21 +0100 (BST) Received: from localhost (localhost [127.0.0.1]) by arg1.demon.co.uk (Postfix) with ESMTP id 51B835E3A; Fri, 30 Apr 2004 22:47:21 +0100 (BST) Date: Fri, 30 Apr 2004 22:47:21 +0100 (BST) From: Andrew Gordon X-X-Sender: freebsd@server.arg.sj.co.uk To: Martin Moeller In-Reply-To: <20040430142501.GA3036@tyr.systh.org> Message-ID: <20040430223724.U98295@server.arg.sj.co.uk> References: <20040430142501.GA3036@tyr.systh.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Mailman-Approved-At: Sat, 01 May 2004 05:12:27 -0700 cc: freebsd-hackers@freebsd.org Subject: Re: Accessing (the i4b) device driver X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Apr 2004 21:47:23 -0000 On Fri, 30 Apr 2004, Martin Moeller wrote: > > I'm totally new to FreeBSD programming, so please forgive my troll-like > question! I'd like to write a nifty little program showing if somebody is > calling me via an ISDN line. In the far future, the program should show the > caller's telephone number. The easiest way to do this is to use isdnd's regular expression feature, which allows a program to be run whenever the regular expression matches an line in the isdnd logging output. The program that gets run is typically a shell script, but can be any kind of program that you care to write. See the 'regexpr' and 'regprog' keywords on the isdnd.rc(5) manpage. That assumes your program just wants to monitor things passively; if you want it to do handle calls actively, you want full entry in isdnd.rc (see the 'I4BTEL' example in /etc/isdnd/isdnd.rc.sample). > Could you please point me to some documentation that is helpful? Nothing in > the FBSD developer/architecture handbook was able to enlighten me. http://people.freebsd.org/~hm/i4b-home/documentation.html