This post describes a simple (!) data logging system for those with a Fritz!Box that is also used for wired/DECT telephony.
Many Fritz!Box models have a build-in method to share the telephony data. The data can be obtained through a TCP port on the Fritz!Box. The data sharing port is (fixed to) port 1012. To enable/disable the sharing, dial the next with a phone that is connected to the Fritz!Box:
Enable data sharing: #96*5*
Disable data sharing: #96*4*
To check if the data sharing is working, use Telnet:
C:\> telnet {IP address of Fritz!Box} 1012
You will see a black screen. Make a phone call to the Fritz!Box and you will see something like this:
26.12.22 14:37:00;RING;0;0610901234;+31123456091;SIP0;
26.12.22 14:37:01;DISCONNECT;0;0;
26.12.22 14:37:18;CALL;0;0;+31123456091;0610901234;SIP0;
26.12.22 14:37:25;CONNECT;0;0;0610901234;
26.12.22 14:37:34;DISCONNECT;0;8;
RING = incoming call
CALL = outgoing call
CONNECT = pick up of a phone connected to the Fritz!Box
DISCONNECT = hang up of a phone connected to the Fritz!Box
Now, to log data to a log file use this Powershell script:
You may use a tool like NSSM to create a Windows Service. Then the script will run in the background and it will log all phone calls to the log file.
No comments :
Post a Comment