NodeMCU und TR-064 Schnittstelle Fritz!Box

Danke für die schnelle Antwort.

Mein Code Schaut ganz ähnlich aus.
in deinem ist ein kleiner "Fehler" drin, der ESP bezieht seine IP trotz config per DHCP(zumindest bei mir). DNS muss vor SUBNET kommen. (war bei auch mir, nach etwas google dann den Fehler gefunden)

  WiFi.config(STATIC_IP, DNS, SUBNET, GATEWAY);

Habe meine Anleitung von hier: https://www.reichelt.de/magazin/how-to/smarte-tuerklingel/ ist quasi fast identisch.

Soweit ist bei mir auch alles korrekt, der ESP (auch ein Wemos D1 mini) meldet sich mit der Richtigen IP
an der FB an, auch mit DCHP, halt nur andere IP, funktioniert es nicht anders.

Die einzelenn Aktionen werden mit 200 quittiert.

Per Serieller Ausgabe bekomme ich das :

[HTTP] begin: 192.168.178.1:49000/upnp/control/wlanconfig1
<?xml version="1.0"?><s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Header><h:InitChallenge xmlns:h="http://soap-authentication.org/digest/2001/10/" s:mustUnderstand="1"><UserID>ESPKlingel</UserID></h:InitChallenge ></s:Header><s:Body><u:GetGenericAssociatedDeviceInfo xmlns:u='urn:dslforum-org:service:WLANConfiguration:1'><NewAssociatedDeviceIndex>1</NewAssociatedDeviceIndex></u:GetGenericAssociatedDeviceInfo></s:Body></s:Envelope>
[HTTP] POST... SOAPACTION: urn:dslforum-org:service:WLANConfiguration:1#GetGenericAssociatedDeviceInfo
[HTTP] POST... code: 200
<?xml version="1.0"?>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<s:Header>
<h:Challenge xmlns:h="http://soap-authentication.org/digest/2001/10/" s:mustUnderstand="1">
<Status>Unauthenticated</Status>
<Nonce>xxxxxxxxxxxxxxxxxxxxxx</Nonce>
<Realm>F!Box SOAP-Auth</Realm>
</h:Challenge>
</s:Header>
<s:Body>
<s:Fault>
<faultcode>s:Client</faultcode>
<faultstring>UPnPError</faultstring>
<detail>
<UPnPError xmlns="urn:dslforum-org:control-1-0">
<errorCode>503</errorCode>
<errorDescription>Auth. failed</errorDescription>
</UPnPError>
</detail>
</s:Fault>
</s:Body>
</s:Envelope>
Got the initial nonce: xxxxxxxxxxxxxxxxxxxxxx and the realm: F!Box SOAP-Auth
Your secret is is: ESPKlingel:F!Box SOAP-Auth:xxxxxxx
Your secret is hashed: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
action_3
action_1
The auth token is ###################################
[HTTP] begin: 192.168.178.1:49000/upnp/control/x_voip



<?xml version="1.0"?><s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Header><h:ClientAuth xmlns:h="http://soap-authentication.org/digest/2001/10/" s:mustUnderstand="1"><Nonce>##################</Nonce><Auth>###################################</Auth><UserID>ESPKlingel</UserID><Realm>F!Box SOAP-Auth</Realm></h:ClientAuth></s:Header><s:Body><u:X_AVM-DE_DialNumber xmlns:u='urn:dslforum-org:service:X_VoIP:1'><NewX_AVM-DE_PhoneNumber>**9#0173xxxxxxx</NewX_AVM-DE_PhoneNumber></u:X_AVM-DE_DialNumber></s:Body></s:Envelope>



[HTTP] POST... SOAPACTION: urn:dslforum-org:service:X_VoIP:1#X_AVM-DE_DialNumber
[HTTP] POST... code: 200



<?xml version="1.0"?>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<s:Header>
<h:NextChallenge xmlns:h="http://soap-authentication.org/digest/2001/10/" s:mustUnderstand="1">
<Status>Authenticated</Status>
<Nonce>xxxxxxxxxxxxxxxxxxxxx</Nonce>
<Realm>F!Box SOAP-Auth</Realm>
</h:NextChallenge>
</s:Header>
<s:Body>
<u:X_AVM-DE_DialNumberResponse xmlns:u="urn:dslforum-org:service:X_VoIP:1"></u:X_AVM-DE_DialNumberResponse>
</s:Body>
</s:Envelope>



action_3
action_1
The auth token is xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
[HTTP] begin: 192.168.178.1:49000/upnp/control/x_voip



<?xml version="1.0"?><s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Header><h:ClientAuth xmlns:h="http://soap-authentication.org/digest/2001/10/" s:mustUnderstand="1"><Nonce>xxxxxxxxxxxxxxxxxxx</Nonce><Auth>xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx</Auth><UserID>ESPKlingel</UserID><Realm>F!Box SOAP-Auth</Realm></h:ClientAuth></s:Header><s:Body><u:X_AVM-DE_DialHangup xmlns:u='urn:dslforum-org:service:X_VoIP:1'></u:X_AVM-DE_DialHangup></s:Body></s:Envelope>



[HTTP] POST... SOAPACTION: urn:dslforum-org:service:X_VoIP:1#X_AVM-DE_DialHangup
[HTTP] POST... code: 200



<?xml version="1.0"?>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<s:Header>
<h:NextChallenge xmlns:h="http://soap-authentication.org/digest/2001/10/" s:mustUnderstand="1">
<Status>Authenticated</Status>
<Nonce>xxxxxxxxxxxxxxxxx</Nonce>
<Realm>F!Box SOAP-Auth</Realm>
</h:NextChallenge>
</s:Header>
<s:Body>
<u:X_AVM-DE_DialHangupResponse xmlns:u="urn:dslforum-org:service:X_VoIP:1"></u:X_AVM-DE_DialHangupResponse>
</s:Body>
</s:Envelope>

auffällig ist nur das:

<UPnPError xmlns="urn:dslforum-org:control-1-0">
<errorCode>503</errorCode>
<errorDescription>Auth. failed</errorDescription>
</UPnPError>

upnp ist aktiviert

In der FB habe ch nen extra Benutzer für den ESP angelegt, aber auch admin geht nicht.
Nen IP-Telefon mit dem benutzer lässt es auch nicht besser funktionieren.
auch das update auf das aktuelle Labor, keine Besserung.

Telefone klingeln nicht. :confused:

In der Arduino IDE habe ich die ESP Ver. 2.4.2 installiert

@Doc_Arduino: Was meinst mit Virtuelles Telefon einrichten?

Hat jemand nen Tipp?