From owner-freebsd-multimedia Mon Jul 29 16:24:36 1996 Return-Path: owner-multimedia Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id QAA29655 for multimedia-outgoing; Mon, 29 Jul 1996 16:24:36 -0700 (PDT) Received: from rah.star-gate.com (rah.star-gate.com [204.188.121.18]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id QAA29650 for ; Mon, 29 Jul 1996 16:24:34 -0700 (PDT) Received: from rah.star-gate.com (localhost.v-site.net [127.0.0.1]) by rah.star-gate.com (8.7.5/8.7.3) with ESMTP id QAA00719 for ; Mon, 29 Jul 1996 16:24:32 -0700 (PDT) Message-Id: <199607292324.QAA00719@rah.star-gate.com> X-Mailer: exmh version 1.6.5 12/11/95 To: multimedia@freebsd.org Subject: Voice Shields, up! Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 29 Jul 1996 16:24:31 -0700 From: Amancio Hasty Sender: owner-multimedia@freebsd.org X-Loop: FreeBSD.org Precedence: bulk A minor hack to mgetty.c and I am now able to display the current caller's ID on the screen. The script is very simple: -- #!/bin/sh # start the script \ exec /usr/local/bin/wish4.1 "$0" -display :0.0 "$@" if $argc=="0" exit wm withdraw . set CallerId [lindex $argv 0] toplevel .msg after 30000 exit set i [tk_dialog .msg " $CallerId Rah's Phone System" \ "$CallerId is Calling" info 0 OK ] exit -- mgetty.c is part of mgetty+sendfax. In mgetty.c , declare: char **callerargv[3]; and right after the cndlookup call: callerargv[0] = "/usr/local/bin/callerid.tk"; callerargv[1] = CallerId; callerargv[2] = 0; execv("/usr/local/bin/callerid.tk", &callerargv); I supposed that it will not be difficult to create a file to personalized answering messages based on the callerid. Any takers? vgetty is part of mgetty+sendfax and is in the freebsd ports directory: ports/comms. Enjoy, Amancio