57°F

Aaron Parecki

  • Articles
  • Notes
  • Photos
  • Fun with caller ID!

    June 6, 2007

    We just got caller ID at my house. One of my roommates doesn't have a cell phone, so eventually everyone else stopped answering the house phone because it was always for him. But then he would come home and not know who called. Now of course, caller ID solves this problem by logging who called on the phone handset, but being me, that is not enough!

    My plan is to hook up a computer to the phone system, so that when a call comes through, it will send the caller ID information to a list of subscribed AIM screennames, that way I and he and anyone else will be instantly notified of who is calling without having to run to the phone.

    So far, I've found a great guide for a simple setup of a linux answering machine, which I will adapt to use as this caller ID notifier. A $10 Linux Answering Machine.

    I'm installing the zaptel driver at the moment, on a Fedora Core 6 box. Here is the process so far:

    cd /usr/src
    wget http://ftp.digium.com/pub/zaptel/zaptel-1.4.2.1.tar.gz
    tar -xzf zaptel-1.4.2.1.tar.gz
    cd zaptel-1.4.2.1
    

    I got an error the first time I tried to run make:

    xbus-core.c:171: error: 'struct inode' has no member named 'u'
    

    Because I am using FC6, I needed to make a small tweak to the source code, according to this message.

    edit this file: xpp/xbus-core.c and search for u.generic_ip change the line above that from 2,6,19 to 2,6,18

    Now continue the normal build process: make, make install

    The location of the zapata library has moved to: http://ftp.digium.com/pub/zaptel/releases/

    When I tried to run 'make', I got a bunch of errors about undeclared constants, starting with

    zap.c:571:26: error: linux/zaptel.h: No such file or directory
    

    It looks like the zap.c and goertzel.c files are looking for the zaptel.h file in linux/zaptel.h, but not finding it. I have no idea why, but I change the include lines to look for /usr/include/zaptel/zaptel.h, and it works.

    Continuing with Bob's instructions, I got down to where I need to compile his program. I got some errors like:

    answering_machine.c:77: warning: incompatible implicit declaration of built-in function 'exit'
    answering_machine.c:87: warning: incompatible implicit declaration of built-in function 'strncpy'
    

    I found that it is necessary to add a couple of include lines:

    #include <stdlib.h>
    #include <string.h>
    

    I also disabled SElinux before I could run this program.

    vi /etc/sysconfig/selinux
    SELINUX=disabled
    echo 0 > /selinux/enforce
    

    This will disable SElinux from ever starting again, and disable it in the current boot

    Wed, Jun 6, 2007 9:39pm -07:00
Posted in /articles

Hi, I'm Aaron Parecki, Director of Identity Standards at Okta, and co-founder of IndieWebCamp. I maintain oauth.net, write and consult about OAuth, and participate in the OAuth Working Group at the IETF. I also help people learn about video production and livestreaming. (detailed bio)

I've been tracking my location since 2008 and I wrote 100 songs in 100 days. I've spoken at conferences around the world about owning your data, OAuth, quantified self, and explained why R is a vowel. Read more.

  • Director of Identity Standards at Okta
  • IndieWebCamp Founder
  • OAuth WG Editor
  • OpenID Board Member

  • 🎥 YouTube Tutorials and Reviews
  • 🏠 We're building a triplex!
  • ⭐️ Life Stack
  • ⚙️ Home Automation
  • All
  • Articles
  • Bookmarks
  • Notes
  • Photos
  • Replies
  • Reviews
  • Trips
  • Videos
  • Contact
© 1999-2026 by Aaron Parecki. Powered by p3k. This site supports Webmention.
Except where otherwise noted, text content on this site is licensed under a Creative Commons Attribution 3.0 License.
IndieWebCamp Microformats Webmention W3C HTML5 Creative Commons
WeChat ID
aaronpk_tv