public void retrieveCall ( String connId , KeyValueCollection reasons , KeyValueCollection extensions ) throws WorkspaceApiException { try { VoicecallsidanswerData retrieveData = new VoicecallsidanswerData ( ) ; retrieveData . setReasons ( Util . toKVList ( reasons ) ) ; retrieveData . setExtensions ( Util . toKVList ( extensions ) ) ; RetrieveData data = new RetrieveData ( ) ; data . data ( retrieveData ) ; ApiSuccessResponse response = this . voiceApi . retrieve ( connId , data ) ; throwIfNotOk ( "retrieveCall" , response ) ; } catch ( ApiException e ) { throw new WorkspaceApiException ( "retrieveCall failed." , e ) ; } }
Retrieve the specified call from hold .