From owner-freebsd-hackers Mon Jul 3 11:37: 5 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from uffdaonline.net (host39.uffdaonline.net [207.109.235.39]) by hub.freebsd.org (Postfix) with ESMTP id 790E337C1AD for ; Mon, 3 Jul 2000 11:37:01 -0700 (PDT) (envelope-from zach@uffdaonline.net) Received: by uffdaonline.net (Postfix, from userid 1000) id D2DA120C9; Mon, 3 Jul 2000 18:38:43 +0000 (GMT) Date: Mon, 3 Jul 2000 13:38:43 -0500 From: "Zach N. Heilig" To: bow Cc: freebsd-hackers@freebsd.org Subject: Re: Monitoring modem for dialing Message-ID: <20000703133843.A27356@murkwood.znh.org> References: <27488F1A121B7A251F29D47B@mail.uffdaonline.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <27488F1A121B7A251F29D47B@mail.uffdaonline.net>; from bow@bow.net on Mon, Jul 03, 2000 at 12:12:09AM -0700 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, Jul 03, 2000 at 12:12:09AM -0700, bow wrote: > Hello, > > I was wondering if someone could point me in the right direction on how > to monitor my modem to capture dialing. > > Basically I have an extra cordless phone around the house, and I wanted > to know if it was possible to hook it into my modem and then have an > application monitor the modem for dialing, then do something depending > on what was dialed... To give an example, I'm running xmms to listen to > music. It'd be cool if I could just pick up the cordless phone, and press > the #1 key (on the phone) to jump to the next song, or the #2 key to pause. > > I haven't a clue where to start! :) > > Is it even possible? Just don't connect this to the phone line if you do this... I would recomend using one of those IR internet remotes that connect to the serial port. It'd be much cheaper (you should be able to pick one up for under US$20). The only problem might be writing a bit of code to make it work. For mine, I just observed the output of the serial port for each of the buttons and wrote the code around that. -- Zach Heilig To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message