AMWD.Net.Api.Fritz.CallMonitor 0.0.1-10
FRITZ!Box Call Monitor
You can use this small library to connect to the FRITZ!Box Call Monitor and receive live call events.
Router preparation
Call #96*5*
to enable the endpoint in your FRITZ!Box.
Call #96*4*
to disable it again.
In your code
using (var client = new CallMonitorClient(host, port))
{
client.OnEvent += (sender, e) =>
{
switch (e.Event)
{
case EventType.Ring:
Console.WriteLine($"{e.Timestamp:yyyy-MM-dd HH:mm:ss} | #{e.ConnectionId} | Incoming Call from {e.CallerNumber} to {e.CalleeNumber}");
break;
case EventType.Connect:
Console.WriteLine($"{e.Timestamp:yyyy-MM-dd HH:mm:ss} | #{e.ConnectionId} | Call connected to {e.CallerNumber}");
break;
case EventType.Disconnect:
Console.WriteLine($"{e.Timestamp:yyyy-MM-dd HH:mm:ss} | #{e.ConnectionId} | Call disconnected after {e.Duration}");
break;
case EventType.Call:
Console.WriteLine($"{e.Timestamp:yyyy-MM-dd HH:mm:ss} | #{e.ConnectionId} | Outgoing Call from {e.CalleeNumber} to {e.CallerNumber}");
break;
}
};
// Wait to terminate.
}
Published under MIT License (see choose a license).
No packages depend on AMWD.Net.Api.Fritz.CallMonitor.
.NET 6.0
- Microsoft.Extensions.Logging.Abstractions (>= 6.0.4)
.NET Standard 2.0
- Microsoft.Extensions.Logging.Abstractions (>= 6.0.4)