This guide will walk through how to install network caller ID (NCID) on a headless raspberry pi. The primary goal of this is to create a blacklist to prevent unwanted spam telephone calls.
Hardware needed:
- Raspberry Pi, a model b was used but any should work
- SD Card, any larger than 4gb should work
- 5V power supply. The modem appears to take a large amount of current. The first 1 amp power supply was unstable so it was replaced with a 2 amp version
- Modem, a Zoom 56K USB Modem Model 3095 was used. This was sourced from Ebay.
- Phone cord
- A splitter. http://amzn.to/2fyT9hP to put the modem in parallel to the phone
How to install NCID:
- Grab an image of the Rasbian operating system from https://www.raspberrypi.org/downloads/ and install it to an SD card using this guide https://www.raspberrypi.org/documentation/installation/installing-images/
- SSH into the PI using putty http://www.putty.org/ User Name
pi
Passwordraspberry
- Grab a copy of the NCID source code from here https://sourceforge.net/projects/ncid/files/latest/download using wget. Sourceforge can be a little strange so you may have to poke around to find the direct link
- Un-tar the archive using
tar -zxvf ncid-X.XX.X-src.tar.gz
(replace the X.XX.X with version number) - Run
sudo-apt get update
then grab a copy ofsudo apt-get install libpcap0.8*
- Navigate to the folder with the build scripts and run
sudo make ubuntu-install
- Open the config file with
sudo nano /etc/ncid/ncidd.conf
- Make the following changes to the configuration file:
set ignore1 = 1
# Make sure your modem is located here
set hangup = 1
set ttyport = /dev/ttyACM0
set lockfile = /var/lock/LCK..ttyACM0 - open
nano /etc/ncid/ncidd.alias
- Comment out this line with a “#”
#alias LINE - = POTS
- Make the NCID daemon automatically start up
sudo update-rc.d ncidd defaults
- The blacklist is located here and should be edited
/etc/ncid/ncidd.blacklist
- Finally run
sudo invoke-rc.d ncidd restart
to get the service running. This also appears to need to be run after editing the blacklist.
Notes:
- If the services is not working these links were useful during troubleshooting:
- This may or may not work outside the United States
- Commercial products exist that have similar functionality for around the same price http://amzn.to/2gFDrgP
- The caller ID will hang up after the first ring so not totally silent.
- Websites that spoof telephone numbers and caller IDs are available for testing.
- Since this is running headless the GPU memory can be decreased.