Onvif event input nonconsecutive

Hello! I’m trying to integrate our product with Milestone. I’ve been working on the ONVIF events service. Our device populates the digital inputs and relays.

On our product we have 2 hardware input and 1 virtual input. The Hardware input have InputToken 1 and InputToken 2. The Virtual input have InputToken 101. The “GetCapabilities” return 3 InputConnectors. When i try this, the virtual input don’t work.

I try change virtual input for InputToken 4 with 3 hardware input. The virtual input change for input 3 in milestone. It’s strange.

How does it work ?

I found. I had forget to define the 3th input in GetDigitalInputs.

But I think the order of inputs write on response GetDigitalInputs is respected by milestone, not token value.

Impossible to have non-consecutive entries.