channels/rdpei: start implementing strict state machine logic