Project Description

C# TR064 implementation for all AVM Fritz!Box devices.



using FritzTR064.Generated;

// Validate HTTPS
ServicePointManager.ServerCertificateValidationCallback += (sender, certificate, chain, sslPolicyErrors) => true;


Wanpppconn1 service = new Wanpppconn1("");
string ip;
service.GetExternalIPAddress(out ip);

Wanpppconn1 service = new Wanpppconn1("");
    service.ForceTermination(); // Force reconnect (e.g. to Acquire a New IP Address)
catch (SoapException e)
    if (!e.Detail.InnerText.Contains("DiscconectInProgress"))

Deviceconfig service = new Deviceconfig("");
service.Reboot(); // reboot the AVM FritzBox
service.FactoryReset(); // reset the AVM FritzBox to factory settings

Contact service = new Contact("");
service.AddPhonebook("ExtraID", "Name"); // Create a new Phonebook
string callListUrl;
service.GetCallList(out callListUrl);

Tam service = new Tam("");
string url;
service.GetMessageList(0, out url); // Get Tam message List

Authentication Example

Contact service = new Contact("");
service.SoapHttpClientProtocol.Credentials = new NetworkCredential("USERNAME", "PASSWORD");

Last edited Sep 22, 2013 at 6:03 PM by bepe, version 21