Phone Enhancements

This page details my experimentation with my voip telephone.


Phone Checker

Mock Call on Led Display

Mock Call on Led Display

Using a Linksys SPA Voip Box I followed these instructions from Cisco to connect it to the syslog.

http://www.cisco.com/en/US/products/ps10024/products_qanda_item09186a0080a35e20.shtml

Linksys SPA-3102

Linksys SPA-3102

I needed to add "-x" to the startup of rsyslogd in Ubuntu. This disables DNS lookups by rsyslogd that caused a long delay for syslog entries to be saved in the syslog file.

/etc/default/rsyslog

I have written a script called phonechecker.sh.

This emits the action of the phone ringing to my Elvin Router.

/usr/local/bin/phonechecker.sh

The script instructs the LED Display to show the callerid of the incoming phone call and the synthesizer says "call from" followed by reading out loud the individual digits of the callerid.

Finally start phonechecker.sh on boot and don't forget to open the UDP port to allow the Voip phone to send syslog data.

Add to /etc/rc.local

I have written two Elvin producers to emit notifications from the /usr/local/bin/phonechecker.sh script.

I needed to compile the programs on Fedora Linux and copy the image to Ubuntu as there is a critical bug open regarding the C client library.

Firstly, tick.c compiled to /usr/local/sbin/tick.

tick.c

Secondly, led.c compiled to /usr/local/sbin/led.

led.c


At the LED Display

I purchased a USB LED Display $87 off ebay and connected it to a Linux computer. The USB protocol was available so that it maybe controlled live from Linux.

LED Display

LED Display

I purchased a mono speaker $4 and usb audio adaptor $5 off ebay. This enables independent audio and volume control for the synthesised annoucements.

Audio Speaker

Speaker

USB Audio Adaptor

USB Audio Adaptor

On the computer connected to my LED Display.

I modified the example C program that was supplied with the LED Display and added code to make it an Elvin consumer.

I needed to compile the program on Fedora Linux and copy the image to Ubuntu as there is a critical bug open regarding the C client library.

The ledtickertape.c file is compiled and installed to /usr/local/sbin/ledtickertape.

ledtickertape.c

Here in the script that calls espeak to synthesize any messages that accompany the LED display output.

A curfew is programmed between 10pm and 8am.

/usr/local/bin/espeak

Here in the script that starts the ledtickertape consumer.

Add to /etc/rc.local