From owner-freebsd-isdn@FreeBSD.ORG Tue Jun 3 04:23:34 2003 Return-Path: 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 AE19C37B401 for ; Tue, 3 Jun 2003 04:23:34 -0700 (PDT) Received: from accms33.physik.rwth-aachen.de (accms33.physik.RWTH-Aachen.DE [137.226.46.133]) by mx1.FreeBSD.org (Postfix) with ESMTP id A7CFF43FA3 for ; Tue, 3 Jun 2003 04:23:33 -0700 (PDT) (envelope-from kuku@accms33.physik.rwth-aachen.de) Received: (from kuku@localhost) by accms33.physik.rwth-aachen.de (8.11.6/8.9.3) id h53BNW127901 for freebsd-isdn@freebsd.org; Tue, 3 Jun 2003 13:23:32 +0200 Date: Tue, 3 Jun 2003 13:23:32 +0200 From: Christoph Kukulies Message-Id: <200306031123.h53BNW127901@accms33.physik.rwth-aachen.de> To: freebsd-isdn@freebsd.org Subject: using isdnd as incoming call logger X-BeenThere: freebsd-isdn@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Using ISDN with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Jun 2003 11:23:35 -0000 I've read that at least Gary, maybe others, are using i4b (isdnd) as a logger of incoming phone calls. Anyone having a config file for this? -- Chris Christoph P. U. Kukulies kukulies@rwth-aachen.de From owner-freebsd-isdn@FreeBSD.ORG Tue Jun 3 06:12:18 2003 Return-Path: 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 ADF5B37B401 for ; Tue, 3 Jun 2003 06:12:18 -0700 (PDT) Received: from peedub.jennejohn.org (p213.54.246.109.tisdip.tiscali.de [213.54.246.109]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7D6AD43F75 for ; Tue, 3 Jun 2003 06:12:17 -0700 (PDT) (envelope-from garyj@jennejohn.org) Received: from peedub.jennejohn.org (localhost [127.0.0.1]) by peedub.jennejohn.org (8.12.9/8.11.6) with ESMTP id h53DCEcQ003208; Tue, 3 Jun 2003 15:12:14 +0200 (CEST) (envelope-from garyj@peedub.jennejohn.org) Message-Id: <200306031312.h53DCEcQ003208@peedub.jennejohn.org> X-Mailer: exmh version 2.6.3 04/04/2003 with nmh-1.0.4 To: Christoph Kukulies In-Reply-To: Message from Christoph Kukulies <200306031123.h53BNW127901@accms33.physik.rwth-aachen.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 03 Jun 2003 15:12:14 +0200 From: Gary Jennejohn cc: freebsd-isdn@freebsd.org Subject: Re: using isdnd as incoming call logger X-BeenThere: freebsd-isdn@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Using ISDN with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Jun 2003 13:12:19 -0000 Christoph Kukulies writes: > I've read that at least Gary, maybe others, are using i4b (isdnd) as > a logger of incoming phone calls. > > Anyone having a config file for this? > The way in which I use it is rather primitive. First start isdnd so that it produces enough debug output, e.g.: /usr/sbin/isdnd -d0xf9 -f -r /dev/ttyv6 -t cons25 -l -L /var/log/isdnd.log Note: there are probably knobs in /etc/rc.conf to set all these flags, but I start isdnd either using a shell script or a bash alias. Then I just ``tail -F /var/log/isdnd.log'' in an xterm. isdnd emits a message for every incoming call. There's also an option which can be set in /etc/isdn/isdnd.rc to convert phone numbers into e.g. the caller's name, but I don't use it. --- Gary Jennejohn / garyj@jennejohn.org gj@freebsd.org gj@denx.de From owner-freebsd-isdn@FreeBSD.ORG Tue Jun 3 08:05:55 2003 Return-Path: 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 7A11837B404 for ; Tue, 3 Jun 2003 08:05:55 -0700 (PDT) Received: from mailout03.sul.t-online.com (mailout03.sul.t-online.com [194.25.134.81]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3571243F3F for ; Tue, 3 Jun 2003 08:05:49 -0700 (PDT) (envelope-from hm@kts.org) Received: from fwd08.aul.t-online.de by mailout03.sul.t-online.com with smtp id 19NDMC-0000fg-08; Tue, 03 Jun 2003 17:05:48 +0200 Received: from ernie.kts.org (bKXa4+ZHZeHP04L6jpZ-anzxGcIRTPJDVdOgnJ4JsttE2kH6KMpkZ2@[80.129.220.86]) by fmrl08.sul.t-online.com with esmtp id 19NDM0-0dCIF60; Tue, 3 Jun 2003 17:05:36 +0200 Received: from bert.int.kts.org (bert.int.kts.org [172.31.42.2]) by ernie.kts.org (Postfix) with ESMTP id 7A18DFDC5; Tue, 3 Jun 2003 17:05:35 +0200 (CEST) Received: by bert.int.kts.org (Postfix, from userid 100) id 6C969A5; Tue, 3 Jun 2003 17:05:35 +0200 (CEST) In-Reply-To: <200306031123.h53BNW127901@accms33.physik.rwth-aachen.de> To: Christoph Kukulies Date: Tue, 3 Jun 2003 17:05:35 +0200 (CEST) Organization: Kitchen Table Systems X-Mailer: ELM [version 2.4ME+ PL99b (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII Message-Id: <20030603150535.6C969A5@bert.int.kts.org> From: hm@kts.org (Hellmuth Michaelis) X-Seen: false X-ID: bKXa4+ZHZeHP04L6jpZ-anzxGcIRTPJDVdOgnJ4JsttE2kH6KMpkZ2@t-dialin.net cc: freebsd-isdn@freebsd.org Subject: Re: using isdnd as incoming call logger X-BeenThere: freebsd-isdn@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: hellmuth.michaelis@t-online.de List-Id: Using ISDN with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Jun 2003 15:05:55 -0000 Christoph Kukulies wrote: > I've read that at least Gary, maybe others, are using i4b (isdnd) as > a logger of incoming phone calls. > > Anyone having a config file for this? Have a look at the "unknown_incoming" script in /etc/isdn. It does basically all you want. And have a look at "isdnd.rc.sample" about how it is configured into isdnd.rc. hellmuth -- Hellmuth Michaelis Hamburg, Europe hm\at\kts.org www.kts.org a duck is like a bicycle because they both have two wheels except the duck (tl) From owner-freebsd-isdn@FreeBSD.ORG Tue Jun 3 08:30:20 2003 Return-Path: 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 923C437B401 for ; Tue, 3 Jun 2003 08:30:20 -0700 (PDT) Received: from tower.berklix.org (bsd.bsn.com [194.221.32.7]) by mx1.FreeBSD.org (Postfix) with ESMTP id 20F0F43F93 for ; Tue, 3 Jun 2003 08:30:15 -0700 (PDT) (envelope-from jhs@berklix.org) Received: from tower.berklix.org (localhost [127.0.0.1]) by tower.berklix.org (8.12.6/8.12.6) with ESMTP id h53FUIr6079827; Tue, 3 Jun 2003 17:30:18 +0200 (CEST) (envelope-from jhs@tower.berklix.org) Received: (from jhs@localhost) by tower.berklix.org (8.12.6/8.12.6/Submit) id h53FRecf079820; Tue, 3 Jun 2003 17:27:40 +0200 (CEST) (envelope-from jhs) Date: Tue, 3 Jun 2003 17:27:40 +0200 (CEST) From: Julian Stacey Message-Id: <200306031527.h53FRecf079820@tower.berklix.org> To: Christoph Kukulies In-Reply-To: Message from Christoph Kukulies <200306031123.h53BNW127901@accms33.phys cc: freebsd-isdn@freebsd.org Subject: Re: using isdnd as incoming call logger X-BeenThere: freebsd-isdn@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Using ISDN with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Jun 2003 15:30:20 -0000 ik.rwth-aachen.de> Christoph Kukulies wrote: > I've read that at least Gary, maybe others, are using i4b (isdnd) as > a logger of incoming phone calls. Me too, with names of humans, not numbers, shown in 24x80 xterm that invokes isdns, but also in a wide short xterm I leave marked `sticky' so it stays at bottom of whichever pane my window manager is in. I start that by a couple of line in http://www.berklix.com/~jhs/bin/.sh/telno containing . /etc/isdn/variables xterm -geometry 80x3-0-90 -fn 9x15bold -n telno \ -T "`hostname -s` - Phone log" -e \ ~jhs/public_html/bin/.sh/telno2 & echo $! > $telno_pid To generate my (4000 line) isdntel.alias from my personal & business phone `books' (files really) I use http://www.berklix.com/~jhs/src/bsd/jhs/bin/public/phone/ (which also generates a subset comparible with Nokia 6110, loadable with /usr/ports/comms/gnokii & also generates for Istec 100[38] TK anlage (= ISDN PBX) controlled by /usr/ports/misc/estic ) > Anyone having a config file for this? Sent in private mail. - Julian Stacey Freelance Systems Engineer, Unix & Net Consultant, Munich. Ihr Rauchen => mein allergischer Kopfschmerz ! Schnupftabak probieren. From owner-freebsd-isdn@FreeBSD.ORG Tue Jun 3 10:08:40 2003 Return-Path: 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 BAF8337B401 for ; Tue, 3 Jun 2003 10:08:40 -0700 (PDT) Received: from mail.vwsoft.com (p213.54.164.42.tisdip.tiscali.de [213.54.164.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 95BF443F93 for ; Tue, 3 Jun 2003 10:08:35 -0700 (PDT) (envelope-from volker@vwsoft.com) Received: from cesar2k (unknown [192.168.16.24]) by bellona.sz.vwsoft.com (Postfix) with ESMTP id EC8AE5A1A; Tue, 3 Jun 2003 19:07:03 +0200 (CEST) From: "Volker" To: freebsd-isdn@freebsd.org, Christoph Kukulies Date: Tue, 03 Jun 2003 19:07:01 +0200 MIME-Version: 1.0 Message-ID: <3EDCF1D5.22463.2644A21@localhost> Priority: normal In-reply-to: <200306031312.h53DCEcQ003208@peedub.jennejohn.org> References: Message from Christoph Kukulies <200306031123.h53BNW127901@accms33.physik.rwth-aachen.de> X-mailer: Pegasus Mail for Windows (v4.11) Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Content-description: Mail message body Subject: Re: using isdnd as incoming call logger X-BeenThere: freebsd-isdn@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Using ISDN with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Jun 2003 17:08:41 -0000 Hi Gary, Christoph! On 3 Jun 2003 at 15:12, Gary Jennejohn wrote: > > Christoph Kukulies writes: > > I've read that at least Gary, maybe others, are using i4b (isdnd) > > as a logger of incoming phone calls. > > > > Anyone having a config file for this? > > > > The way in which I use it is rather primitive. First start isdnd so > that it produces enough debug output, e.g.: > > /usr/sbin/isdnd -d0xf9 -f -r /dev/ttyv6 -t cons25 -l -L > /var/log/isdnd.log > What about using the script 'unknown_incoming' for that purpose? It's being called for incoming calls and is getting all data. In isdnd.rc: regexpr = "incoming call from" regprog = unknown_incoming # execute program when match is found To get the script called and for the script itself you may include something like: echo "$date $time $from $to" >> /tmp/myincomingcalls If you want to get all parameters for that script filed, use 'echo "$*" >> /tmp/myincomingcalls' instead of the above line. This script is sending out an email for every incoming call. If you don't like this just comment the mail sending lines out and you should be lucky. Just an idea... HTH, Volker From owner-freebsd-isdn@FreeBSD.ORG Wed Jun 4 01:26:06 2003 Return-Path: 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 AB9A037B401 for ; Wed, 4 Jun 2003 01:26:06 -0700 (PDT) Received: from peedub.jennejohn.org (p213.54.217.245.tisdip.tiscali.de [213.54.217.245]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6F04143F75 for ; Wed, 4 Jun 2003 01:26:05 -0700 (PDT) (envelope-from garyj@jennejohn.org) Received: from peedub.jennejohn.org (localhost [127.0.0.1]) by peedub.jennejohn.org (8.12.9/8.11.6) with ESMTP id h548PrOv001446; Wed, 4 Jun 2003 10:26:01 +0200 (CEST) (envelope-from garyj@peedub.jennejohn.org) Message-Id: <200306040826.h548PrOv001446@peedub.jennejohn.org> X-Mailer: exmh version 2.6.3 04/04/2003 with nmh-1.0.4 To: "Volker" In-Reply-To: Message from "Volker" of "Tue, 03 Jun 2003 19:07:01 +0200." <3EDCF1D5.22463.2644A21@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 04 Jun 2003 10:25:53 +0200 From: Gary Jennejohn cc: freebsd-isdn@freebsd.org Subject: Re: using isdnd as incoming call logger X-BeenThere: freebsd-isdn@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Using ISDN with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Jun 2003 08:26:07 -0000 "Volker" writes: > What about using the script 'unknown_incoming' for that purpose? > It's being called for incoming calls and is getting all data. > > In isdnd.rc: > regexpr = "incoming call from" > regprog = unknown_incoming # execute program when > match is found > I wasn't even aware of this script until Hellmuth posted about it. I started using my method long before the script existed and just haven't bothered updating. Actually I think I may try out Julian Stacey's stuff, since it shows the name of the caller. --- Gary Jennejohn / garyj@jennejohn.org gj@freebsd.org gj@denx.de From owner-freebsd-isdn@FreeBSD.ORG Wed Jun 4 07:46:31 2003 Return-Path: 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 D5C7B37B401 for ; Wed, 4 Jun 2003 07:46:31 -0700 (PDT) Received: from mailout06.sul.t-online.com (mailout06.sul.t-online.com [194.25.134.19]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1CE4043F85 for ; Wed, 4 Jun 2003 07:46:30 -0700 (PDT) (envelope-from Alexander@Leidinger.net) Received: from fwd06.aul.t-online.de by mailout06.sul.t-online.com with smtp id 19NZX2-0007CU-0B; Wed, 04 Jun 2003 16:46:28 +0200 Received: from Andro-Beta.Leidinger.net (TJy0UGZTYeC1Vv3HCG96TKLpjPcy8GDmlJP0EwQrq-JYk1E9nWMlU4@[80.131.116.73]) by fmrl06.sul.t-online.com with esmtp id 19NZWz-1Uh8AC0; Wed, 4 Jun 2003 16:46:25 +0200 Received: from Magelan.Leidinger.net (Magelan [192.168.1.1]) h54EkOoM000976 for ; Wed, 4 Jun 2003 16:46:25 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from Magelan.Leidinger.net (netchild@localhost [127.0.0.1]) by Magelan.Leidinger.net (8.12.9/8.12.9) with SMTP id h54EkOeF001568 for ; Wed, 4 Jun 2003 16:46:24 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Date: Wed, 4 Jun 2003 16:46:24 +0200 From: Alexander Leidinger To: freebsd-isdn@freebsd.org Message-Id: <20030604164624.535ce970.Alexander@Leidinger.net> In-Reply-To: <200306031527.h53FRecf079820@tower.berklix.org> References: <200306031527.h53FRecf079820@tower.berklix.org> X-Mailer: Sylpheed version 0.8.10claws (GTK+ 1.2.10; i386-portbld-freebsd5.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Seen: false X-ID: TJy0UGZTYeC1Vv3HCG96TKLpjPcy8GDmlJP0EwQrq-JYk1E9nWMlU4@t-dialin.net Subject: Re: using isdnd as incoming call logger X-BeenThere: freebsd-isdn@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Using ISDN with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Jun 2003 14:46:32 -0000 On Tue, 3 Jun 2003 17:27:40 +0200 (CEST) Julian Stacey wrote: > Me too, with names of humans, not numbers, shown in 24x80 xterm > that invokes isdns, but also in a wide short xterm I leave marked > `sticky' so it stays at bottom of whichever pane my window manager > is in. I use a popup window instead of a permanent one: ---snip--- #!/bin/sh from=$(awk 'BEGIN {for (i = 4; i < ARGC-3 ; i++) printf "%s ", ARGV[i]; printf "%s", ARGV[ARGC-3]; exit}' $1) to=$(awk 'BEGIN {printf "%s", ARGV[ARGC-1]; exit}' $1) date=$(date "+%d. %b, %H:%m") if [ -x /usr/X11R6/bin/gdialog -a -f /home/netchild/.ssh_auth_sock ]; then su - netchild -c "DISPLAY=:0 /usr/X11R6/bin/gdialog --title \"Anruf: ${date}\" --msgbox \"\n von $from an $to \n\" 3 100" || logger ISDN-Call "gdialog failed" fi ---snip--- Note: - I create .ssh_auth_sock when I login via X11 (I use it to let automatic scripts use my ssh-agent when I'm logged in, the scripts don't have to run when I'm not logged in), so if it exists there will be a display gdialog can use - because of the string substitution in isdntel.alias we can't just use "print $4" for $to I tried also to display waiting calls, but failed. Specifying multiple regexpr doesn't work: ---snip--- regexpr = "CW from" regprog = display_phone_call.sh regexpr = "Call from" # look for matches in log messages regprog = display_phone_call.sh # execute program when match is found ---snip--- I also tried regexpr = "(CW|Call) from", but this results in no dialog at all... Bye, Alexander. -- Speak softly and carry a cellular phone. http://www.Leidinger.net Alexander @ Leidinger.net GPG fingerprint = C518 BC70 E67F 143F BE91 3365 79E2 9C60 B006 3FE7 From owner-freebsd-isdn@FreeBSD.ORG Thu Jun 5 16:33:29 2003 Return-Path: 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 2573137B401 for ; Thu, 5 Jun 2003 16:33:29 -0700 (PDT) Received: from tower.berklix.org (bsd.bsn.com [194.221.32.7]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0C21743FAF for ; Thu, 5 Jun 2003 16:33:28 -0700 (PDT) (envelope-from jhs@berklix.org) Received: from tower.berklix.org (localhost [127.0.0.1]) by tower.berklix.org (8.12.6/8.12.6) with ESMTP id h55NXar6086014; Fri, 6 Jun 2003 01:33:36 +0200 (CEST) (envelope-from jhs@tower.berklix.org) Received: (from jhs@localhost) by tower.berklix.org (8.12.6/8.12.6/Submit) id h55NX5Ln086013; Fri, 6 Jun 2003 01:33:05 +0200 (CEST) (envelope-from jhs) Date: Fri, 6 Jun 2003 01:33:05 +0200 (CEST) From: Julian Stacey Message-Id: <200306052333.h55NX5Ln086013@tower.berklix.org> To: freebsd-isdn@freebsd.org Fcc: sent-mail In-Reply-To: Message from Julian Stacey <200306031527.h53FRecf079820@tower.berklix.org> cc: Christoph Kukulies Subject: Re: using isdnd as incoming call logger X-BeenThere: freebsd-isdn@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Using ISDN with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Jun 2003 23:33:29 -0000 I quoted my > http://www.berklix.com/~jhs/src/bsd/jhs/bin/public/phone/ Thanks to Gary for reporting URL was broken. Now fixed (along with all other directories without index.html files). - Julian Stacey Freelance Systems Engineer, Unix & Net Consultant, Munich. Ihr Rauchen => mein allergischer Kopfschmerz ! Schnupftabak probieren.