public void holdCall ( String connId , KeyValueCollection reasons , KeyValueCollection extensions ) throws WorkspaceApiException { try { VoicecallsidanswerData holdData = new VoicecallsidanswerData ( ) ; holdData . setReasons ( Util . toKVList ( reasons ) ) ; holdData . setExtensions ( Util . toKVList ( extensions ) ) ; HoldData data = new HoldData ( ) ; data . data ( holdData ) ; ApiSuccessResponse response = this . voiceApi . hold ( connId , data ) ; throwIfNotOk ( "holdCall" , response ) ; } catch ( ApiException e ) { throw new WorkspaceApiException ( "holdCall failed." , e ) ; } }
Place the specified call on hold .