Project Description
C# TR064 implementation for all AVM Fritz!Box devices.
Documentation
Prerequisites
using FritzTR064.Generated;
...
// Validate HTTPS
ServicePointManager.ServerCertificateValidationCallback += (sender, certificate, chain, sslPolicyErrors) => true;
Examples
Wanpppconn1 service = new Wanpppconn1("https://fritz.box");
string ip;
service.GetExternalIPAddress(out ip);
Wanpppconn1 service = new Wanpppconn1("https://fritz.box");
try
{
service.ForceTermination(); // Force reconnect (e.g. to Acquire a New IP Address)
}
catch (SoapException e)
{
if (!e.Detail.InnerText.Contains("DiscconectInProgress"))
throw;
}
Deviceconfig service = new Deviceconfig("https://fritz.box");
service.Reboot(); // reboot the AVM FritzBox
service.FactoryReset(); // reset the AVM FritzBox to factory settings
Contact service = new Contact("https://fritz.box");
service.AddPhonebook("ExtraID", "Name"); // Create a new Phonebook
string callListUrl;
service.GetCallList(out callListUrl);
Tam service = new Tam("https://fritz.box");
string url;
service.GetMessageList(0, out url); // Get Tam message List
Authentication Example
Contact service = new Contact("https://fritz.box");
service.SoapHttpClientProtocol.Credentials = new NetworkCredential("USERNAME", "PASSWORD");
...