I want to setup a call monitor for showing incoming calls. My router (fritzbox) has a function, that sends for every event (incoming-, outgoing call...) a telnet stream. I can only see it via putty. I'm a webcoder, and have no idea how to grab this stream.

My question: Is there a software, which can fire an action( f.e call a url), when a defined telnet stream gets a new line?

有帮助吗?

解决方案

I am not sure what you mean by webcoder but if you are comfortable with building a PHP web server, for example, you should be able to do this.

In very high level terms you could:

  • create a web server and have a page which displays a list of call events, reading the list from a local database on the server. The web page would refresh the call list, using an AJAX request if you are comfortable or familiar with this, every second. If you are not familiar with AJAX just refresh the entire page every second.
  • create a simple php script on the same web server which runs in the background and which reads from the Fritzbox telnet connection every couple of seconds and adds any new call events into the database.

This will keep your call logs up to date, albeit with an amount of polling overhead.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top