/* * SIP Communicator, the OpenSource Java VoIP and Instant Messaging client. * * Distributable under LGPL license. * See terms of license at gnu.org. */ package net.java.sip.communicator.service.protocol; /** * An OperationSet that allows other modules to send DMF tones through * this protocol provider. * * @author JM HEITZ */ public interface OperationSetDTMF extends OperationSet { /** * Sends the DTMFTone tone to callPeer. * * @param callPeer the call peer to send tone to. * @param tone the DTMF tone to send to callPeer. * * @throws OperationFailedException with code OPERATION_NOT_SUPPORTED if * DTMF tones are not supported for callPeer. * * @throws IllegalArgumentException in case the call peer does not * belong to the underlying implementation. */ public void startSendingDTMF(CallPeer callPeer, DTMFTone tone) throws OperationFailedException; /** * Stop sending of the currently transmitting DTMF tone. * * @param callPeer the call peer to stop send tone to. */ public void stopSendingDTMF(CallPeer callPeer); }