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