Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.impl.protocol.sip
Class OperationSetDTMFSipImpl

java.lang.Object
  extended by net.java.sip.communicator.impl.protocol.sip.OperationSetDTMFSipImpl
All Implemented Interfaces:
OperationSet, OperationSetDTMF

public class OperationSetDTMFSipImpl
extends Object
implements OperationSetDTMF

Class responsible for sending a DTMF Tone using SIP INFO or using rfc4733.

Author:
JM HEITZ, Vincent Lucas

Constructor Summary
OperationSetDTMFSipImpl(ProtocolProviderServiceSipImpl pps)
          Constructor.
 
Method Summary
(package private)  DTMFInfo getDtmfModeInfo()
          Returns DTMFInfo mode implementation.
 void startSendingDTMF(CallPeer callPeer, DTMFTone tone)
          Sends the DTMFTone tone to callPeer.
 void stopSendingDTMF(CallPeer callPeer)
          Stops sending DTMF.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OperationSetDTMFSipImpl

public OperationSetDTMFSipImpl(ProtocolProviderServiceSipImpl pps)
Constructor.

Parameters:
pps - the SIP Protocol provider service
Method Detail

startSendingDTMF

public void startSendingDTMF(CallPeer callPeer,
                             DTMFTone tone)
                      throws OperationFailedException
Sends the DTMFTone tone to callPeer.

Specified by:
startSendingDTMF in interface OperationSetDTMF
Parameters:
callPeer - the call peer to send tone to.
tone - the DTMF tone to send to callPeer.
Throws:
OperationFailedException - with code OPERATION_NOT_SUPPORTED if DTMF tones are not supported for callPeer.
NullPointerException - if one of the arguments is null.
IllegalArgumentException - in case the call peer does not belong to the underlying implementation.

stopSendingDTMF

public void stopSendingDTMF(CallPeer callPeer)
Stops sending DTMF.

Specified by:
stopSendingDTMF in interface OperationSetDTMF
Parameters:
callPeer - the call peer that we'd like to stop sending DTMF to.

getDtmfModeInfo

DTMFInfo getDtmfModeInfo()
Returns DTMFInfo mode implementation.

Returns:
DTMFInfo mode implementation.

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.