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

Discovery fails when multicast group registration request is sent ahead of discovery request #40

Open
castleguarders opened this issue Feb 16, 2021 · 1 comment

Comments

@castleguarders
Copy link

This happens with several different vendor cameras with different onvif client stack. Discovery works fine once I stop sending the multicast group registration request (and associated DROP request). This registration request should be made optional (and not the default). Several other discovery stacks/tools that I checked out seem to not send this request.

self._multiInSocket.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, self._makeMreq(addr))
except socket.error: # see comments for setsockopt(.., socket.IP_ADD_MEMBERSHIP..

It's not clear from the specification if this is required or even recommended. Any insights would be appreciated.

@tom24
Copy link
Contributor

tom24 commented Aug 1, 2022

I have seen something similar but I believe it is the switch between the camera and the discoverer.

If I comment out IP_ADD_MEMBERSHIP, the camera can be queried.

If I disable IGMP Snooping in the switch, the camera can be queried even with IP_ADD_MEMBERSHIP.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants