I am working on Cisco UCCX and I am using Cisco UCM integration. When I am calling from external number ('customer') to one of Cisco extensions ('agent') I am clicking 'Decline' on the agent's Cisco Jabber. Then I am redirected to the agent's voicemail.
Unfortunately I cannot do the same thing from the code: I tried to use CiscoConnection.reject() and CiscoConnection.disconnect() methods to achieve the same effect. But these methods are not working! I am getting the same Cisco events for the observed extension (at least the same number of Cisco events of the same classes - disconnected for customer, disconnected for agent, Terminal dropped for agent), but when I am using 'reject' or 'disconnect' method on the Connection - the connection from customer to agent 1 is not redirected to the voicemail. After few seconds connection between customer and agent 1 is disconnected.
In the attachments you can see the recording (voicemailScenario.mp4) of the working scenario (without using the code). I would like to achieve the same effect by using the code. How can I do it?
Currently I have the problem that when I call connection.disconnect() I have such situation (the time of the call is not updated). After the few seconds the window dissappears (their is no call, both connections are gone).
![disconnectProblem.png disconnectProblem.png](/t5/image/serverpage/image-id/130838i0DCAF9769E557D0E/image-size/medium?v=v2&px=400)