Re: E_DLG_STATE_CHANGED event parameters and values.
There's no mistake in your code, but in our documentation :).
We've recently added two more parameters in the dialog event
that contain the hash_entry and hash_id, but we didn't document
the change. I've just updated the page.
So in order to get the state, you need to add two more AVPs before
the state, to also fetch the dialog hash entry and id. If you only
need the state, you can fetch the parameters by their name: