* Muting audio streams sent from the call is implementation specific * and one of the possible approaches to it is sending silence. *
* * @param call the Call whose mute state is to be set * @param mute true to mute the call streams being sent to * peers; otherwise, false */ public void setMute(Call call, boolean mute) { /* * While throwing UnsupportedOperationException may be a possible * approach, putOnHold/putOffHold just do nothing when not supported so * this implementation takes inspiration from them. */ } /** * Creates a new Recorder which is to record the specified * Call (into a file which is to be specified when starting the * returned Recorder). ** AbstractOperationSetBasicTelephony implements the described * functionality for MediaAwareCall only; otherwise, does nothing * and just returns null. *
* * @param call the Call which is to be recorded by the returned * Recorder when the latter is started * @return a new Recorder which is to record the specified * call (into a file which is to be specified when starting the * returned Recorder) * @throws OperationFailedException if anything goes wrong while creating * the new Recorder for the specified call * @see OperationSetBasicTelephony#createRecorder(Call) */ public Recorder createRecorder(Call call) throws OperationFailedException { return (call instanceof MediaAwareCall, ?, ?>) ? ((MediaAwareCall, ?, ?>) call).createRecorder() : null; } }