Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

not working with AVM6590 (07.12) #30

Closed
jipp opened this issue Mar 9, 2020 · 25 comments
Closed

not working with AVM6590 (07.12) #30

jipp opened this issue Mar 9, 2020 · 25 comments

Comments

@jipp
Copy link

jipp commented Mar 9, 2020

Hi

I just copied the example caller and changed the credentials for wifi (working) also added username/password for the FB account using. Now trying to place a call. wit debug enabled I got the following output:

[action] with extraction
[action] with parameters
[action] no nonce/realm found. requesting...
[HTTP] prepare request to URL: http://192.168.178.1:49000
[HTTP] Posting XML:
---------------------------------
<?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>doorbell</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] request code: 500
[HTTP] Received back
---------------------------------

---------------------------------

[action]<error> nonce/realm request not successful!
[action]<error> Retrying in 5s
[action] no nonce/realm found. requesting...
[HTTP] prepare request to URL: http://192.168.178.1:49000
[HTTP] Posting XML:
---------------------------------
<?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>doorbell</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] request code: 500
[HTTP] Received back
---------------------------------

---------------------------------

[action]<error> nonce/realm request not successful!
[action]<error> Retrying in 5s
[action] no nonce/realm found. requesting...
[HTTP] prepare request to URL: http://192.168.178.1:49000
[HTTP] Posting XML:
---------------------------------
<?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>doorbell</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] request code: 500
[HTTP] Received back
---------------------------------

---------------------------------

[action]<error> nonce/realm request not successful!
[action]<error> Retrying in 5s
[HTTP] prepare request to URL: http://192.168.178.1:49000
[HTTP] Posting XML:
---------------------------------
<?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>doorbell</UserID></h:InitChallenge ></s:Header><s:Body><u:X_AVM-DE_DialNumber xmlns:u='urn:dslforum-org:service:X_VoIP:1'><NewX_AVM-DE_PhoneNumber>**1</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] request code: 500
[HTTP] Received back
---------------------------------

---------------------------------

[action] Response status: 
[action]<error> Giving up the request 

using some trial curl requests like:
curl -s -k -m 5 --anyauth -u "xxx:1234567890" "http://Fritz.Box:49000/upnp/control/deviceinfo" -H 'Content-Type: text/xml; charset="utf-8"' -H "SoapAction:urn:dslforum-org:service:DeviceInfo:1#GetInfo" -d "<?xml version='1.0' encoding='utf-8'?><s:Envelope s:encodingStyle='http://schemas.xmlsoap.org/soap/encoding/' xmlns:s='http://schemas.xmlsoap.org/soap/envelope/'><s:Body><u:GetInfo xmlns:u='urn:dslforum-org:service:DeviceInfo:1'></u:GetInfo></s:Body></s:Envelope>"

works

do you have any hint what an I doing wrong?

thanks lot

@Aypac
Copy link
Owner

Aypac commented Mar 9, 2020

Hmmm, just a few scattered thoughts before I look deeper into it:

  • Could be related to Error: connection.init() in a loop #21
  • You use fritz.box instead of the IP for the cURL request. Maybe check if your box is really using 192.168.178.1
  • Errorcode 500 is "request denied", so maybe the library is querying against the wrong interface or https is required (see Allow for https #29 )
  • Can you maybe try another example, e.g. the whoishome (don't think it'll help, but should be a really quick test)
  • The first request that the library sends is to http://192.168.178.1:49000/tr64desc.xml - can you check what that returns if you cURL it?

@jipp
Copy link
Author

jipp commented Mar 10, 2020

some quick answers - not all you asked for:

--
Could be related to #21
Don't think so as "Serial.println" is executed in the main loop

--
You use fritz.box instead of the IP for the cURL request. Maybe check if your box is really using 192.168.178.1

nslookup fritz.box
Server:         192.168.178.1
Address:        192.168.178.1#53

Name:   fritz.box
Address: 192.168.178.1

Also the web interface reacts on both: name and IP.

--
The first request that the library sends is to http://192.168.178.1:49000/tr64desc.xml - can you check what that returns if you cURL it?

same output with name and ip (click to expand)
pi@lemonpi:~ $ curl -s -k -m 5 http://192.168.178.1:49000/tr64desc.xml
<?xml version="1.0"?>
<root xmlns="urn:dslforum-org:device-1-0">
<specVersion>
<major>1</major>
<minor>0</minor>
</specVersion>
<systemVersion>
<HW>220</HW>
<Major>148</Major>
<Minor>7</Minor>
<Patch>12</Patch>
<Buildnumber>72225</Buildnumber>
<Display>148.07.12</Display>
</systemVersion>
<device>
<deviceType>urn:dslforum-org:device:InternetGatewayDevice:1</deviceType>
<friendlyName>FRITZ!Box 6590 Cable</friendlyName>
<manufacturer>AVM</manufacturer>
<manufacturerURL>www.avm.de</manufacturerURL>
<modelDescription>FRITZ!Box 6590 Cable</modelDescription>
<modelName>FRITZ!Box 6590 Cable</modelName>
<modelNumber> - avm</modelNumber>
<modelURL>www.avm.de</modelURL>
<UDN>uuid:739f2409-bccb-40e7-8e6c-444E6DE56EBF</UDN>
<iconList>
<icon>
<mimetype>image/gif</mimetype>
<width>118</width>
<height>119</height>
<depth>8</depth>
<url>/ligd.gif</url>
</icon>
</iconList>
<serviceList>
<service>
<serviceType>urn:dslforum-org:service:DeviceInfo:1</serviceType>
<serviceId>urn:DeviceInfo-com:serviceId:DeviceInfo1</serviceId>
<controlURL>/upnp/control/deviceinfo</controlURL>
<eventSubURL>/upnp/control/deviceinfo</eventSubURL>
<SCPDURL>/deviceinfoSCPD.xml</SCPDURL>
</service>
<service>
<serviceType>urn:dslforum-org:service:DeviceConfig:1</serviceType>
<serviceId>urn:DeviceConfig-com:serviceId:DeviceConfig1</serviceId>
<controlURL>/upnp/control/deviceconfig</controlURL>
<eventSubURL>/upnp/control/deviceconfig</eventSubURL>
<SCPDURL>/deviceconfigSCPD.xml</SCPDURL>
</service>
<service>
<serviceType>urn:dslforum-org:service:Layer3Forwarding:1</serviceType>
<serviceId>urn:Layer3Forwarding-com:serviceId:Layer3Forwarding1</serviceId>
<controlURL>/upnp/control/layer3forwarding</controlURL>
<eventSubURL>/upnp/control/layer3forwarding</eventSubURL>
<SCPDURL>/layer3forwardingSCPD.xml</SCPDURL>
</service>
<service>
<serviceType>urn:dslforum-org:service:LANConfigSecurity:1</serviceType>
<serviceId>urn:LANConfigSecurity-com:serviceId:LANConfigSecurity1</serviceId>
<controlURL>/upnp/control/lanconfigsecurity</controlURL>
<eventSubURL>/upnp/control/lanconfigsecurity</eventSubURL>
<SCPDURL>/lanconfigsecuritySCPD.xml</SCPDURL>
</service>
<service>
<serviceType>urn:dslforum-org:service:ManagementServer:1</serviceType>
<serviceId>urn:ManagementServer-com:serviceId:ManagementServer1</serviceId>
<controlURL>/upnp/control/mgmsrv</controlURL>
<eventSubURL>/upnp/control/mgmsrv</eventSubURL>
<SCPDURL>/mgmsrvSCPD.xml</SCPDURL>
</service>
<service>
<serviceType>urn:dslforum-org:service:Time:1</serviceType>
<serviceId>urn:Time-com:serviceId:Time1</serviceId>
<controlURL>/upnp/control/time</controlURL>
<eventSubURL>/upnp/control/time</eventSubURL>
<SCPDURL>/timeSCPD.xml</SCPDURL>
</service>
<service>
<serviceType>urn:dslforum-org:service:UserInterface:1</serviceType>
<serviceId>urn:UserInterface-com:serviceId:UserInterface1</serviceId>
<controlURL>/upnp/control/userif</controlURL>
<eventSubURL>/upnp/control/userif</eventSubURL>
<SCPDURL>/userifSCPD.xml</SCPDURL>
</service>
<service>
<serviceType>urn:dslforum-org:service:X_AVM-DE_Storage:1</serviceType>
<serviceId>urn:X_AVM-DE_Storage-com:serviceId:X_AVM-DE_Storage1</serviceId>
<controlURL>/upnp/control/x_storage</controlURL>
<eventSubURL>/upnp/control/x_storage</eventSubURL>
<SCPDURL>/x_storageSCPD.xml</SCPDURL>
</service>
<service>
<serviceType>urn:dslforum-org:service:X_AVM-DE_WebDAVClient:1</serviceType>
<serviceId>urn:X_AVM-DE_WebDAV-com:serviceId:X_AVM-DE_WebDAVClient1</serviceId>
<controlURL>/upnp/control/x_webdav</controlURL>
<eventSubURL>/upnp/control/x_webdav</eventSubURL>
<SCPDURL>/x_webdavSCPD.xml</SCPDURL>
</service>
<service>
<serviceType>urn:dslforum-org:service:X_AVM-DE_UPnP:1</serviceType>
<serviceId>urn:X_AVM-DE_UPnP-com:serviceId:X_AVM-DE_UPnP1</serviceId>
<controlURL>/upnp/control/x_upnp</controlURL>
<eventSubURL>/upnp/control/x_upnp</eventSubURL>
<SCPDURL>/x_upnpSCPD.xml</SCPDURL>
</service>
<service>
<serviceType>urn:dslforum-org:service:X_AVM-DE_Speedtest:1</serviceType>
<serviceId>urn:X_AVM-DE_Speedtest-com:serviceId:X_AVM-DE_Speedtest1</serviceId>
<controlURL>/upnp/control/x_speedtest</controlURL>
<eventSubURL>/upnp/control/x_speedtest</eventSubURL>
<SCPDURL>/x_speedtestSCPD.xml</SCPDURL>
</service>
<service>
<serviceType>urn:dslforum-org:service:X_AVM-DE_RemoteAccess:1</serviceType>
<serviceId>urn:X_AVM-DE_RemoteAccess-com:serviceId:X_AVM-DE_RemoteAccess1</serviceId>
<controlURL>/upnp/control/x_remote</controlURL>
<eventSubURL>/upnp/control/x_remote</eventSubURL>
<SCPDURL>/x_remoteSCPD.xml</SCPDURL>
</service>
<service>
<serviceType>urn:dslforum-org:service:X_AVM-DE_MyFritz:1</serviceType>
<serviceId>urn:X_AVM-DE_MyFritz-com:serviceId:X_AVM-DE_MyFritz1</serviceId>
<controlURL>/upnp/control/x_myfritz</controlURL>
<eventSubURL>/upnp/control/x_myfritz</eventSubURL>
<SCPDURL>/x_myfritzSCPD.xml</SCPDURL>
</service>
<service>
<serviceType>urn:dslforum-org:service:X_VoIP:1</serviceType>
<serviceId>urn:X_VoIP-com:serviceId:X_VoIP1</serviceId>
<controlURL>/upnp/control/x_voip</controlURL>
<eventSubURL>/upnp/control/x_voip</eventSubURL>
<SCPDURL>/x_voipSCPD.xml</SCPDURL>
</service>
<service>
<serviceType>urn:dslforum-org:service:X_AVM-DE_OnTel:1</serviceType>
<serviceId>urn:X_AVM-DE_OnTel-com:serviceId:X_AVM-DE_OnTel1</serviceId>
<controlURL>/upnp/control/x_contact</controlURL>
<eventSubURL>/upnp/control/x_contact</eventSubURL>
<SCPDURL>/x_contactSCPD.xml</SCPDURL>
</service>
<service><serviceType>urn:dslforum-org:service:X_AVM-DE_Dect:1</serviceType><serviceId>urn:X_AVM-DE_Dect-com:serviceId:X_AVM-DE_Dect1</serviceId><controlURL>/upnp/control/x_dect</controlURL><eventSubURL>/upnp/control/x_dect</eventSubURL><SCPDURL>/x_dectSCPD.xml</SCPDURL></service>
<service><serviceType>urn:dslforum-org:service:X_AVM-DE_TAM:1</serviceType><serviceId>urn:X_AVM-DE_TAM-com:serviceId:X_AVM-DE_TAM1</serviceId><controlURL>/upnp/control/x_tam</controlURL><eventSubURL>/upnp/control/x_tam</eventSubURL><SCPDURL>/x_tamSCPD.xml</SCPDURL></service>
<service>
<serviceType>urn:dslforum-org:service:X_AVM-DE_AppSetup:1</serviceType>
<serviceId>urn:X_AVM-DE_AppSetup-com:serviceId:X_AVM-DE_AppSetup1</serviceId>
<controlURL>/upnp/control/x_appsetup</controlURL>
<eventSubURL>/upnp/control/x_appsetup</eventSubURL>
<SCPDURL>/x_appsetupSCPD.xml</SCPDURL>
</service>
<service>
<serviceType>urn:dslforum-org:service:X_AVM-DE_Homeauto:1</serviceType>
<serviceId>urn:X_AVM-DE_Homeauto-com:serviceId:X_AVM-DE_Homeauto1</serviceId>
<controlURL>/upnp/control/x_homeauto</controlURL>
<eventSubURL>/upnp/control/x_homeauto</eventSubURL>
<SCPDURL>/x_homeautoSCPD.xml</SCPDURL>
</service>
<service>
<serviceType>urn:dslforum-org:service:X_AVM-DE_Homeplug:1</serviceType>
<serviceId>urn:X_AVM-DE_Homeplug-com:serviceId:X_AVM-DE_Homeplug1</serviceId>
<controlURL>/upnp/control/x_homeplug</controlURL>
<eventSubURL>/upnp/control/x_homeplug</eventSubURL>
<SCPDURL>/x_homeplugSCPD.xml</SCPDURL>
</service>
<service>
<serviceType>urn:dslforum-org:service:X_AVM-DE_Filelinks:1</serviceType>
<serviceId>urn:X_AVM-DE_Filelinks-com:serviceId:X_AVM-DE_Filelinks1</serviceId>
<controlURL>/upnp/control/x_filelinks</controlURL>
<eventSubURL>/upnp/control/x_filelinks</eventSubURL>
<SCPDURL>/x_filelinksSCPD.xml</SCPDURL>
</service>
<service>
<serviceType>urn:dslforum-org:service:X_AVM-DE_Auth:1</serviceType>
<serviceId>urn:X_AVM-DE_Auth-com:serviceId:X_AVM-DE_Auth1</serviceId>
<controlURL>/upnp/control/x_auth</controlURL>
<eventSubURL>/upnp/control/x_auth</eventSubURL>
<SCPDURL>/x_authSCPD.xml</SCPDURL>
</service>
</serviceList>
<deviceList>
<device>
<deviceType>urn:dslforum-org:device:LANDevice:1</deviceType>
<friendlyName>LANDevice - FRITZ!Box 6590 Cable</friendlyName>
<manufacturer>AVM</manufacturer>
<manufacturerURL>www.avm.de</manufacturerURL>
<modelDescription>LANDevice - FRITZ!Box 6590 Cable</modelDescription>
<modelName>LANDevice - FRITZ!Box 6590 Cable</modelName>
<modelNumber> - avm</modelNumber>
<modelURL>www.avm.de</modelURL>
<UDN>uuid:75802409-bccb-40e7-8e6b-444E6DE56EBF</UDN>
<UPC>AVM TR-064</UPC>
<serviceList>
<service>
<serviceType>urn:dslforum-org:service:WLANConfiguration:1</serviceType>
<serviceId>urn:WLANConfiguration-com:serviceId:WLANConfiguration1</serviceId>
<controlURL>/upnp/control/wlanconfig1</controlURL>
<eventSubURL>/upnp/control/wlanconfig1</eventSubURL>
<SCPDURL>/wlanconfigSCPD.xml</SCPDURL>
</service>
<service><serviceType>urn:dslforum-org:service:WLANConfiguration:2</serviceType><serviceId>urn:WLANConfiguration-com:serviceId:WLANConfiguration2</serviceId><controlURL>/upnp/control/wlanconfig2</controlURL><eventSubURL>/upnp/control/wlanconfig2</eventSubURL><SCPDURL>/wlanconfigSCPD.xml</SCPDURL></service><!-- 2 --><service><serviceType>urn:dslforum-org:service:WLANConfiguration:3</serviceType><serviceId>urn:WLANConfiguration-com:serviceId:WLANConfiguration3</serviceId><controlURL>/upnp/control/wlanconfig3</controlURL><eventSubURL>/upnp/control/wlanconfig3</eventSubURL><SCPDURL>/wlanconfigSCPD.xml</SCPDURL></service>
<service>
<serviceType>urn:dslforum-org:service:Hosts:1</serviceType>
<serviceId>urn:LanDeviceHosts-com:serviceId:Hosts1</serviceId>
<controlURL>/upnp/control/hosts</controlURL>
<eventSubURL>/upnp/control/hosts</eventSubURL>
<SCPDURL>/hostsSCPD.xml</SCPDURL>
</service>
<service>
<serviceType>urn:dslforum-org:service:LANEthernetInterfaceConfig:1</serviceType>
<serviceId>urn:LANEthernetIfCfg-com:serviceId:LANEthernetInterfaceConfig1</serviceId>
<controlURL>/upnp/control/lanethernetifcfg</controlURL>
<eventSubURL>/upnp/control/lanethernetifcfg</eventSubURL>
<SCPDURL>/ethifconfigSCPD.xml</SCPDURL>
</service>
<service>
<serviceType>urn:dslforum-org:service:LANHostConfigManagement:1</serviceType>
<serviceId>urn:LANHCfgMgm-com:serviceId:LANHostConfigManagement1</serviceId>
<controlURL>/upnp/control/lanhostconfigmgm</controlURL>
<eventSubURL>/upnp/control/lanhostconfigmgm</eventSubURL>
<SCPDURL>/lanhostconfigmgmSCPD.xml</SCPDURL>
</service>
</serviceList>
</device>
<device>
<deviceType>urn:dslforum-org:device:WANDevice:1</deviceType>
<friendlyName>WANDevice - FRITZ!Box 6590 Cable</friendlyName>
<manufacturer>AVM</manufacturer>
<manufacturerURL>www.avm.de</manufacturerURL>
<modelDescription>WANDevice - FRITZ!Box 6590 Cable</modelDescription>
<modelName>WANDevice - FRITZ!Box 6590 Cable</modelName>
<modelNumber> - avm</modelNumber>
<modelURL>www.avm.de</modelURL>
<UDN>uuid:75802409-bccb-40e7-8e6a-444E6DE56EBF</UDN>
<UPC>AVM TR-064</UPC>
<serviceList>
<service>
<serviceType>urn:dslforum-org:service:WANCommonInterfaceConfig:1</serviceType>
<serviceId>urn:WANCIfConfig-com:serviceId:WANCommonInterfaceConfig1</serviceId>
<controlURL>/upnp/control/wancommonifconfig1</controlURL>
<eventSubURL>/upnp/control/wancommonifconfig1</eventSubURL>
<SCPDURL>/wancommonifconfigSCPD.xml</SCPDURL>
</service>
<service>
<serviceType>urn:dslforum-org:service:WANDSLInterfaceConfig:1</serviceType>
<serviceId>urn:WANDSLIfConfig-com:serviceId:WANDSLInterfaceConfig1</serviceId>
<controlURL>/upnp/control/wandslifconfig1</controlURL>
<eventSubURL>/upnp/control/wandslifconfig1</eventSubURL>
<SCPDURL>/wandslifconfigSCPD.xml</SCPDURL>
</service>
</serviceList>
<deviceList>
<device>
<deviceType>urn:dslforum-org:device:WANConnectionDevice:1</deviceType>
<friendlyName>WANConnectionDevice - FRITZ!Box 6590 Cable</friendlyName>
<manufacturer>AVM</manufacturer>
<manufacturerURL>www.avm.de</manufacturerURL>
<modelDescription>WANConnectionDevice - FRITZ!Box 6590 Cable</modelDescription>
<modelName>WANConnectionDevice - FRITZ!Box 6590 Cable</modelName>
<modelNumber> - avm</modelNumber>
<modelURL>www.avm.de</modelURL>
<UDN>uuid:75802409-bccb-40e7-8e69-444E6DE56EBF</UDN>
<UPC>AVM TR-064</UPC>
<serviceList>
<service>
<serviceType>urn:dslforum-org:service:WANDSLLinkConfig:1</serviceType>
<serviceId>urn:WANDSLLinkConfig-com:serviceId:WANDSLLinkConfig1</serviceId>
<controlURL>/upnp/control/wandsllinkconfig1</controlURL>
<eventSubURL>/upnp/control/wandsllinkconfig1</eventSubURL>
<SCPDURL>/wandsllinkconfigSCPD.xml</SCPDURL>
</service>
<service>
<serviceType>urn:dslforum-org:service:WANEthernetLinkConfig:1</serviceType>
<serviceId>urn:WANEthernetLinkConfig-com:serviceId:WANEthernetLinkConfig1</serviceId>
<controlURL>/upnp/control/wanethlinkconfig1</controlURL>
<eventSubURL>/upnp/control/wanethlinkconfig1</eventSubURL>
<SCPDURL>/wanethlinkconfigSCPD.xml</SCPDURL>
</service>
<service>
<serviceType>urn:dslforum-org:service:WANPPPConnection:1</serviceType>
<serviceId>urn:WANPPPConnection-com:serviceId:WANPPPConnection1</serviceId>
<controlURL>/upnp/control/wanpppconn1</controlURL>
<eventSubURL>/upnp/control/wanpppconn1</eventSubURL>
<SCPDURL>/wanpppconnSCPD.xml</SCPDURL>
</service>
<service>
<serviceType>urn:dslforum-org:service:WANIPConnection:1</serviceType>
<serviceId>urn:WANIPConnection-com:serviceId:WANIPConnection1</serviceId>
<controlURL>/upnp/control/wanipconnection1</controlURL>
<eventSubURL>/upnp/control/wanipconnection1</eventSubURL>
<SCPDURL>/wanipconnSCPD.xml</SCPDURL>
</service>
</serviceList>
</device>
</deviceList>
</device>
</deviceList>
<presentationURL>http://fritz.box</presentationURL>
</device>
</root>

@jipp
Copy link
Author

jipp commented Mar 10, 2020

one more thing - when only posting the 1st xml statement using cURL:

curl -s -k -m 5 "http://192.168.178.1:49000/upnp/control/deviceinfo" -H 'Content-Type: text/xml; charset="utf-8"' -H "SoapAction:urn:dslforum-org:service:DeviceInfo:1#GetInfo" -d "<?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>doorbell</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>"
<?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>FBE96F5D7D9F3FDF</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></errorDescription>
</UPnPError>
</detail>
</s:Fault>
</s:Body>
</s:Envelope>

@jipp
Copy link
Author

jipp commented Mar 10, 2020

Tried another example, same result

how to use https in your setup?
cURL is also working with http

@Aypac
Copy link
Owner

Aypac commented Mar 10, 2020

I just started testing on my hardware and seeing the same thing. Looks like I messed up somewhere. I'll try to figure it out asap and let you know.

@Aypac
Copy link
Owner

Aypac commented Mar 10, 2020

Ok, so the reason why it was not working for me was simply because I deactivated the option to require a password to log into the UI; turns out the FB does not even provide Nonce's then (as it just allows you to do anything without authentication). I guess that is not the case for you?
Can you maybe try the code on this branch ? Maybe it'll help...

@Aypac
Copy link
Owner

Aypac commented Mar 10, 2020

Ok, after delving into this for a few hours I ended up adding many improvements to the lib (see above mentioned branch). I hope one of them will help you.
If you still get a 500, try the new example 'simple-router-info' (only available on that branch for now).

@jipp
Copy link
Author

jipp commented Mar 11, 2020

Hi

thanks a lot for your effort and time.

I have downloaded the branch you referred and started the "simple-router.info.ino". below the output. I think we are a step further. but I see a crash at the end of the execution - using a wemos d1 mini pro.

will try the original sketch as well.

Click to see full log
[SETUP] WAIT 4...
scandone
state: 0 -> 2 (b0)
state: 2 -> 3 (0)
state: 3 -> 5 (10)
add 0
aid 3
cnt 

connected with wobilix, channel 11
dhcp client start...
ip:192.168.178.39,mask:255.255.255.0,gw:192.168.178.1
[SETUP] WAIT 3...
[SETUP] WAIT 2...
[SETUP] WAIT 1...
Initialize TR-064 connection

[init] Started initialization of the TR-064 library.
[HTTP] Prepare HTTP request to URL: 'http://192.168.178.1:49000/tr64desc.xml'.
[HTTP] GET...
[HTTP] Request code: 200
[HTTP] Printing received reply (between lines):
---------------------------------
<?xml version="1.0"?>
<root xmlns="urn:dslforum-org:device-1-0">
<specVersion>
<major>1</major>
<minor>0</minor>
</specVersion>
<systemVersion>
<HW>220</HW>
<Major>148</Major>
<Minor>7</Minor>
<Patch>12</Patch>
<Buildnumber>72225</Buildnumber>
<Display>148.07.12</Display>
</systemVersion>
<device>
<deviceType>urn:dslforum-org:device:InternetGatewayDevice:1</deviceType>
<friendlyName>FRITZ!Box 6590 Cable</friendlyName>
<manufacturer>AVM</manufacturer>
<manufacturerURL>www.avm.de</manufacturerURL>
<modelDescription>FRITZ!Box 6590 Cable</modelDescription>
<modelName>FRITZ!Box 6590 Cable</modelName>
<modelNumber> - avm</modelNumber>
<modelURL>www.avm.de</modelURL>
<UDN>uuid:739f2409-bccb-40e7-8e6c-444E6DE56EBF</UDN>
<iconList>
<icon>
<mimetype>image/gif</mimetype>
<width>118</width>
<height>119</height>
<depth>8</depth>
<url>/ligd.gif</url>
</icon>
</iconList>
<serviceList>
<service>
<serviceType>urn:dslforum-org:service:DeviceInfo:1</serviceType>
<serviceId>urn:DeviceInfo-com:serviceId:DeviceInfo1</serviceId>
<controlURL>/upnp/control/deviceinfo</controlURL>
<eventSubURL>/upnp/control/deviceinfo</eventSubURL>
<SCPDURL>/deviceinfoSCPD.xml</SCPDURL>
</service>
<service>
<serviceType>urn:dslforum-org:service:DeviceConfig:1</serviceType>
<serviceId>urn:DeviceConfig-com:serviceId:DeviceConfig1</serviceId>
<controlURL>/upnp/control/deviceconfig</controlURL>
<eventSubURL>/upnp/control/deviceconfig</eventSubURL>
<SCPDURL>/deviceconfigSCPD.xml</SCPDURL>
</service>
<service>
<serviceType>urn:dslforum-org:service:Layer3Forwarding:1</serviceType>
<serviceId>urn:Layer3Forwarding-com:serviceId:Layer3Forwarding1</serviceId>
<controlURL>/upnp/control/layer3forwarding</controlURL>
<eventSubURL>/upnp/control/layer3forwarding</eventSubURL>
<SCPDURL>/layer3forwardingSCPD.xml</SCPDURL>
</service>
<service>
<serviceType>urn:dslforum-org:service:LANConfigSecurity:1</serviceType>
<serviceId>urn:LANConfigSecurity-com:serviceId:LANConfigSecurity1</serviceId>
<controlURL>/upnp/control/lanconfigsecurity</controlURL>
<eventSubURL>/upnp/control/lanconfigsecurity</eventSubURL>
<SCPDURL>/lanconfigsecuritySCPD.xml</SCPDURL>
</service>
<service>
<serviceType>urn:dslforum-org:service:ManagementServer:1</serviceType>
<serviceId>urn:ManagementServer-com:serviceId:ManagementServer1</serviceId>
<controlURL>/upnp/control/mgmsrv</controlURL>
<eventSubURL>/upnp/control/mgmsrv</eventSubURL>
<SCPDURL>/mgmsrvSCPD.xml</SCPDURL>
</service>
<service>
<serviceType>urn:dslforum-org:service:Time:1</serviceType>
<serviceId>urn:Time-com:serviceId:Time1</serviceId>
<controlURL>/upnp/control/time</controlURL>
<eventSubURL>/upnp/control/time</eventSubURL>
<SCPDURL>/timeSCPD.xml</SCPDURL>
</service>
<service>
<serviceType>urn:dslforum-org:service:UserInterface:1</serviceType>
<serviceId>urn:UserInterface-com:serviceId:UserInterface1</serviceId>
<controlURL>/upnp/control/userif</controlURL>
<eventSubURL>/upnp/control/userif</eventSubURL>
<SCPDURL>/userifSCPD.xml</SCPDURL>
</service>
<service>
<serviceType>urn:dslforum-org:service:X_AVM-DE_Storage:1</serviceType>
<serviceId>urn:X_AVM-DE_Storage-com:serviceId:X_AVM-DE_Storage1</serviceId>
<controlURL>/upnp/control/x_storage</controlURL>
<eventSubURL>/upnp/control/x_storage</eventSubURL>
<SCPDURL>/x_storageSCPD.xml</SCPDURL>
</service>
<service>
<serviceType>urn:dslforum-org:service:X_AVM-DE_WebDAVClient:1</serviceType>
<serviceId>urn:X_AVM-DE_WebDAV-com:serviceId:X_AVM-DE_WebDAVClient1</serviceId>
<controlURL>/upnp/control/x_webdav</controlURL>
<eventSubURL>/upnp/control/x_webdav</eventSubURL>
<SCPDURL>/x_webdavSCPD.xml</SCPDURL>
</service>
<service>
<serviceType>urn:dslforum-org:service:X_AVM-DE_UPnP:1</serviceType>
<serviceId>urn:X_AVM-DE_UPnP-com:serviceId:X_AVM-DE_UPnP1</serviceId>
<controlURL>/upnp/control/x_upnp</controlURL>
<eventSubURL>/upnp/control/x_upnp</eventSubURL>
<SCPDURL>/x_upnpSCPD.xml</SCPDURL>
</service>
<service>
<serviceType>urn:dslforum-org:service:X_AVM-DE_Speedtest:1</serviceType>
<serviceId>urn:X_AVM-DE_Speedtest-com:serviceId:X_AVM-DE_Speedtest1</serviceId>
<controlURL>/upnp/control/x_speedtest</controlURL>
<eventSubURL>/upnp/control/x_speedtest</eventSubURL>
<SCPDURL>/x_speedtestSCPD.xml</SCPDURL>
</service>
<service>
<serviceType>urn:dslforum-org:service:X_AVM-DE_RemoteAccess:1</serviceType>
<serviceId>urn:X_AVM-DE_RemoteAccess-com:serviceId:X_AVM-DE_RemoteAccess1</serviceId>
<controlURL>/upnp/control/x_remote</controlURL>
<eventSubURL>/upnp/control/x_remote</eventSubURL>
<SCPDURL>/x_remoteSCPD.xml</SCPDURL>
</service>
<service>
<serviceType>urn:dslforum-org:service:X_AVM-DE_MyFritz:1</serviceType>
<serviceId>urn:X_AVM-DE_MyFritz-com:serviceId:X_AVM-DE_MyFritz1</serviceId>
<controlURL>/upnp/control/x_myfritz</controlURL>
<eventSubURL>/upnp/control/x_myfritz</eventSubURL>
<SCPDURL>/x_myfritzSCPD.xml</SCPDURL>
</service>
<service>
<serviceType>urn:dslforum-org:service:X_VoIP:1</serviceType>
<serviceId>urn:X_VoIP-com:serviceId:X_VoIP1</serviceId>
<controlURL>/upnp/control/x_voip</controlURL>
<eventSubURL>/upnp/control/x_voip</eventSubURL>
<SCPDURL>/x_voipSCPD.xml</SCPDURL>
</service>
<service>
<serviceType>urn:dslforum-org:service:X_AVM-DE_OnTel:1</serviceType>
<serviceId>urn:X_AVM-DE_OnTel-com:serviceId:X_AVM-DE_OnTel1</serviceId>
<controlURL>/upnp/control/x_contact</controlURL>
<eventSubURL>/upnp/control/x_contact</eventSubURL>
<SCPDURL>/x_contactSCPD.xml</SCPDURL>
</service>
<service><serviceType>urn:dslforum-org:service:X_AVM-DE_Dect:1</serviceType><serviceId>urn:X_AVM-DE_Dect-com:serviceId:X_AVM-DE_Dect1</serviceId><controlURL>/upnp/control/x_dect</controlURL><eventSubURL>/upnp/control/x_dect</eventSubURL><SCPDURL>/x_dectSCPD.xml</SCPDURL></service>
<service><serviceType>urn:dslforum-org:service:X_AVM-DE_TAM:1</serviceType><serviceId>urn:X_AVM-DE_TAM-com:serviceId:X_AVM-DE_TAM1</serviceId><controlURL>/upnp/control/x_tam</controlURL><eventSubURL>/upnp/control/x_tam</eventSubURL><SCPDURL>/x_tamSCPD.xml</SCPDURL></service>
<service>
<serviceType>urn:dslforum-org:service:X_AVM-DE_AppSetup:1</serviceType>
<serviceId>urn:X_AVM-DE_AppSetup-com:serviceId:X_AVM-DE_AppSetup1</serviceId>
<controlURL>/upnp/control/x_appsetup</controlURL>
<eventSubURL>/upnp/control/x_appsetup</eventSubURL>
<SCPDURL>/x_appsetupSCPD.xml</SCPDURL>
</service>
<service>
<serviceType>urn:dslforum-org:service:X_AVM-DE_Homeauto:1</serviceType>
<serviceId>urn:X_AVM-DE_Homeauto-com:serviceId:X_AVM-DE_Homeauto1</serviceId>
<controlURL>/upnp/control/x_homeauto</controlURL>
<eventSubURL>/upnp/control/x_homeauto</eventSubURL>
<SCPDURL>/x_homeautoSCPD.xml</SCPDURL>
</service>
<service>
<serviceType>urn:dslforum-org:service:X_AVM-DE_Homeplug:1</serviceType>
<serviceId>urn:X_AVM-DE_Homeplug-com:serviceId:X_AVM-DE_Homeplug1</serviceId>
<controlURL>/upnp/control/x_homeplug</controlURL>
<eventSubURL>/upnp/control/x_homeplug</eventSubURL>
<SCPDURL>/x_homeplugSCPD.xml</SCPDURL>
</service>
<service>
<serviceType>urn:dslforum-org:service:X_AVM-DE_Filelinks:1</serviceType>
<serviceId>urn:X_AVM-DE_Filelinks-com:serviceId:X_AVM-DE_Filelinks1</serviceId>
<controlURL>/upnp/control/x_filelinks</controlURL>
<eventSubURL>/upnp/control/x_filelinks</eventSubURL>
<SCPDURL>/x_filelinksSCPD.xml</SCPDURL>
</service>
<service>
<serviceType>urn:dslforum-org:service:X_AVM-DE_Auth:1</serviceType>
<serviceId>urn:X_AVM-DE_Auth-com:serviceId:X_AVM-DE_Auth1</serviceId>
<controlURL>/upnp/control/x_auth</controlURL>
<eventSubURL>/upnp/control/x_auth</eventSubURL>
<SCPDURL>/x_authSCPD.xml</SCPDURL>
</service>
</serviceList>
<deviceList>
<device>
<deviceType>urn:dslforum-org:device:LANDevice:1</deviceType>
<friendlyName>LANDevice - FRITZ!Box 6590 Cable</friendlyName>
<manufacturer>AVM</manufacturer>
<manufacturerURL>www.avm.de</manufacturerURL>
<modelDescription>LANDevice - FRITZ!Box 6590 Cable</modelDescription>
<modelName>LANDevice - FRITZ!Box 6590 Cable</modelName>
<modelNumber> - avm</modelNumber>
<modelURL>www.avm.de</modelURL>
<UDN>uuid:75802409-bccb-40e7-8e6b-444E6DE56EBF</UDN>
<UPC>AVM TR-064</UPC>
<serviceList>
<service>
<serviceType>urn:dslforum-org:service:WLANConfiguration:1</serviceType>
<serviceId>urn:WLANConfiguration-com:serviceId:WLANConfiguration1</serviceId>
<controlURL>/upnp/control/wlanconfig1</controlURL>
<eventSubURL>/upnp/control/wlanconfig1</eventSubURL>
<SCPDURL>/wlanconfigSCPD.xml</SCPDURL>
</service>
<service><serviceType>urn:dslforum-org:service:WLANConfiguration:2</serviceType><serviceId>urn:WLANConfiguration-com:serviceId:WLANConfiguration2</serviceId><controlURL>/upnp/control/wlanconfig2</controlURL><eventSubURL>/upnp/control/wlanconfig2</eventSubURL><SCPDURL>/wlanconfigSCPD.xml</SCPDURL></service><!-- 2 --><service><serviceType>urn:dslforum-org:service:WLANConfiguration:3</serviceType><serviceId>urn:WLANConfiguration-com:serviceId:WLANConfiguration3</serviceId><controlURL>/upnp/control/wlanconfig3</controlURL><eventSubURL>/upnp/control/wlanconfig3</eventSubURL><SCPDURL>/wlanconfigSCPD.xml</SCPDURL></service>
<service>
<serviceType>urn:dslforum-org:service:Hosts:1</serviceType>
<serviceId>urn:LanDeviceHosts-com:serviceId:Hosts1</serviceId>
<controlURL>/upnp/control/hosts</controlURL>
<eventSubURL>/upnp/control/hosts</eventSubURL>
<SCPDURL>/hostsSCPD.xml</SCPDURL>
</service>
<service>
<serviceType>urn:dslforum-org:service:LANEthernetInterfaceConfig:1</serviceType>
<serviceId>urn:LANEthernetIfCfg-com:serviceId:LANEthernetInterfaceConfig1</serviceId>
<controlURL>/upnp/control/lanethernetifcfg</controlURL>
<eventSubURL>/upnp/control/lanethernetifcfg</eventSubURL>
<SCPDURL>/ethifconfigSCPD.xml</SCPDURL>
</service>
<service>
<serviceType>urn:dslforum-org:service:LANHostConfigManagement:1</serviceType>
<serviceId>urn:LANHCfgMgm-com:serviceId:LANHostConfigManagement1</serviceId>
<controlURL>/upnp/control/lanhostconfigmgm</controlURL>
<eventSubURL>/upnp/control/lanhostconfigmgm</eventSubURL>
<SCPDURL>/lanhostconfigmgmSCPD.xml</SCPDURL>
</service>
</serviceList>
</device>
<device>
<deviceType>urn:dslforum-org:device:WANDevice:1</deviceType>
<friendlyName>WANDevice - FRITZ!Box 6590 Cable</friendlyName>
<manufacturer>AVM</manufacturer>
<manufacturerURL>www.avm.de</manufacturerURL>
<modelDescription>WANDevice - FRITZ!Box 6590 Cable</modelDescription>
<modelName>WANDevice - FRITZ!Box 6590 Cable</modelName>
<modelNumber> - avm</modelNumber>
<modelURL>www.avm.de</modelURL>
<UDN>uuid:75802409-bccb-40e7-8e6a-444E6DE56EBF</UDN>
<UPC>AVM TR-064</UPC>
<serviceList>
<service>
<serviceType>urn:dslforum-org:service:WANCommonInterfaceConfig:1</serviceType>
<serviceId>urn:WANCIfConfig-com:serviceId:WANCommonInterfaceConfig1</serviceId>
<controlURL>/upnp/control/wancommonifconfig1</controlURL>
<eventSubURL>/upnp/control/wancommonifconfig1</eventSubURL>
<SCPDURL>/wancommonifconfigSCPD.xml</SCPDURL>
</service>
<service>
<serviceType>urn:dslforum-org:service:WANDSLInterfaceConfig:1</serviceType>
<serviceId>urn:WANDSLIfConfig-com:serviceId:WANDSLInterfaceConfig1</serviceId>
<controlURL>/upnp/control/wandslifconfig1</controlURL>
<eventSubURL>/upnp/control/wandslifconfig1</eventSubURL>
<SCPDURL>/wandslifconfigSCPD.xml</SCPDURL>
</service>
</serviceList>
<deviceList>
<device>
<deviceType>urn:dslforum-org:device:WANConnectionDevice:1</deviceType>
<friendlyName>WANConnectionDevice - FRITZ!Box 6590 Cable</friendlyName>
<manufacturer>AVM</manufacturer>
<manufacturerURL>www.avm.de</manufacturerURL>
<modelDescription>WANConnectionDevice - FRITZ!Box 6590 Cable</modelDescription>
<modelName>WANConnectionDevice - FRITZ!Box 6590 Cable</modelName>
<modelNumber> - avm</modelNumber>
<modelURL>www.avm.de</modelURL>
<UDN>uuid:75802409-bccb-40e7-8e69-444E6DE56EBF</UDN>
<UPC>AVM TR-064</UPC>
<serviceList>
<service>
<serviceType>urn:dslforum-org:service:WANDSLLinkConfig:1</serviceType>
<serviceId>urn:WANDSLLinkConfig-com:serviceId:WANDSLLinkConfig1</serviceId>
<controlURL>/upnp/control/wandsllinkconfig1</controlURL>
<eventSubURL>/upnp/control/wandsllinkconfig1</eventSubURL>
<SCPDURL>/wandsllinkconfigSCPD.xml</SCPDURL>
</service>
<service>
<serviceType>urn:dslforum-org:service:WANEthernetLinkConfig:1</serviceType>
<serviceId>urn:WANEthernetLinkConfig-com:serviceId:WANEthernetLinkConfig1</serviceId>
<controlURL>/upnp/control/wanethlinkconfig1</controlURL>
<eventSubURL>/upnp/control/wanethlinkconfig1</eventSubURL>
<SCPDURL>/wanethlinkconfigSCPD.xml</SCPDURL>
</service>
<service>
<serviceType>urn:dslforum-org:service:WANPPPConnection:1</serviceType>
<serviceId>urn:WANPPPConnection-com:serviceId:WANPPPConnection1</serviceId>
<controlURL>/upnp/control/wanpppconn1</controlURL>
<eventSubURL>/upnp/control/wanpppconn1</eventSubURL>
<SCPDURL>/wanpppconnSCPD.xml</SCPDURL>
</service>
<service>
<serviceType>urn:dslforum-org:service:WANIPConnection:1</serviceType>
<serviceId>urn:WANIPConnection-com:serviceId:WANIPConnection1</serviceId>
<controlURL>/upnp/control/wanipconnection1</controlURL>
<eventSubURL>/upnp/control/wanipconnection1</eventSubURL>
<SCPDURL>/wanipconnSCPD.xml</SCPDURL>
</service>
</serviceList>
</device>
</deviceList>
</device>
</deviceList>
<presentationURL>http://fritz.box</presentationURL>
</device>
</root>

---------------------------------

[initServiceURLs] Router name: 
[initServiceURLs] Router model: 
[initServiceURLs] Detected Services:
    1	urn:dslforum-org:service:DeviceInfo:1 @ /upnp/control/deviceinfo
    2	urn:dslforum-org:service:DeviceConfig:1 @ /upnp/control/deviceconfig
    3	urn:dslforum-org:service:Layer3Forwarding:1 @ /upnp/control/layer3forwarding
    4	urn:dslforum-org:service:LANConfigSecurity:1 @ /upnp/control/lanconfigsecurity
    5	urn:dslforum-org:service:ManagementServer:1 @ /upnp/control/mgmsrv
    6	urn:dslforum-org:service:Time:1 @ /upnp/control/time
    7	urn:dslforum-org:service:UserInterface:1 @ /upnp/control/userif
    8	urn:dslforum-org:service:X_AVM-DE_Storage:1 @ /upnp/control/x_storage
    9	urn:dslforum-org:service:X_AVM-DE_WebDAVClient:1 @ /upnp/control/x_webdav
    10	urn:dslforum-org:service:X_AVM-DE_UPnP:1 @ /upnp/control/x_upnp
    11	urn:dslforum-org:service:X_AVM-DE_Speedtest:1 @ /upnp/control/x_speedtest
    12	urn:dslforum-org:service:X_AVM-DE_RemoteAccess:1 @ /upnp/control/x_remote
    13	urn:dslforum-org:service:X_AVM-DE_MyFritz:1 @ /upnp/control/x_myfritz
    14	urn:dslforum-org:service:X_VoIP:1 @ /upnp/control/x_voip
    15	urn:dslforum-org:service:X_AVM-DE_OnTel:1 @ /upnp/control/x_contact
    16	urn:dslforum-org:service:X_AVM-DE_Dect:1 @ /upnp/control/x_dect
    17	urn:dslforum-org:service:X_AVM-DE_TAM:1 @ /upnp/control/x_tam
    18	urn:dslforum-org:service:X_AVM-DE_AppSetup:1 @ /upnp/control/x_appsetup
    19	urn:dslforum-org:service:X_AVM-DE_Homeauto:1 @ /upnp/control/x_homeauto
    20	urn:dslforum-org:service:X_AVM-DE_Homeplug:1 @ /upnp/control/x_homeplug
    21	urn:dslforum-org:service:X_AVM-DE_Filelinks:1 @ /upnp/control/x_filelinks
    22	urn:dslforum-org:service:X_AVM-DE_Auth:1 @ /upnp/control/x_auth
    23	urn:dslforum-org:service:WLANConfiguration:1 @ /upnp/control/wlanconfig1
    24	urn:dslforum-org:service:WLANConfiguration:2 @ /upnp/control/wlanconfig2
    25	urn:dslforum-org:service:WLANConfiguration:3 @ /upnp/control/wlanconfig3
    26	urn:dslforum-org:service:Hosts:1 @ /upnp/control/hosts
    27	urn:dslforum-org:service:LANEthernetInterfaceConfig:1 @ /upnp/control/lanethernetifcfg
    28	urn:dslforum-org:service:LANHostConfigManagement:1 @ /upnp/control/lanhostconfigmgm
    29	urn:dslforum-org:service:WANCommonInterfaceConfig:1 @ /upnp/control/wancommonifconfig1
    30	urn:dslforum-org:service:WANDSLInterfaceConfig:1 @ /upnp/control/wandslifconfig1
    31	urn:dslforum-org:service:WANDSLLinkConfig:1 @ /upnp/control/wandsllinkconfig1
    32	urn:dslforum-org:service:WANEthernetLinkConfig:1 @ /upnp/control/wanethlinkconfig1
    33	urn:dslforum-org:service:WANPPPConnection:1 @ /upnp/control/wanpppconn1
    34	urn:dslforum-org:service:WANIPConnection:1 @ /upnp/control/wanipconnection1
-------------------------------------------
[action] Call with extraction of return arguments.
[action] Call with parameters/arguments to be passed.
[action] Attempt 1 of calling GetInfo on urn:dslforum-org:service:DeviceInfo:1
[HTTP] Prepare HTTP request to URL: 'http://192.168.178.1:49000/upnp/control/deviceinfo'.
[HTTP] Printing the XML to be posted (between lines):
---------------------------------
<?xml version="1.0"?>
<s:Envelope s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Header><h:InitChallenge xmlns:h="http://soap-authentication.org/digest/2001/10/" s:mustUnderstand="1"><UserID>doorbell</UserID></h:InitChallenge ></s:Header><s:Body><u:GetInfo xmlns:u='urn:dslforum-org:service:DeviceInfo:1'></u:GetInfo></s:Body></s:Envelope>
---------------------------------

[HTTP] POSTing the XML to SOAPACTION: 'urn:dslforum-org:service:DeviceInfo:1#GetInfo'
[HTTP] Request code: 200
[HTTP] Printing received reply (between lines):
---------------------------------
<?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>860CA91E416DB466</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></errorDescription>
</UPnPError>
</detail>
</s:Fault>
</s:Body>
</s:Envelope>
---------------------------------

[action] Response status: Unauthenticated
[action]<warning> Got an unauthenticated error. Using the new nonce and trying again.
[takeNonce] Extracted the nonce '860CA91E416DB466' from the last request.
[takeNonce] Your secret is 'doorbell:F!Box SOAP-Auth:Drei3Zehn!'
[takeNonce] Your hashed secret is '6cfab983fe2515a5e747d280a6161d8a'
[action] Attempt 2 of calling GetInfo on urn:dslforum-org:service:DeviceInfo:1
[generateAuthToken] The auth token is '6a1f77eae5b0ff82c2b790ac58fff57c'.
[HTTP] Prepare HTTP request to URL: 'http://192.168.178.1:49000/upnp/control/deviceinfo'.
[HTTP] Printing the XML to be posted (between lines):
---------------------------------
<?xml version="1.0"?>
<s:Envelope s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Header><h:ClientAuth xmlns:h="http://soap-authentication.org/digest/2001/10/" s:mustUnderstand="1"><Nonce>860CA91E416DB466</Nonce><Auth>6a1f77eae5b0ff82c2b790ac58fff57c</Auth><UserID>doorbell</UserID><Realm>F!Box SOAP-Auth</Realm></h:ClientAuth></s:Header><s:Body><u:GetInfo xmlns:u='urn:dslforum-org:service:DeviceInfo:1'></u:GetInfo></s:Body></s:Envelope>
---------------------------------

[HTTP] POSTing the XML to SOAPACTION: 'urn:dslforum-org:service:DeviceInfo:1#GetInfo'
[HTTP] Request code: 200
Fatal exception 9(LoadStoreAlignmentCause):
epc1=0x402091b0, epc2=0x00000000, epc3=0x00000000, excvaddr=0x00000c11, depc=0x00000000

Exception (9):
epc1=0x402091b0 epc2=0x00000000 epc3=0x00000000 excvaddr=0x00000c11 depc=0x00000000

>>>stack>>>

ctx: cont
sp: 3ffffa90 end: 3fffffc0 offset: 01a0
3ffffc30:  00000282 00000281 3ffffc60 40207760  
3ffffc40:  3fff56d4 3ffe8c9d 3ffffc60 40208598  
3ffffc50:  000000c8 3ffe8c9d 3ffeecb8 40203bcd  
3ffffc60:  00000000 00000000 3fff5034 3fff505c  
3ffffc70:  000d000f 00000020 0001bf68 40001388  
3ffffc80:  3fff5074 0018001f 0000094b 40100600  
3ffffc90:  000045e8 800008bd 3fff509c 0000006f  
3ffffca0:  00fef7e4 3fff500c 0011001f 00000000  
3ffffcb0:  3fff4f00 00000030 80fffd60 00000000  
3ffffcc0:  00000000 000000c8 00000281 00000000  
3ffffcd0:  0000000a 00000000 3ffffdc8 8020508a  
3ffffce0:  00000000 3fff51ac 3fff5100 0018001f  
3ffffcf0:  80004e4f 3fff5100 0018001f 80205177  
3ffffd00:  00303000 00000030 80fffdb0 4020508a  
3ffffd10:  3fff0634 0000002d 3fff596c 0281028f  
3ffffd20:  00ff4f74 3ffffdb0 3ffffd60 402053a4  
3ffffd30:  3ffffd6c 3ffffd60 3ffffd78 00000001  
3ffffd40:  3ffffdb0 0000002d 3ffffdb0 3ffffdb0  
3ffffd50:  3ffffdbc 3ffeecb8 3ffffe30 40203dc1  
3ffffd60:  3fff4fd4 002d002f 00fffdb0 3fff4774  
3ffffd70:  01fa01ff 00fffde0 3fff4fac 0018001f  
3ffffd80:  00fffe3c 3ffeecb8 3ffffdb0 402053d4  
3ffffd90:  3ffffde0 3ffffe3c 3fffff48 3ffffe48  
3ffffda0:  3ffffe3c 3ffeecb8 3fffff48 40203f38  
3ffffdb0:  3fff4f74 002d002f 0000313a 3fff4d6c  
3ffffdc0:  01fa01ff 00000025 3fff4d44 0018001f  
3ffffdd0:  00000007 3fff7b6c 0025002f 00000002  
3ffffde0:  3fff7ba4 002d002f 00fffe3c 3fff456c  
3ffffdf0:  01fa01ff 00fffe90 3ffffe3c 402053a4  
3ffffe00:  3ffffe30 00000000 3ffffe3c 402053d4  
3ffffe10:  3ffffe90 3fffff60 3ffeecb8 00000002  
3ffffe20:  3ffffe54 3fffff60 3ffeecb8 402044c3  
3ffffe30:  3fff4d00 004e004f 80fe8f95 49746547  
3ffffe40:  006f666e 87000007 3fff7c14 0025002f  
3ffffe50:  00ffff6c 3fff05d4 000f000f 002053a4  
3ffffe60:  3ffffe9c 3ffffe90 3fffff48 00000000  
3ffffe70:  3fffff6c 3ffeecb8 3fffff78 3fffff6c  
3ffffe80:  3fffff60 3ffeecb8 3fffff78 402045c5  
3ffffe90:  49746547 006f666e 871c331f 3fff7b0c  
3ffffea0:  0025002f 00000025 3fffff78 40205177  
3ffffeb0:  00000007 3ffef6e0 3ffe8f95 40204a6d  
3ffffec0:  3fffff48 00000000 3fffff6c 402051c0  
3ffffed0:  3ffeecb8 3fffff6c 3ffe86cb 3fffff00  
3ffffee0:  3ffeecb8 3fffff78 3ffef6e0 402011c5  
3ffffef0:  3fffff00 00000003 feefeffe feefeffe  
3fffff00:  3fff0784 000c000f 00efeffe feefef00  
3fffff10:  feefeffe 80efeffe 3fff0584 0012001f  
3fffff20:  00efeffe feefef00 feefeffe 80efeffe  
3fffff30:  5577654e 6d695470 89ef0065 feefef00  
3fffff40:  feefeffe 80efeffe feefef00 feefeffe  
3fffff50:  80efeffe feefef00 feefeffe 80efeffe  
3fffff60:  3fff51d4 0281028f 00efeffe 49746547  
3fffff70:  006f666e 87efeffe 3fff3f0c 0025002f  
3fffff80:  00efeffe feefeffe feefeffe feefeffe  
3fffff90:  feefeffe feefeffe feefeffe 3ffef75c  
3fffffa0:  3fffdad0 00000000 3ffef71c 40205ff4  
3fffffb0:  feefeffe feefeffe 3ffe84fc 40100b95  
<<<stack<<<

 ets Jan  8 2013,rst cause:2, boot mode:(3,7)

load 0x4010f000, len 1392, room 16 
tail 0
chksum 0xd0
csum 0xd0
v3d128e5c
~ld

@jipp
Copy link
Author

jipp commented Mar 11, 2020

tested now the original sketch for dialing out - no crash and no success:

[action] Call with extraction of return arguments.
[action] Call with parameters/arguments to be passed.
[action] Attempt 1 of calling X_AVM-DE_DialNumber on urn:dslforum-org:service:X_VoIP:1
[HTTP] Prepare HTTP request to URL: 'http://192.168.178.1:49000'.
[HTTP] Printing the XML to be posted (between lines):
---------------------------------
<?xml version="1.0"?>
<s:Envelope s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Header><h:InitChallenge xmlns:h="http://soap-authentication.org/digest/2001/10/" s:mustUnderstand="1"><UserID>doorbell</UserID></h:InitChallenge ></s:Header><s:Body><u:X_AVM-DE_DialNumber xmlns:u='urn:dslforum-org:service:X_VoIP:1'><NewX_AVM-DE_PhoneNumber>**1</NewX_AVM-DE_PhoneNumber></u:X_AVM-DE_DialNumber></s:Body></s:Envelope>
---------------------------------

[HTTP] POSTing the XML to SOAPACTION: 'urn:dslforum-org:service:X_VoIP:1#X_AVM-DE_DialNumber'
[HTTP] Request code: 500
[HTTP] Printing received reply (between lines):
---------------------------------

---------------------------------

[action] Response status: 
[action]<error> Got an empty reply (e.g. http error). Trying again in 10s.

@Aypac
Copy link
Owner

Aypac commented Mar 11, 2020

Hmmm, mysterious. The error message you get means: "Attempt to read/write memory with an unaligned address (for example, trying to read/write a 32-bit word at an address that is not a multiple of 4)", see more here.

For the other program; I guess you already did this, rigtht?
Can you also show me the code you are using? I just realized, that the line
[HTTP] Prepare HTTP request to URL: 'http://192.168.178.1:49000'.
should read
[HTTP] Prepare HTTP request to URL: 'http://192.168.178.1:49000/upnp/control/x_voip'.
which makes me wonder if the request is proper.

@jipp
Copy link
Author

jipp commented Mar 11, 2020

the crash got simply fixed by changing the usb port on the laptop - not reliable power ....

here the code for the router info. seems to have a problem wit hthis "http://192.168.178.1:49000/upnp/control/deviceinfo" -> not found webpage error 404 when pasted to a browser

code
/**
 * simple-router-info.ino
 *  René Vollmer
 *  Example code for the home-indicator-project [ https://www.instructables.com/id/Who-Is-Home-Indicator-aka-Weasley-Clock-Based-on-T ].
 *  
 * Please adjust your data below.
 *  
 * Created on: 10.03.2020
 *
 */

 
#if defined(ESP8266)
    //Imports for ESP8266
    #include <ESP8266WiFi.h>
    #include <ESP8266WiFiMulti.h>
    #include <ESP8266HTTPClient.h>
    ESP8266WiFiMulti WiFiMulti;
#elif defined(ESP32)
    //Imports for ESP32
    #include <WiFi.h>
    #include <WiFiMulti.h>
    #include <HTTPClient.h>
    WiFiMulti WiFiMulti;
#endif

#include <tr064.h>

//-------------------------------------------------------------------------------------
// Put your router settings here
//-------------------------------------------------------------------------------------

// Wifi network name (SSID)
const char* wifi_ssid = "aaaaaaa"; 

// Wifi network password
const char* wifi_password = "bbbbbbb";

// The username if you created an account, "admin" otherwise
const char* fuser = "ddddddd";

// The password for the aforementioned account.
const char* fpass = "cccccc";

// IP address of your router. This should be "192.168.179.1" for most FRITZ!Boxes
const char* IP = "192.168.178.1";

// Port of the API of your router. This should be 49000 for all TR-064 devices.
const int PORT = 49000;

//-------------------------------------------------------------------------------------

// TR-064 connection
TR064 connection(PORT, IP, fuser, fpass);

//###########################################################################################
//############################ OKAY, LET'S DO THIS! #########################################
//###########################################################################################

void setup() {
    // You might want to change the baud-rate
    Serial.begin(115200);
    if(Serial) Serial.setDebugOutput(true);

    // Clear some space in the serial monitor.
    if(Serial) {
        Serial.println();
        Serial.println();
        Serial.println();
    }

    // **************************************************
    // Wait a few secs for warm-up (dunno why, was in the default code for http connections).
    // You might be able to remove this block
    for (uint8_t t = 4; t > 0; t--) {
        if(Serial) Serial.printf("[SETUP] WAIT %d...\n", t);
        delay(1000);
        if(Serial) Serial.flush();
    }
    // **************************************************


    // Connect to wifi
    ensureWIFIConnection();

    // Initialize the TR-064 library
    // (IMPORTANT!)
    if(Serial) Serial.printf("Initialize TR-064 connection\n\n");
    // Available debug levels are:
    //  DEBUG_NONE, DEBUG_ERROR, DEBUG_WARNING, DEBUG_INFO, DEBUG_VERBOSE
    connection.debug_level = DEBUG_VERBOSE;
    connection.init();

        ensureWIFIConnection();
    
    if(Serial) Serial.println("-------------------------------------------");

    String params[][2] = {{}};
    String req[][2] = {{"NewModelName", ""}, {"NewSoftwareVersion", ""}, {"NewUpTime", ""}};
    connection.action("urn:dslforum-org:service:DeviceInfo:1", "GetInfo", params, 0, req, 3);

    if(Serial) Serial.println("[main] Info retrieved.");
    if(Serial) Serial.println("[main] Router Model: " + req[0][1]);
    if(Serial) Serial.println("[main] Router software version: " + req[1][1]);
    if(Serial) Serial.println("[main] Router up time: " + req[2][1] + "s");
    
    delay(5000);
}

void loop() {

}

/**
 * Makes sure there is a WIFI connection and waits until it is (re-)established.
 */
void ensureWIFIConnection() {
    if ((WiFiMulti.run() != WL_CONNECTED)) {
        WiFiMulti.addAP(wifi_ssid, wifi_password);
        WiFiMulti.run();
        while ((WiFiMulti.run() != WL_CONNECTED)) {
            delay(500);
        }
    }
}

@jipp
Copy link
Author

jipp commented Mar 11, 2020

here the log and sketch for the caller.ino (I checked the link you posted and enabled the check-box)

log
[action] Call with extraction of return arguments.
[action] Call with parameters/arguments to be passed.
[action] Attempt 1 of calling X_AVM-DE_DialNumber on urn:dslforum-org:service:X_VoIP:1
[HTTP] Prepare HTTP request to URL: 'http://192.168.178.1:49000'.
[HTTP] Printing the XML to be posted (between lines):
---------------------------------
<?xml version="1.0"?>
<s:Envelope s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Header><h:InitChallenge xmlns:h="http://soap-authentication.org/digest/2001/10/" s:mustUnderstand="1"><UserID>doorbell</UserID></h:InitChallenge ></s:Header><s:Body><u:X_AVM-DE_DialNumber xmlns:u='urn:dslforum-org:service:X_VoIP:1'><NewX_AVM-DE_PhoneNumber>**1</NewX_AVM-DE_PhoneNumber></u:X_AVM-DE_DialNumber></s:Body></s:Envelope>
---------------------------------

[HTTP] POSTing the XML to SOAPACTION: 'urn:dslforum-org:service:X_VoIP:1#X_AVM-DE_DialNumber'
[HTTP] Request code: 500
[HTTP] Printing received reply (between lines):
---------------------------------

---------------------------------

[action] Response status: 
[action]<error> Got an empty reply (e.g. http error). Trying again in 10s.
[action] Attempt 2 of calling X_AVM-DE_DialNumber on urn:dslforum-org:service:X_VoIP:1
[HTTP] Prepare HTTP request to URL: 'http://192.168.178.1:49000'.
[HTTP] Printing the XML to be posted (between lines):
---------------------------------
<?xml version="1.0"?>
<s:Envelope s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Header><h:InitChallenge xmlns:h="http://soap-authentication.org/digest/2001/10/" s:mustUnderstand="1"><UserID>doorbell</UserID></h:InitChallenge ></s:Header><s:Body><u:X_AVM-DE_DialNumber xmlns:u='urn:dslforum-org:service:X_VoIP:1'><NewX_AVM-DE_PhoneNumber>**1</NewX_AVM-DE_PhoneNumber></u:X_AVM-DE_DialNumber></s:Body></s:Envelope>
---------------------------------

[HTTP] POSTing the XML to SOAPACTION: 'urn:dslforum-org:service:X_VoIP:1#X_AVM-DE_DialNumber'
[HTTP] Request code: 500
[HTTP] Printing received reply (between lines):
---------------------------------

---------------------------------

[action] Response status: 
[action]<error> Got an empty reply (e.g. http error). Trying again in 10s.
[action] Attempt 3 of calling X_AVM-DE_DialNumber on urn:dslforum-org:service:X_VoIP:1
[HTTP] Prepare HTTP request to URL: 'http://192.168.178.1:49000'.
[HTTP] Printing the XML to be posted (between lines):
---------------------------------
<?xml version="1.0"?>
<s:Envelope s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Header><h:InitChallenge xmlns:h="http://soap-authentication.org/digest/2001/10/" s:mustUnderstand="1"><UserID>doorbell</UserID></h:InitChallenge ></s:Header><s:Body><u:X_AVM-DE_DialNumber xmlns:u='urn:dslforum-org:service:X_VoIP:1'><NewX_AVM-DE_PhoneNumber>**1</NewX_AVM-DE_PhoneNumber></u:X_AVM-DE_DialNumber></s:Body></s:Envelope>
---------------------------------

[HTTP] POSTing the XML to SOAPACTION: 'urn:dslforum-org:service:X_VoIP:1#X_AVM-DE_DialNumber'
[HTTP] Request code: 500
[HTTP] Printing received reply (between lines):
---------------------------------

---------------------------------

[action] Response status: 
[action]<error> Got an empty reply (e.g. http error). Trying again in 10s.
[action] Attempt 4 of calling X_AVM-DE_DialNumber on urn:dslforum-org:service:X_VoIP:1
[HTTP] Prepare HTTP request to URL: 'http://192.168.178.1:49000'.
[HTTP] Printing the XML to be posted (between lines):
---------------------------------
<?xml version="1.0"?>
<s:Envelope s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Header><h:InitChallenge xmlns:h="http://soap-authentication.org/digest/2001/10/" s:mustUnderstand="1"><UserID>doorbell</UserID></h:InitChallenge ></s:Header><s:Body><u:X_AVM-DE_DialNumber xmlns:u='urn:dslforum-org:service:X_VoIP:1'><NewX_AVM-DE_PhoneNumber>**1</NewX_AVM-DE_PhoneNumber></u:X_AVM-DE_DialNumber></s:Body></s:Envelope>
---------------------------------

[HTTP] POSTing the XML to SOAPACTION: 'urn:dslforum-org:service:X_VoIP:1#X_AVM-DE_DialNumber'
[HTTP] Request code: 500
[HTTP] Printing received reply (between lines):
---------------------------------

---------------------------------

[action] Response status: 
[action]<error> Got an empty reply (e.g. http error). Trying again in 10s.
[action]<error> Giving up the request.
...
file caller.ino
/**
 * caller.ino
 *  Oliver-André Urban
 *   based on
 *    home-indicator.ino
 *      by René Vollmer
 * 
 *  Example code for placing internal DECT phone calls
 * 
 *  Please adjust your data below.
 *  
 *  created on: 07.06.2017
 *  latest update: 11.06.2019
 */

#include <Arduino.h>
#if defined(ESP8266)
	//Imports for ESP8266
	#include <ESP8266WiFi.h>
	#include <ESP8266WiFiMulti.h>
	#include <ESP8266HTTPClient.h>
	ESP8266WiFiMulti WiFiMulti;
#elif defined(ESP32)
	//Imports for ESP32
	#include <WiFi.h>
	#include <WiFiMulti.h>
	#include <HTTPClient.h>
	WiFiMulti WiFiMulti;
#endif

#include <tr064.h>


// Flash BUTTON - you can connect a separate button to this pin or an opto-coupler 
// for example: use a resistor and an opto-coupler to connect to a doorbell
#define BUTTON 0


//-------------------------------------------------------------------------------------
// Put your router settings here
//-------------------------------------------------------------------------------------

// Wifi network name (SSID)
const char* wifi_ssid = "aaaaaa"; 

// Wifi network password
const char* wifi_password = "bbbbbb";

// The username if you created an account, "admin" otherwise
const char* fuser = "cccccc";

// The password for the aforementioned account.
const char* fpass = "ddddddd";

// IP address of your router. This should be "192.168.179.1" for most FRITZ!Boxes
const char* IP = "192.168.178.1";

// Port of the API of your router. This should be 49000 for all TR-064 devices.
const int PORT = 49000;

// -------------------------------------------------------------------------------------

// TR-064 connection
TR064 connection(PORT, IP, fuser, fpass);


void setup() {
	Serial.begin(115200);
	// Wait a few secs for warm-up (dunno why, was in the default code for http connections).
	delay(5000);

	// Connect to wifi
	ensureWIFIConnection();
	
	// Port as input
	pinMode(BUTTON, INPUT);

connection.debug_level = DEBUG_VERBOSE;
 delay(3000);
callWahlhilfe();
}

void loop() {
	int button_state = digitalRead(BUTTON);
	if (digitalRead(BUTTON) == LOW) {
		if (Serial) {
			//Serial.println();
			//Serial.printf("Button pressed");
		}
		callWahlhilfe();
		// callDect();
		// char* status=getStatus();
		delay(20000);
	} else {
		if (Serial) {
			//Serial.println();
			//Serial.printf("Button not pressed");
		}
		delay(50);
	}
}


void callWahlhilfe() {
	ensureWIFIConnection();

	String params[][2] = {{"NewX_AVM-DE_PhoneNumber", "**1"}};
	String req[][2] = {{}};

	connection.action("urn:dslforum-org:service:X_VoIP:1", "X_AVM-DE_DialNumber", params, 1, req, 0);
}

void callDect() {
	ensureWIFIConnection();

	String params[][2] = {{"NewAIN", "12345 0123456"}, {"NewSwitchState", "TOGGLE"}};
	connection.action("urn:dslforum-org:service:X_AVM-DE_Homeauto:1", "SetSwitch", params, 2);
}

String getStatus() {
	String paramsb[][2] = {{"NewAIN", "12345 0123456"}};
	String reqb[][2] = {{"NewDeviceId", ""}, {"NewSwitchState", ""}};
	connection.action("urn:dslforum-org:service:X_AVM-DE_Homeauto:1", "GetSpecificDeviceInfos", paramsb, 1, reqb, 2);
	return reqb[1][1];
}


/**
 * Makes sure there is a WIFI connection and waits until it is (re-)established.
 */
void ensureWIFIConnection() {
	if ((WiFiMulti.run() != WL_CONNECTED)) {
		WiFiMulti.addAP(wifi_ssid, wifi_password);
     Serial.println("starting");
		while ((WiFiMulti.run() != WL_CONNECTED)) {
     Serial.print(".");
			delay(100);
		}
	}
}

@Aypac
Copy link
Owner

Aypac commented Mar 11, 2020

here the code for the router info. seems to have a problem wit hthis "http://192.168.178.1:49000/upnp/control/deviceinfo" -> not found webpage error 404 when pasted to a browser

Not sure what you are saying here: does it work from the ESP or does it not? If it does not work, can you post the log again?

Have you tried putting in **9 as a number (call all phones) for the caller example? Just thinking because if I place a request for a non-existing MAC I get the 500 error.
@kirk-loeten have you maybe encountered this error before?

@jipp
Copy link
Author

jipp commented Mar 12, 2020

Hi

just reducing the troubleshooting to the simple-router-info.ino in a first trial to avoid config problems.
Took your sketch and just entered my credentials and ip. also moved the loop content to the setup. to avoid multiple executions.

the syslog messages on the fritz box shows that the user authenticated correct.

the log messages from the sketch below:

show log
21:03:13.456 -> rl�l⸮⸮|�⸮l⸮|�⸮l⸮b|⸮⸮�⸮�⸮r⸮b⸮b⸮⸮nn⸮lnn⸮⸮⸮b�p⸮⸮lrlrlp⸮n⸮��⸮l⸮⸮bn⸮|�l⸮⸮b⸮⸮nn⸮�l⸮⸮l`�⸮��nnl`���nr⸮⸮⸮nb⸮�l�r⸮⸮nb⸮�l⸮�⸮�ll⸮�⸮l`�⸮⸮n⸮�
21:03:13.557 -> 
21:03:13.557 -> 
21:03:13.557 -> [SETUP] WAIT 4...
21:03:13.662 -> scandone
21:03:13.662 -> state: 0 -> 2 (b0)
21:03:13.662 -> state: 2 -> 3 (0)
21:03:13.697 -> state: 3 -> 5 (10)
21:03:13.697 -> add 0
21:03:13.697 -> aid 3
21:03:13.697 -> cnt 
21:03:13.697 -> 
21:03:13.697 -> connected with wobilix, channel 11
21:03:13.697 -> dhcp client start...
21:03:13.730 -> ip:192.168.178.39,mask:255.255.255.0,gw:192.168.178.1
21:03:14.551 -> [SETUP] WAIT 3...
21:03:15.556 -> [SETUP] WAIT 2...
21:03:16.565 -> [SETUP] WAIT 1...
21:03:17.557 -> Initialize TR-064 connection
21:03:17.557 -> 
21:03:17.557 -> [init] Started initialization of the TR-064 library.
21:03:17.660 -> [HTTP] Prepare HTTP request to URL: 'http://192.168.178.1:49000/tr64desc.xml'.
21:03:17.660 -> [HTTP] GET...
21:03:17.660 -> [HTTP] Request code: 200
21:03:17.864 -> [HTTP] Printing received reply (between lines):
21:03:17.864 -> ---------------------------------
21:03:17.864 -> <?xml version="1.0"?>
21:03:17.864 -> <root xmlns="urn:dslforum-org:device-1-0">
21:03:17.864 -> <specVersion>
21:03:17.864 -> <major>1</major>
21:03:17.864 -> <minor>0</minor>
21:03:17.864 -> </specVersion>
21:03:17.864 -> <systemVersion>
21:03:17.864 -> <HW>220</HW>
21:03:17.864 -> <Major>148</Major>
21:03:17.864 -> <Minor>7</Minor>
21:03:17.864 -> <Patch>12</Patch>
21:03:17.864 -> <Buildnumber>72225</Buildnumber>
21:03:17.864 -> <Display>148.07.12</Display>
21:03:17.864 -> </systemVersion>
21:03:17.864 -> <device>
21:03:17.864 -> <deviceType>urn:dslforum-org:device:InternetGatewayDevice:1</deviceType>
21:03:17.864 -> <friendlyName>FRITZ!Box 6590 Cable</friendlyName>
21:03:17.864 -> <manufacturer>AVM</manufacturer>
21:03:17.864 -> <manufacturerURL>www.avm.de</manufacturerURL>
21:03:17.864 -> <modelDescription>FRITZ!Box 6590 Cable</modelDescription>
21:03:17.864 -> <modelName>FRITZ!Box 6590 Cable</modelName>
21:03:17.864 -> <modelNumber> - avm</modelNumber>
21:03:17.864 -> <modelURL>www.avm.de</modelURL>
21:03:17.864 -> <UDN>uuid:739f2409-bccb-40e7-8e6c-444E6DE56EBF</UDN>
21:03:17.864 -> <iconList>
21:03:17.864 -> <icon>
21:03:17.864 -> <mimetype>image/gif</mimetype>
21:03:17.864 -> <width>118</width>
21:03:17.864 -> <height>119</height>
21:03:17.864 -> <depth>8</depth>
21:03:17.864 -> <url>/ligd.gif</url>
21:03:17.864 -> </icon>
21:03:17.864 -> </iconList>
21:03:17.864 -> <serviceList>
21:03:17.864 -> <service>
21:03:17.864 -> <serviceType>urn:dslforum-org:service:DeviceInfo:1</serviceType>
21:03:17.967 -> <serviceId>urn:DeviceInfo-com:serviceId:DeviceInfo1</serviceId>
21:03:17.967 -> <controlURL>/upnp/control/deviceinfo</controlURL>
21:03:17.967 -> <eventSubURL>/upnp/control/deviceinfo</eventSubURL>
21:03:17.967 -> <SCPDURL>/deviceinfoSCPD.xml</SCPDURL>
21:03:17.967 -> </service>
21:03:17.967 -> <service>
21:03:17.967 -> <serviceType>urn:dslforum-org:service:DeviceConfig:1</serviceType>
21:03:17.967 -> <serviceId>urn:DeviceConfig-com:serviceId:DeviceConfig1</serviceId>
21:03:17.967 -> <controlURL>/upnp/control/deviceconfig</controlURL>
21:03:17.967 -> <eventSubURL>/upnp/control/deviceconfig</eventSubURL>
21:03:17.967 -> <SCPDURL>/deviceconfigSCPD.xml</SCPDURL>
21:03:17.967 -> </service>
21:03:17.967 -> <service>
21:03:17.967 -> <serviceType>urn:dslforum-org:service:Layer3Forwarding:1</serviceType>
21:03:17.967 -> <serviceId>urn:Layer3Forwarding-com:serviceId:Layer3Forwarding1</serviceId>
21:03:17.967 -> <controlURL>/upnp/control/layer3forwarding</controlURL>
21:03:17.967 -> <eventSubURL>/upnp/control/layer3forwarding</eventSubURL>
21:03:17.967 -> <SCPDURL>/layer3forwardingSCPD.xml</SCPDURL>
21:03:17.967 -> </service>
21:03:17.967 -> <service>
21:03:17.967 -> <serviceType>urn:dslforum-org:service:LANConfigSecurity:1</serviceType>
21:03:17.967 -> <serviceId>urn:LANConfigSecurity-com:serviceId:LANConfigSecurity1</serviceId>
21:03:18.033 -> <controlURL>/upnp/control/lanconfigsecurity</controlURL>
21:03:18.033 -> <eventSubURL>/upnp/control/lanconfigsecurity</eventSubURL>
21:03:18.033 -> <SCPDURL>/lanconfigsecuritySCPD.xml</SCPDURL>
21:03:18.033 -> </service>
21:03:18.033 -> <service>
21:03:18.033 -> <serviceType>urn:dslforum-org:service:ManagementServer:1</serviceType>
21:03:18.033 -> <serviceId>urn:ManagementServer-com:serviceId:ManagementServer1</serviceId>
21:03:18.033 -> <controlURL>/upnp/control/mgmsrv</controlURL>
21:03:18.033 -> <eventSubURL>/upnp/control/mgmsrv</eventSubURL>
21:03:18.033 -> <SCPDURL>/mgmsrvSCPD.xml</SCPDURL>
21:03:18.033 -> </service>
21:03:18.033 -> <service>
21:03:18.033 -> <serviceType>urn:dslforum-org:service:Time:1</serviceType>
21:03:18.033 -> <serviceId>urn:Time-com:serviceId:Time1</serviceId>
21:03:18.033 -> <controlURL>/upnp/control/time</controlURL>
21:03:18.033 -> <eventSubURL>/upnp/control/time</eventSubURL>
21:03:18.033 -> <SCPDURL>/timeSCPD.xml</SCPDURL>
21:03:18.033 -> </service>
21:03:18.033 -> <service>
21:03:18.033 -> <serviceType>urn:dslforum-org:service:UserInterface:1</serviceType>
21:03:18.033 -> <serviceId>urn:UserInterface-com:serviceId:UserInterface1</serviceId>
21:03:18.033 -> <controlURL>/upnp/control/userif</controlURL>
21:03:18.033 -> <eventSubURL>/upnp/control/userif</eventSubURL>
21:03:18.033 -> <SCPDURL>/userifSCPD.xml</SCPDURL>
21:03:18.033 -> </service>
21:03:18.033 -> <service>
21:03:18.033 -> <serviceType>urn:dslforum-org:service:X_AVM-DE_Storage:1</serviceType>
21:03:18.141 -> <serviceId>urn:X_AVM-DE_Storage-com:serviceId:X_AVM-DE_Storage1</serviceId>
21:03:18.141 -> <controlURL>/upnp/control/x_storage</controlURL>
21:03:18.141 -> <eventSubURL>/upnp/control/x_storage</eventSubURL>
21:03:18.141 -> <SCPDURL>/x_storageSCPD.xml</SCPDURL>
21:03:18.141 -> </service>
21:03:18.141 -> <service>
21:03:18.141 -> <serviceType>urn:dslforum-org:service:X_AVM-DE_WebDAVClient:1</serviceType>
21:03:18.141 -> <serviceId>urn:X_AVM-DE_WebDAV-com:serviceId:X_AVM-DE_WebDAVClient1</serviceId>
21:03:18.141 -> <controlURL>/upnp/control/x_webdav</controlURL>
21:03:18.141 -> <eventSubURL>/upnp/control/x_webdav</eventSubURL>
21:03:18.141 -> <SCPDURL>/x_webdavSCPD.xml</SCPDURL>
21:03:18.141 -> </service>
21:03:18.141 -> <service>
21:03:18.141 -> <serviceType>urn:dslforum-org:service:X_AVM-DE_UPnP:1</serviceType>
21:03:18.141 -> <serviceId>urn:X_AVM-DE_UPnP-com:serviceId:X_AVM-DE_UPnP1</serviceId>
21:03:18.141 -> <controlURL>/upnp/control/x_upnp</controlURL>
21:03:18.141 -> <eventSubURL>/upnp/control/x_upnp</eventSubURL>
21:03:18.141 -> <SCPDURL>/x_upnpSCPD.xml</SCPDURL>
21:03:18.141 -> </service>
21:03:18.141 -> <service>
21:03:18.141 -> <serviceType>urn:dslforum-org:service:X_AVM-DE_Speedtest:1</serviceType>
21:03:18.141 -> <serviceId>urn:X_AVM-DE_Speedtest-com:serviceId:X_AVM-DE_Speedtest1</serviceId>
21:03:18.210 -> <controlURL>/upnp/control/x_speedtest</controlURL>
21:03:18.210 -> <eventSubURL>/upnp/control/x_speedtest</eventSubURL>
21:03:18.210 -> <SCPDURL>/x_speedtestSCPD.xml</SCPDURL>
21:03:18.210 -> </service>
21:03:18.210 -> <service>
21:03:18.210 -> <serviceType>urn:dslforum-org:service:X_AVM-DE_RemoteAccess:1</serviceType>
21:03:18.210 -> <serviceId>urn:X_AVM-DE_RemoteAccess-com:serviceId:X_AVM-DE_RemoteAccess1</serviceId>
21:03:18.210 -> <controlURL>/upnp/control/x_remote</controlURL>
21:03:18.210 -> <eventSubURL>/upnp/control/x_remote</eventSubURL>
21:03:18.210 -> <SCPDURL>/x_remoteSCPD.xml</SCPDURL>
21:03:18.210 -> </service>
21:03:18.210 -> <service>
21:03:18.210 -> <serviceType>urn:dslforum-org:service:X_AVM-DE_MyFritz:1</serviceType>
21:03:18.210 -> <serviceId>urn:X_AVM-DE_MyFritz-com:serviceId:X_AVM-DE_MyFritz1</serviceId>
21:03:18.210 -> <controlURL>/upnp/control/x_myfritz</controlURL>
21:03:18.210 -> <eventSubURL>/upnp/control/x_myfritz</eventSubURL>
21:03:18.210 -> <SCPDURL>/x_myfritzSCPD.xml</SCPDURL>
21:03:18.210 -> </service>
21:03:18.210 -> <service>
21:03:18.210 -> <serviceType>urn:dslforum-org:service:X_VoIP:1</serviceType>
21:03:18.210 -> <serviceId>urn:X_VoIP-com:serviceId:X_VoIP1</serviceId>
21:03:18.210 -> <controlURL>/upnp/control/x_voip</controlURL>
21:03:18.210 -> <eventSubURL>/upnp/control/x_voip</eventSubURL>
21:03:18.312 -> <SCPDURL>/x_voipSCPD.xml</SCPDURL>
21:03:18.312 -> </service>
21:03:18.312 -> <service>
21:03:18.312 -> <serviceType>urn:dslforum-org:service:X_AVM-DE_OnTel:1</serviceType>
21:03:18.312 -> <serviceId>urn:X_AVM-DE_OnTel-com:serviceId:X_AVM-DE_OnTel1</serviceId>
21:03:18.312 -> <controlURL>/upnp/control/x_contact</controlURL>
21:03:18.312 -> <eventSubURL>/upnp/control/x_contact</eventSubURL>
21:03:18.312 -> <SCPDURL>/x_contactSCPD.xml</SCPDURL>
21:03:18.312 -> </service>
21:03:18.312 -> <service><serviceType>urn:dslforum-org:service:X_AVM-DE_Dect:1</serviceType><serviceId>urn:X_AVM-DE_Dect-com:serviceId:X_AVM-DE_Dect1</serviceId><controlURL>/upnp/control/x_dect</controlURL><eventSubURL>/upnp/control/x_dect</eventSubURL><SCPDURL>/x_dectSCPD.xml</SCPDURL></service>
21:03:18.312 -> <service><serviceType>urn:dslforum-org:service:X_AVM-DE_TAM:1</serviceType><serviceId>urn:X_AVM-DE_TAM-com:serviceId:X_AVM-DE_TAM1</serviceId><controlURL>/upnp/control/x_tam</controlURL><eventSubURL>/upnp/control/x_tam</eventSubURL><SCPDURL>/x_tamSCPD.xml</SCPDURL></service>
21:03:18.312 -> <service>
21:03:18.312 -> <serviceType>urn:dslforum-org:service:X_AVM-DE_AppSetup:1</serviceType>
21:03:18.312 -> <serviceId>urn:X_AVM-DE_AppSetup-com:serviceId:X_AVM-DE_AppSetup1</serviceId>
21:03:18.416 -> <controlURL>/upnp/control/x_appsetup</controlURL>
21:03:18.416 -> <eventSubURL>/upnp/control/x_appsetup</eventSubURL>
21:03:18.416 -> <SCPDURL>/x_appsetupSCPD.xml</SCPDURL>
21:03:18.416 -> </service>
21:03:18.416 -> <service>
21:03:18.416 -> <serviceType>urn:dslforum-org:service:X_AVM-DE_Homeauto:1</serviceType>
21:03:18.416 -> <serviceId>urn:X_AVM-DE_Homeauto-com:serviceId:X_AVM-DE_Homeauto1</serviceId>
21:03:18.416 -> <controlURL>/upnp/control/x_homeauto</controlURL>
21:03:18.416 -> <eventSubURL>/upnp/control/x_homeauto</eventSubURL>
21:03:18.416 -> <SCPDURL>/x_homeautoSCPD.xml</SCPDURL>
21:03:18.416 -> </service>
21:03:18.416 -> <service>
21:03:18.416 -> <serviceType>urn:dslforum-org:service:X_AVM-DE_Homeplug:1</serviceType>
21:03:18.416 -> <serviceId>urn:X_AVM-DE_Homeplug-com:serviceId:X_AVM-DE_Homeplug1</serviceId>
21:03:18.416 -> <controlURL>/upnp/control/x_homeplug</controlURL>
21:03:18.416 -> <eventSubURL>/upnp/control/x_homeplug</eventSubURL>
21:03:18.416 -> <SCPDURL>/x_homeplugSCPD.xml</SCPDURL>
21:03:18.416 -> </service>
21:03:18.416 -> <service>
21:03:18.416 -> <serviceType>urn:dslforum-org:service:X_AVM-DE_Filelinks:1</serviceType>
21:03:18.416 -> <serviceId>urn:X_AVM-DE_Filelinks-com:serviceId:X_AVM-DE_Filelinks1</serviceId>
21:03:18.416 -> <controlURL>/upnp/control/x_filelinks</controlURL>
21:03:18.486 -> <eventSubURL>/upnp/control/x_filelinks</eventSubURL>
21:03:18.486 -> <SCPDURL>/x_filelinksSCPD.xml</SCPDURL>
21:03:18.486 -> </service>
21:03:18.486 -> <service>
21:03:18.486 -> <serviceType>urn:dslforum-org:service:X_AVM-DE_Auth:1</serviceType>
21:03:18.486 -> <serviceId>urn:X_AVM-DE_Auth-com:serviceId:X_AVM-DE_Auth1</serviceId>
21:03:18.486 -> <controlURL>/upnp/control/x_auth</controlURL>
21:03:18.486 -> <eventSubURL>/upnp/control/x_auth</eventSubURL>
21:03:18.486 -> <SCPDURL>/x_authSCPD.xml</SCPDURL>
21:03:18.486 -> </service>
21:03:18.486 -> </serviceList>
21:03:18.486 -> <deviceList>
21:03:18.486 -> <device>
21:03:18.486 -> <deviceType>urn:dslforum-org:device:LANDevice:1</deviceType>
21:03:18.486 -> <friendlyName>LANDevice - FRITZ!Box 6590 Cable</friendlyName>
21:03:18.486 -> <manufacturer>AVM</manufacturer>
21:03:18.486 -> <manufacturerURL>www.avm.de</manufacturerURL>
21:03:18.486 -> <modelDescription>LANDevice - FRITZ!Box 6590 Cable</modelDescription>
21:03:18.486 -> <modelName>LANDevice - FRITZ!Box 6590 Cable</modelName>
21:03:18.486 -> <modelNumber> - avm</modelNumber>
21:03:18.486 -> <modelURL>www.avm.de</modelURL>
21:03:18.486 -> <UDN>uuid:75802409-bccb-40e7-8e6b-444E6DE56EBF</UDN>
21:03:18.486 -> <UPC>AVM TR-064</UPC>
21:03:18.486 -> <serviceList>
21:03:18.486 -> <service>
21:03:18.486 -> <serviceType>urn:dslforum-org:service:WLANConfiguration:1</serviceType>
21:03:18.486 -> <serviceId>urn:WLANConfiguration-com:serviceId:WLANConfiguration1</serviceId>
21:03:18.594 -> <controlURL>/upnp/control/wlanconfig1</controlURL>
21:03:18.594 -> <eventSubURL>/upnp/control/wlanconfig1</eventSubURL>
21:03:18.594 -> <SCPDURL>/wlanconfigSCPD.xml</SCPDURL>
21:03:18.594 -> </service>
21:03:18.594 -> <service><serviceType>urn:dslforum-org:service:WLANConfiguration:2</serviceType><serviceId>urn:WLANConfiguration-com:serviceId:WLANConfiguration2</serviceId><controlURL>/upnp/control/wlanconfig2</controlURL><eventSubURL>/upnp/control/wlanconfig2</eventSubURL><SCPDURL>/wlanconfigSCPD.xml</SCPDURL></service><!-- 2 --><service><serviceType>urn:dslforum-org:service:WLANConfiguration:3</serviceType><serviceId>urn:WLANConfiguration-com:serviceId:WLANConfiguration3</serviceId><controlURL>/upnp/control/wlanconfig3</controlURL><eventSubURL>/upnp/control/wlanconfig3</eventSubURL><SCPDURL>/wlanconfigSCPD.xml</SCPDURL></service>
21:03:18.594 -> <service>
21:03:18.594 -> <serviceType>urn:dslforum-org:service:Hosts:1</serviceType>
21:03:18.594 -> <serviceId>urn:LanDeviceHosts-com:serviceId:Hosts1</serviceId>
21:03:18.594 -> <controlURL>/upnp/control/hosts</controlURL>
21:03:18.594 -> <eventSubURL>/upnp/control/hosts</eventSubURL>
21:03:18.664 -> <SCPDURL>/hostsSCPD.xml</SCPDURL>
21:03:18.664 -> </service>
21:03:18.664 -> <service>
21:03:18.664 -> <serviceType>urn:dslforum-org:service:LANEthernetInterfaceConfig:1</serviceType>
21:03:18.664 -> <serviceId>urn:LANEthernetIfCfg-com:serviceId:LANEthernetInterfaceConfig1</serviceId>
21:03:18.664 -> <controlURL>/upnp/control/lanethernetifcfg</controlURL>
21:03:18.664 -> <eventSubURL>/upnp/control/lanethernetifcfg</eventSubURL>
21:03:18.664 -> <SCPDURL>/ethifconfigSCPD.xml</SCPDURL>
21:03:18.664 -> </service>
21:03:18.664 -> <service>
21:03:18.664 -> <serviceType>urn:dslforum-org:service:LANHostConfigManagement:1</serviceType>
21:03:18.664 -> <serviceId>urn:LANHCfgMgm-com:serviceId:LANHostConfigManagement1</serviceId>
21:03:18.664 -> <controlURL>/upnp/control/lanhostconfigmgm</controlURL>
21:03:18.664 -> <eventSubURL>/upnp/control/lanhostconfigmgm</eventSubURL>
21:03:18.664 -> <SCPDURL>/lanhostconfigmgmSCPD.xml</SCPDURL>
21:03:18.664 -> </service>
21:03:18.664 -> </serviceList>
21:03:18.664 -> </device>
21:03:18.664 -> <device>
21:03:18.664 -> <deviceType>urn:dslforum-org:device:WANDevice:1</deviceType>
21:03:18.664 -> <friendlyName>WANDevice - FRITZ!Box 6590 Cable</friendlyName>
21:03:18.664 -> <manufacturer>AVM</manufacturer>
21:03:18.664 -> <manufacturerURL>www.avm.de</manufacturerURL>
21:03:18.664 -> <modelDescription>WANDevice - FRITZ!Box 6590 Cable</modelDescription>
21:03:18.765 -> <modelName>WANDevice - FRITZ!Box 6590 Cable</modelName>
21:03:18.765 -> <modelNumber> - avm</modelNumber>
21:03:18.765 -> <modelURL>www.avm.de</modelURL>
21:03:18.765 -> <UDN>uuid:75802409-bccb-40e7-8e6a-444E6DE56EBF</UDN>
21:03:18.765 -> <UPC>AVM TR-064</UPC>
21:03:18.765 -> <serviceList>
21:03:18.765 -> <service>
21:03:18.765 -> <serviceType>urn:dslforum-org:service:WANCommonInterfaceConfig:1</serviceType>
21:03:18.765 -> <serviceId>urn:WANCIfConfig-com:serviceId:WANCommonInterfaceConfig1</serviceId>
21:03:18.765 -> <controlURL>/upnp/control/wancommonifconfig1</controlURL>
21:03:18.765 -> <eventSubURL>/upnp/control/wancommonifconfig1</eventSubURL>
21:03:18.765 -> <SCPDURL>/wancommonifconfigSCPD.xml</SCPDURL>
21:03:18.765 -> </service>
21:03:18.765 -> <service>
21:03:18.765 -> <serviceType>urn:dslforum-org:service:WANDSLInterfaceConfig:1</serviceType>
21:03:18.765 -> <serviceId>urn:WANDSLIfConfig-com:serviceId:WANDSLInterfaceConfig1</serviceId>
21:03:18.765 -> <controlURL>/upnp/control/wandslifconfig1</controlURL>
21:03:18.765 -> <eventSubURL>/upnp/control/wandslifconfig1</eventSubURL>
21:03:18.765 -> <SCPDURL>/wandslifconfigSCPD.xml</SCPDURL>
21:03:18.765 -> </service>
21:03:18.765 -> </serviceList>
21:03:18.765 -> <deviceList>
21:03:18.765 -> <device>
21:03:18.765 -> <deviceType>urn:dslforum-org:device:WANConnectionDevice:1</deviceType>
21:03:18.832 -> <friendlyName>WANConnectionDevice - FRITZ!Box 6590 Cable</friendlyName>
21:03:18.832 -> <manufacturer>AVM</manufacturer>
21:03:18.832 -> <manufacturerURL>www.avm.de</manufacturerURL>
21:03:18.832 -> <modelDescription>WANConnectionDevice - FRITZ!Box 6590 Cable</modelDescription>
21:03:18.832 -> <modelName>WANConnectionDevice - FRITZ!Box 6590 Cable</modelName>
21:03:18.832 -> <modelNumber> - avm</modelNumber>
21:03:18.832 -> <modelURL>www.avm.de</modelURL>
21:03:18.832 -> <UDN>uuid:75802409-bccb-40e7-8e69-444E6DE56EBF</UDN>
21:03:18.832 -> <UPC>AVM TR-064</UPC>
21:03:18.832 -> <serviceList>
21:03:18.832 -> <service>
21:03:18.832 -> <serviceType>urn:dslforum-org:service:WANDSLLinkConfig:1</serviceType>
21:03:18.832 -> <serviceId>urn:WANDSLLinkConfig-com:serviceId:WANDSLLinkConfig1</serviceId>
21:03:18.832 -> <controlURL>/upnp/control/wandsllinkconfig1</controlURL>
21:03:18.832 -> <eventSubURL>/upnp/control/wandsllinkconfig1</eventSubURL>
21:03:18.832 -> <SCPDURL>/wandsllinkconfigSCPD.xml</SCPDURL>
21:03:18.832 -> </service>
21:03:18.832 -> <service>
21:03:18.832 -> <serviceType>urn:dslforum-org:service:WANEthernetLinkConfig:1</serviceType>
21:03:18.832 -> <serviceId>urn:WANEthernetLinkConfig-com:serviceId:WANEthernetLinkConfig1</serviceId>
21:03:18.832 -> <controlURL>/upnp/control/wanethlinkconfig1</controlURL>
21:03:18.942 -> <eventSubURL>/upnp/control/wanethlinkconfig1</eventSubURL>
21:03:18.942 -> <SCPDURL>/wanethlinkconfigSCPD.xml</SCPDURL>
21:03:18.942 -> </service>
21:03:18.942 -> <service>
21:03:18.942 -> <serviceType>urn:dslforum-org:service:WANPPPConnection:1</serviceType>
21:03:18.942 -> <serviceId>urn:WANPPPConnection-com:serviceId:WANPPPConnection1</serviceId>
21:03:18.942 -> <controlURL>/upnp/control/wanpppconn1</controlURL>
21:03:18.942 -> <eventSubURL>/upnp/control/wanpppconn1</eventSubURL>
21:03:18.942 -> <SCPDURL>/wanpppconnSCPD.xml</SCPDURL>
21:03:18.942 -> </service>
21:03:18.942 -> <service>
21:03:18.942 -> <serviceType>urn:dslforum-org:service:WANIPConnection:1</serviceType>
21:03:18.942 -> <serviceId>urn:WANIPConnection-com:serviceId:WANIPConnection1</serviceId>
21:03:18.942 -> <controlURL>/upnp/control/wanipconnection1</controlURL>
21:03:18.942 -> <eventSubURL>/upnp/control/wanipconnection1</eventSubURL>
21:03:18.942 -> <SCPDURL>/wanipconnSCPD.xml</SCPDURL>
21:03:18.942 -> </service>
21:03:18.942 -> </serviceList>
21:03:18.942 -> </device>
21:03:18.942 -> </deviceList>
21:03:18.942 -> </device>
21:03:18.942 -> </deviceList>
21:03:18.942 -> <presentationURL>http://fritz.box</presentationURL>
21:03:18.942 -> </device>
21:03:18.942 -> </root>
21:03:18.942 -> 
21:03:18.942 -> ---------------------------------
21:03:18.942 -> 
21:03:18.942 -> [initServiceURLs] Router name: 
21:03:18.942 -> [initServiceURLs] Router model: 
21:03:18.942 -> [initServiceURLs] Detected Services:
21:03:18.942 ->     1	urn:dslforum-org:service:DeviceInfo:1 @ /upnp/control/deviceinfo
21:03:18.942 ->     2	urn:dslforum-org:service:DeviceConfig:1 @ /upnp/control/deviceconfig
21:03:18.976 ->     3	urn:dslforum-org:service:Layer3Forwarding:1 @ /upnp/control/layer3forwarding
21:03:18.976 ->     4	urn:dslforum-org:service:LANConfigSecurity:1 @ /upnp/control/lanconfigsecurity
21:03:18.976 ->     5	urn:dslforum-org:service:ManagementServer:1 @ /upnp/control/mgmsrv
21:03:18.976 ->     6	urn:dslforum-org:service:Time:1 @ /upnp/control/time
21:03:19.010 ->     7	urn:dslforum-org:service:UserInterface:1 @ /upnp/control/userif
21:03:19.010 ->     8	urn:dslforum-org:service:X_AVM-DE_Storage:1 @ /upnp/control/x_storage
21:03:19.010 ->     9	urn:dslforum-org:service:X_AVM-DE_WebDAVClient:1 @ /upnp/control/x_webdav
21:03:19.010 ->     10	urn:dslforum-org:service:X_AVM-DE_UPnP:1 @ /upnp/control/x_upnp
21:03:19.045 ->     11	urn:dslforum-org:service:X_AVM-DE_Speedtest:1 @ /upnp/control/x_speedtest
21:03:19.045 ->     12	urn:dslforum-org:service:X_AVM-DE_RemoteAccess:1 @ /upnp/control/x_remote
21:03:19.045 ->     13	urn:dslforum-org:service:X_AVM-DE_MyFritz:1 @ /upnp/control/x_myfritz
21:03:19.045 ->     14	urn:dslforum-org:service:X_VoIP:1 @ /upnp/control/x_voip
21:03:19.078 ->     15	urn:dslforum-org:service:X_AVM-DE_OnTel:1 @ /upnp/control/x_contact
21:03:19.078 ->     16	urn:dslforum-org:service:X_AVM-DE_Dect:1 @ /upnp/control/x_dect
21:03:19.078 ->     17	urn:dslforum-org:service:X_AVM-DE_TAM:1 @ /upnp/control/x_tam
21:03:19.078 ->     18	urn:dslforum-org:service:X_AVM-DE_AppSetup:1 @ /upnp/control/x_appsetup
21:03:19.113 ->     19	urn:dslforum-org:service:X_AVM-DE_Homeauto:1 @ /upnp/control/x_homeauto
21:03:19.113 ->     20	urn:dslforum-org:service:X_AVM-DE_Homeplug:1 @ /upnp/control/x_homeplug
21:03:19.113 ->     21	urn:dslforum-org:service:X_AVM-DE_Filelinks:1 @ /upnp/control/x_filelinks
21:03:19.113 ->     22	urn:dslforum-org:service:X_AVM-DE_Auth:1 @ /upnp/control/x_auth
21:03:19.146 ->     23	urn:dslforum-org:service:WLANConfiguration:1 @ /upnp/control/wlanconfig1
21:03:19.146 ->     24	urn:dslforum-org:service:WLANConfiguration:2 @ /upnp/control/wlanconfig2
21:03:19.146 ->     25	urn:dslforum-org:service:WLANConfiguration:3 @ /upnp/control/wlanconfig3
21:03:19.146 ->     26	urn:dslforum-org:service:Hosts:1 @ /upnp/control/hosts
21:03:19.184 ->     27	urn:dslforum-org:service:LANEthernetInterfaceConfig:1 @ /upnp/control/lanethernetifcfg
21:03:19.184 ->     28	urn:dslforum-org:service:LANHostConfigManagement:1 @ /upnp/control/lanhostconfigmgm
21:03:19.184 ->     29	urn:dslforum-org:service:WANCommonInterfaceConfig:1 @ /upnp/control/wancommonifconfig1
21:03:19.184 ->     30	urn:dslforum-org:service:WANDSLInterfaceConfig:1 @ /upnp/control/wandslifconfig1
21:03:19.220 ->     31	urn:dslforum-org:service:WANDSLLinkConfig:1 @ /upnp/control/wandsllinkconfig1
21:03:19.220 ->     32	urn:dslforum-org:service:WANEthernetLinkConfig:1 @ /upnp/control/wanethlinkconfig1
21:03:19.220 ->     33	urn:dslforum-org:service:WANPPPConnection:1 @ /upnp/control/wanpppconn1
21:03:19.220 ->     34	urn:dslforum-org:service:WANIPConnection:1 @ /upnp/control/wanipconnection1
21:03:19.288 -> -------------------------------------------
21:03:19.288 -> [action] Call with extraction of return arguments.
21:03:19.288 -> [action] Call with parameters/arguments to be passed.
21:03:19.288 -> [action] Attempt 1 of calling GetInfo on urn:dslforum-org:service:DeviceInfo:1
21:03:19.288 -> [HTTP] Prepare HTTP request to URL: 'http://192.168.178.1:49000/upnp/control/deviceinfo'.
21:03:19.288 -> [HTTP] Printing the XML to be posted (between lines):
21:03:19.288 -> ---------------------------------
21:03:19.288 -> <?xml version="1.0"?>
21:03:19.288 -> <s:Envelope s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Header><h:InitChallenge xmlns:h="http://soap-authentication.org/digest/2001/10/" s:mustUnderstand="1"><UserID>doorbell</UserID></h:InitChallenge ></s:Header><s:Body><u:GetInfo xmlns:u='urn:dslforum-org:service:DeviceInfo:1'></u:GetInfo></s:Body></s:Envelope>
21:03:19.288 -> ---------------------------------
21:03:19.288 -> 
21:03:19.391 -> [HTTP] POSTing the XML to SOAPACTION: 'urn:dslforum-org:service:DeviceInfo:1#GetInfo'
21:03:19.391 -> [HTTP] Request code: 200
21:03:19.391 -> [HTTP] Printing received reply (between lines):
21:03:19.391 -> ---------------------------------
21:03:19.391 -> <?xml version="1.0"?>
21:03:19.391 -> <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
21:03:19.391 -> <s:Header>
21:03:19.391 -> <h:Challenge xmlns:h="http://soap-authentication.org/digest/2001/10/" s:mustUnderstand="1">
21:03:19.391 -> <Status>Unauthenticated</Status>
21:03:19.391 -> <Nonce>A41EA505FE6112E4</Nonce>
21:03:19.391 -> <Realm>F!Box SOAP-Auth</Realm>
21:03:19.391 -> </h:Challenge>
21:03:19.391 -> </s:Header>
21:03:19.391 -> <s:Body>
21:03:19.391 -> <s:Fault>
21:03:19.391 -> <faultcode>s:Client</faultcode>
21:03:19.391 -> <faultstring>UPnPError</faultstring>
21:03:19.391 -> <detail>
21:03:19.391 -> <UPnPError xmlns="urn:dslforum-org:control-1-0">
21:03:19.391 -> <errorCode>503</errorCode>
21:03:19.391 -> <errorDescription></errorDescription>
21:03:19.391 -> </UPnPError>
21:03:19.391 -> </detail>
21:03:19.391 -> </s:Fault>
21:03:19.391 -> </s:Body>
21:03:19.391 -> </s:Envelope>
21:03:19.391 -> ---------------------------------
21:03:19.391 -> 
21:03:19.391 -> [action] Response status: Unauthenticated
21:03:19.391 -> [action]<warning> Got an unauthenticated error. Using the new nonce and trying again.
21:03:19.391 -> [takeNonce] Extracted the nonce 'A41EA505FE6112E4' from the last request.
21:03:19.497 -> [takeNonce] Your secret is 'doorbell:F!Box SOAP-Auth:Drei3Zehn'
21:03:19.497 -> [takeNonce] Your hashed secret is '7e87b69f4dbc6839867620fd44d6d702'
21:03:19.497 -> [action] Attempt 2 of calling GetInfo on urn:dslforum-org:service:DeviceInfo:1
21:03:19.497 -> [generateAuthToken] The auth token is '484f2c1e7b67614ac8caae047dbb6c9d'.
21:03:19.497 -> [HTTP] Prepare HTTP request to URL: 'http://192.168.178.1:49000/upnp/control/deviceinfo'.
21:03:19.497 -> [HTTP] Printing the XML to be posted (between lines):
21:03:19.497 -> ---------------------------------
21:03:19.497 -> <?xml version="1.0"?>
21:03:19.497 -> <s:Envelope s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Header><h:ClientAuth xmlns:h="http://soap-authentication.org/digest/2001/10/" s:mustUnderstand="1"><Nonce>A41EA505FE6112E4</Nonce><Auth>484f2c1e7b67614ac8caae047dbb6c9d</Auth><UserID>doorbell</UserID><Realm>F!Box SOAP-Auth</Realm></h:ClientAuth></s:Header><s:Body><u:GetInfo xmlns:u='urn:dslforum-org:service:DeviceInfo:1'></u:GetInfo></s:Body></s:Envelope>
21:03:19.497 -> ---------------------------------
21:03:19.497 -> 
21:03:20.808 -> [HTTP] POSTing the XML to SOAPACTION: 'urn:dslforum-org:service:DeviceInfo:1#GetInfo'
21:03:20.808 -> [HTTP] Request code: 200
21:03:20.808 -> [HTTP] Printing received reply (between lines):
21:03:20.808 -> ---------------------------------
21:03:20.808 -> 
21:03:20.808 -> ---------------------------------
21:03:20.808 -> 
21:03:20.808 -> [action] Response status: 
21:03:20.808 -> [action]<error> Got an empty reply (e.g. http error). Trying again in 10s.
21:03:23.662 -> pm open,type:2 0
21:03:30.891 -> [action] Attempt 3 of calling GetInfo on urn:dslforum-org:service:DeviceInfo:1
21:03:30.891 -> [generateAuthToken] The auth token is '484f2c1e7b67614ac8caae047dbb6c9d'.
21:03:30.891 -> [HTTP] Prepare HTTP request to URL: 'http://192.168.178.1:49000/upnp/control/deviceinfo'.
21:03:30.891 -> [HTTP] Printing the XML to be posted (between lines):
21:03:30.891 -> ---------------------------------
21:03:30.891 -> <?xml version="1.0"?>
21:03:30.891 -> <s:Envelope s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Header><h:ClientAuth xmlns:h="http://soap-authentication.org/digest/2001/10/" s:mustUnderstand="1"><Nonce>A41EA505FE6112E4</Nonce><Auth>484f2c1e7b67614ac8caae047dbb6c9d</Auth><UserID>doorbell</UserID><Realm>F!Box SOAP-Auth</Realm></h:ClientAuth></s:Header><s:Body><u:GetInfo xmlns:u='urn:dslforum-org:service:DeviceInfo:1'></u:GetInfo></s:Body></s:Envelope>
21:03:30.891 -> ---------------------------------
21:03:30.891 -> 
21:03:32.250 -> [HTTP] POSTing the XML to SOAPACTION: 'urn:dslforum-org:service:DeviceInfo:1#GetInfo'
21:03:32.250 -> [HTTP] Request code: 200
21:03:32.250 -> [HTTP] Printing received reply (between lines):
21:03:32.250 -> ---------------------------------
21:03:32.250 -> 
21:03:32.250 -> ---------------------------------
21:03:32.250 -> 
21:03:32.250 -> [action] Response status: 
21:03:32.250 -> [action]<error> Got an empty reply (e.g. http error). Trying again in 10s.
21:03:42.293 -> [action] Attempt 4 of calling GetInfo on urn:dslforum-org:service:DeviceInfo:1
21:03:42.293 -> [generateAuthToken] The auth token is '484f2c1e7b67614ac8caae047dbb6c9d'.
21:03:42.293 -> [HTTP] Prepare HTTP request to URL: 'http://192.168.178.1:49000/upnp/control/deviceinfo'.
21:03:42.293 -> [HTTP] Printing the XML to be posted (between lines):
21:03:42.293 -> ---------------------------------
21:03:42.293 -> <?xml version="1.0"?>
21:03:42.293 -> <s:Envelope s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Header><h:ClientAuth xmlns:h="http://soap-authentication.org/digest/2001/10/" s:mustUnderstand="1"><Nonce>A41EA505FE6112E4</Nonce><Auth>484f2c1e7b67614ac8caae047dbb6c9d</Auth><UserID>doorbell</UserID><Realm>F!Box SOAP-Auth</Realm></h:ClientAuth></s:Header><s:Body><u:GetInfo xmlns:u='urn:dslforum-org:service:DeviceInfo:1'></u:GetInfo></s:Body></s:Envelope>
21:03:42.293 -> ---------------------------------
21:03:42.293 -> 
21:03:43.726 -> [HTTP] POSTing the XML to SOAPACTION: 'urn:dslforum-org:service:DeviceInfo:1#GetInfo'
21:03:43.726 -> [HTTP] Request code: 200
21:03:43.726 -> [HTTP] Printing received reply (between lines):
21:03:43.726 -> ---------------------------------
21:03:43.726 -> 
21:03:43.726 -> ---------------------------------
21:03:43.726 -> 
21:03:43.726 -> [action] Response status: 
21:03:43.726 -> [action]<error> Got an empty reply (e.g. http error). Trying again in 10s.
21:03:53.715 -> [action]<error> Giving up the request.
21:03:53.715 -> [main] Info retrieved.
21:03:53.715 -> [main] Router Model: 
21:03:53.715 -> [main] Router software version: 
21:03:53.715 -> [main] Router up time: s

@Aypac
Copy link
Owner

Aypac commented Mar 17, 2020

Hi,
Sorry things are a bit turbulent with COVID right now. I'll come back to you ASAP.

@jipp
Copy link
Author

jipp commented Mar 17, 2020

Hi

no problem - there are more urgent things in live than coding. - hope all is fine.

nevertheless I have run the "simple-router-info.ino" on platformio and tried again.
looks like " connection.init()" was the key here - seems to be mandatory.

[main] Info retrieved.
[main] Router Model: FRITZ!Box 6590 Cable
[main] Router software version: 148.07.12
[main] Router up time: 198542s

Next try would be doing some dialout.

cheers
Wolfgang

@jipp
Copy link
Author

jipp commented Mar 18, 2020

HI

just added one additional printout in the tr064.cpp to see the reply from the router - typically it is only printed with return code 200:

[HTTP] POSTing the XML to SOAPACTION: 'urn:dslforum-org:service:X_VoIP:1#X_AVM-DE_DialNumber'
[HTTP] Request code: 500
<?xml version="1.0"?>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<s:Body>
<s:Fault>
<faultcode>s:Client</faultcode>
<faultstring>UPnPError</faultstring>
<detail>
<UPnPError xmlns="urn:schemas-upnp-org:control-1-0">
<errorCode>401</errorCode>
<errorDescription>Invalid Action</errorDescription>
</UPnPError>
</detail>
</s:Fault>
</s:Body>
</s:Envelope>
[HTTP] Printing received reply (between lines):
---------------------------------

---------------------------------

from the avm docs I see that this is:

If an unknown action is used the returned code is 401. This return code is used for
obsoleted actions, too.

cheers
Wolfgang

@Aypac
Copy link
Owner

Aypac commented Jun 10, 2020

no problem - there are more urgent things in live than coding. - hope all is fine.

Yes, all is fine :) Just got a bit busy.

nevertheless I have run the "simple-router-info.ino" on platformio and tried again.
looks like " connection.init()" was the key here - seems to be mandatory.

That is indeed required, but that should have been there as also witnessed by the output you posted:

21:03:18.942 -> [initServiceURLs] Detected Services:
[...]

Weird. But whatever they say about gift horses... It seems to work now.
On top, I'll push a change soon that makes sure .init() runs before any .action is triggered.

Which brings me to the new error you see

[HTTP] POSTing the XML to SOAPACTION: 'urn:dslforum-org:service:X_VoIP:1#X_AVM-DE_DialNumber'
and
If an unknown action is used the returned code is 401. This return code is used for obsoleted actions, too.

indeed looking at the services provided by your router that service does not seem to be available...

Detected Services
21:03:18.942 -> [initServiceURLs] Detected Services:
21:03:18.942 ->     1	urn:dslforum-org:service:DeviceInfo:1 @ /upnp/control/deviceinfo
21:03:18.942 ->     2	urn:dslforum-org:service:DeviceConfig:1 @ /upnp/control/deviceconfig
21:03:18.976 ->     3	urn:dslforum-org:service:Layer3Forwarding:1 @ /upnp/control/layer3forwarding
21:03:18.976 ->     4	urn:dslforum-org:service:LANConfigSecurity:1 @ /upnp/control/lanconfigsecurity
21:03:18.976 ->     5	urn:dslforum-org:service:ManagementServer:1 @ /upnp/control/mgmsrv
21:03:18.976 ->     6	urn:dslforum-org:service:Time:1 @ /upnp/control/time
21:03:19.010 ->     7	urn:dslforum-org:service:UserInterface:1 @ /upnp/control/userif
21:03:19.010 ->     8	urn:dslforum-org:service:X_AVM-DE_Storage:1 @ /upnp/control/x_storage
21:03:19.010 ->     9	urn:dslforum-org:service:X_AVM-DE_WebDAVClient:1 @ /upnp/control/x_webdav
21:03:19.010 ->     10	urn:dslforum-org:service:X_AVM-DE_UPnP:1 @ /upnp/control/x_upnp
21:03:19.045 ->     11	urn:dslforum-org:service:X_AVM-DE_Speedtest:1 @ /upnp/control/x_speedtest
21:03:19.045 ->     12	urn:dslforum-org:service:X_AVM-DE_RemoteAccess:1 @ /upnp/control/x_remote
21:03:19.045 ->     13	urn:dslforum-org:service:X_AVM-DE_MyFritz:1 @ /upnp/control/x_myfritz
21:03:19.045 ->     14	urn:dslforum-org:service:X_VoIP:1 @ /upnp/control/x_voip
21:03:19.078 ->     15	urn:dslforum-org:service:X_AVM-DE_OnTel:1 @ /upnp/control/x_contact
21:03:19.078 ->     16	urn:dslforum-org:service:X_AVM-DE_Dect:1 @ /upnp/control/x_dect
21:03:19.078 ->     17	urn:dslforum-org:service:X_AVM-DE_TAM:1 @ /upnp/control/x_tam
21:03:19.078 ->     18	urn:dslforum-org:service:X_AVM-DE_AppSetup:1 @ /upnp/control/x_appsetup
21:03:19.113 ->     19	urn:dslforum-org:service:X_AVM-DE_Homeauto:1 @ /upnp/control/x_homeauto
21:03:19.113 ->     20	urn:dslforum-org:service:X_AVM-DE_Homeplug:1 @ /upnp/control/x_homeplug
21:03:19.113 ->     21	urn:dslforum-org:service:X_AVM-DE_Filelinks:1 @ /upnp/control/x_filelinks
21:03:19.113 ->     22	urn:dslforum-org:service:X_AVM-DE_Auth:1 @ /upnp/control/x_auth
21:03:19.146 ->     23	urn:dslforum-org:service:WLANConfiguration:1 @ /upnp/control/wlanconfig1
21:03:19.146 ->     24	urn:dslforum-org:service:WLANConfiguration:2 @ /upnp/control/wlanconfig2
21:03:19.146 ->     25	urn:dslforum-org:service:WLANConfiguration:3 @ /upnp/control/wlanconfig3
21:03:19.146 ->     26	urn:dslforum-org:service:Hosts:1 @ /upnp/control/hosts
21:03:19.184 ->     27	urn:dslforum-org:service:LANEthernetInterfaceConfig:1 @ /upnp/control/lanethernetifcfg
21:03:19.184 ->     28	urn:dslforum-org:service:LANHostConfigManagement:1 @ /upnp/control/lanhostconfigmgm
21:03:19.184 ->     29	urn:dslforum-org:service:WANCommonInterfaceConfig:1 @ /upnp/control/wancommonifconfig1
21:03:19.184 ->     30	urn:dslforum-org:service:WANDSLInterfaceConfig:1 @ /upnp/control/wandslifconfig1
21:03:19.220 ->     31	urn:dslforum-org:service:WANDSLLinkConfig:1 @ /upnp/control/wandsllinkconfig1
21:03:19.220 ->     32	urn:dslforum-org:service:WANEthernetLinkConfig:1 @ /upnp/control/wanethlinkconfig1
21:03:19.220 ->     33	urn:dslforum-org:service:WANPPPConnection:1 @ /upnp/control/wanpppconn1
21:03:19.220 ->     34	urn:dslforum-org:service:WANIPConnection:1 @ /upnp/control/wanipconnection1

Maybe try to explore these?

  1. urn:dslforum-org:service:X_VoIP:1 @ /upnp/control/x_voip
  2. urn:dslforum-org:service:X_AVM-DE_OnTel:1 @ /upnp/control/x_contact
  3. urn:dslforum-org:service:X_AVM-DE_Dect:1 @ /upnp/control/x_dect

@0xE0-rng
Copy link

0xE0-rng commented Jun 16, 2020

I did not follow all steps you discussed in perfect detail, but I just wanted to confirm that this problem also happens on the 7590.
I tried your and also get the error

17:17:58.334 -> Button pressed[action] no nonce/realm found. requesting...
17:17:58.334 -> [HTTP] prepare request to URL: http://192.168.178.1:49000
17:17:58.369 -> [HTTP] POST... SOAPACTION: 'urn:dslforum-org:service:WLANConfiguration:1#GetGenericAssociatedDeviceInfo'
17:17:58.369 -> [HTTP] request code: 500

Also, just as above:

 curl -s -k -m 5 --anyauth -u "klingel:ringdingringdingringdingringding" "http://192.168.178.1:49000/upnp/control/deviceinfo" -H 'Content-Type: text/xml; charset="utf-8"' -H "SoapAction:urn:dslforum-org:service:DeviceInfo:1#GetInfo" -d "<?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>doorbell</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>"

creates

<?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>353C512DBD67CCFF</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></errorDescription>
</UPnPError>
</detail>
</s:Fault>
</s:Body>
</s:Envelope>

Let me know if I can do anything to help :)

@Aypac
Copy link
Owner

Aypac commented Jun 16, 2020

Let's move this into a separate issue, otherwise it'll be a bit messy here (also I'm not sure yet, if this really is the same problem).

@Aypac
Copy link
Owner

Aypac commented Jan 17, 2021

Hi Wolfgang,
did you make any progress with this?

@jipp
Copy link
Author

jipp commented Jan 19, 2021

was stuck with other projects - will continue soon

@jipp
Copy link
Author

jipp commented Feb 3, 2021

HI

I started looking into the issue again and tried the latest version from main - still no success.

shall we open the current TR again, or is ther another to jump on?

cheers
Wolfgang

@Aypac
Copy link
Owner

Aypac commented Dec 26, 2021

There is a new release now (1.2.0 / 3fb0d1b) that might fix it.

@Aypac
Copy link
Owner

Aypac commented Jul 27, 2022

Hi @jipp ,
Please try the new release 1.2.1. If this does not solve your issue, please reopen this issue.

@Aypac Aypac closed this as completed Jul 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants