fritz!box call monitor with node.js

After two years: A new post. Yay!

The fritz!box has an integrated call monitor that can be activated by dialling #96*5* (and deactivated by #96*4* …). With just a few lines of code we can use node.js to build a small TCP client:

var net = require('net');
var sys = require('sys');
 
var client = net.createConnection(1012, "192.168.2.1");
 
client.addListener("data", function (chunk) {
	sys.puts(JSON.stringify(chunk));
});
client.addListener("end", function () {
	client.end();
});

Post a Comment

Your email is never shared. Required fields are marked *

*
*