Closed ashish1405 closed 3 months ago
Any reason why this isn't merged yet?
@FalkTannhaeuser This doesn't work. I tried calling the wsdls and IPs returned are still local. I need this for frigate and simply rewriting the xaddrs isn't enough. I think the wrappers over wsdls response for different services should be rewritten to replace all ip addresses and ports by the provided external host:port.
I tried a lot like writing a custom transport to rewrite any IP address inside the response XML before sending it back, but it still doesn't work for connecting to frigate via onvif://external_ip:external_port
add the ability to rewrite the address and the port if the camera is in a router with nat. When a camera is behind nat, all the ip/port information received in onvif response, is of local network instead of natted. This patch will use the natted ip/port from where the response is received.