Monitoring incoming phone calls

Finally, last Monday i made the switch to VOIP. And with the Fritz!Box FON 7170 installed as ADSL modem i managed to get monitoring of incoming calls back online. The first thing i did was turning on the Telnet server on the Fritz; this can be done by picking up the phone and dialing #96*7*. You can kill it again by dialing #96*8*.



In the past i’ve read a lot about Fritz! modems having syslogd on board, so i thought this would be a piece of cake; just tell syslog to send to my HA PC and pick it up from there and analyze it…
However, no more syslogd on the Fritz anymore, these days. Well not one i could recognize as such. A real bummer. Now what?

I could think of nothing else then just calling our own phone number and watch if any messages would appear in the telnet session or maybe other things were happening in the box that could give me a lead.

And it did; on the screen i saw messages appearing like ‘script file /var/calllog not found’, ‘script file /var/flash/calllog not found’, so that could be a good starting point.
I asked google if it could help me and i discovered some great german sites where there’s a huge Fritz community doing all kinds of cool stuff with their Fritz boxes.
I stumbled upon some pages describing what this calllog script can be used for and i made a little script:

Apparently this calllog script is called with a few parameters like calling phone number, called phone number etc. The only thing the script does is send these parameters to my Home Automation application using nc (netcat). With a TCP server built in my HA app listening on the same port as specified in the script i can now receive information coming from my Fritz. So after nearly 6 months of abscence, logging of incoming calls is back online.

Next Fritz project: outgoing calls.

Visonic PowerMax+ and Home Automation

A few days ago i purchased a Visonic PowerMax+ security system and some accessories like a remote keypad, an additional sensor for the garage door and a XM10 interface.

Purchasing a security system seemed like a logical next step; after all; during the last 2-3 years i have regularly added new Visonic Sensors to my Domotica system. Outside doors, Windows are practically all monitored by Visonic sensors and i’ve also got Visonic motion sensors at the right places. I’m using a RFXCOM Visonic receiver to feed the information the Visonic sensors provide, into my Domotica system. This will stay that way, but having a Visonic PowerMax gives you some more opportunities. For example, now i can have the Visonic PowerMax ‘tell’ my Home Automation system when the PowerMax is entering armed state.

This could be used for several useful things, like switching off lights, TV, radio. Or lowering the setpoint of the central heating to 15-16 degrees. Or simulating the house being occupied by automatically switching on lights during the evenings.

Or what to think of automatically triggering the LoXX electronic door lock to lock the door for you…The same can be done when disarming the PowerMax; booting your PC since you probably want to check your email, turn on some lights in the livingroom when you’re coming home late, etc.