Skip to content

Can't access services apart from urn:dslforum-org:service #69

@overwerk

Description

@overwerk

Hi,

I tried for a couple of days to get the external IPv6 address of my FB 7490 via TR064 on my ESP32.

The IPv6 is available here:
TR064connection.action("urn:schemas-upnp-org:service:WANIPConnection:1", "X_AVM_DE_GetExternalIPv6Address", params, 0, req, 1, "/igdupnp/control/WANIPConn1");

The problem is, in the function "action_raw" the const _servicePrefix will be added infront of every service name.

_servicePrefix = "urn:dslforum-org:service:";

Therefore I couldn't access "urn:schemas-upnp-org:service:WANIPConnection:1", because in the end it was always "urn:dslforum-org:service:urn:schemas-upnp-org:service:WANIPConnection:1" and returned a 500er http request error.

In the same function you call "cleanOldServiceName", that strips away the prefixes of the services, if provided and later you use above mentioned const to add the prefixes.

Maybe it possible that cleanOldServiceName just adds the prefix, if not provided (service not starting with "urn:" than add it here, otherwise keep the servicename. Afterwards you can get rid of all the _servicePrefix concats in "action_raw".

Best regards and thank you for the library!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions