We have Wrap_Up configured as a mandatory state when a call ends (Finesse 11.0(1)). The agent state is trapped to wrap-up upon caller hangup or agent hangup, which is exactly what we want.
If agent A transfers an inbound call to agent B, then agent B transfers the call back to agent A. Now when the call ends, agent A is stuck in wrap-up state. user.setState call does not have any effect. Setting agent state from Finesse client interface produces the following error
"CF_DUPLICATE_INVOCATION_REJECTION Please try again or contact the administrator."
What did we do wrong? Any proper documents that we can refer to about this error?