Field log: a camera reached as 2.54.237.28:8080 (port forward) failed with
"media_GetVideoSources _send_request Failure! / pOnvif CREATE FAILURE!",
then "PTZ FAILED (PTZ protocol initialisation failed)". GetCapabilities
reports its services at the LAN address http://192.168.200.118:8080/onvif/...,
which can't be reached from outside, and pOnvif used them.
- reachableXAddr(): a service XAddr (PTZ, Media, Device, Imaging,
Events) on another host than the one the device was reached at
(m_pIpAddress) is rewritten in place to http://<reached host:port>
+ its path, and logged. A service on the same host is unchanged
(services on other ports keep working). Called in _getOnvifVersion()
before the service URIs are taken.
Tested against the real camera (the session reaches it through a local
forwarder, i.e. at yet another address). Old: GetVideoSources failure,
CREATE FAILURE, as in the field. New: the 5 services are moved, the PTZ
profile is found, status support (MoveStatus + Position) and speed spaces
are read, the GetStatus probe succeeds. ASan clean.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0139veDo3XyavMuVhdnHcN16