public class DTMFInfo extends MethodProcessorAdapter
Constructor and Description |
---|
DTMFInfo(ProtocolProviderServiceSipImpl pps)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addDTMFListener(DTMFListener listener)
Registers the specified DTMFListener with this provider so that it could
be notified when incoming DTMF tone is received.
|
boolean |
processRequest(javax.sip.RequestEvent requestEvent)
Receives dtmf info requests.
|
boolean |
processResponse(javax.sip.ResponseEvent responseEvent)
Just look if the DTMF signal was well received, and log it
|
void |
removeDTMFListener(DTMFListener listener)
Removes the specified listener from the list of DTMF listeners.
|
void |
startSendingDTMF(CallPeerSipImpl callPeer,
org.jitsi.service.neomedia.DTMFTone tone)
Saves the tone we need to send and its start time.
|
void |
stopSendingDTMF(CallPeerSipImpl callPeer)
Sending of the currently saved tone.
|
processDialogTerminated, processIOException, processTimeout, processTransactionTerminated
public DTMFInfo(ProtocolProviderServiceSipImpl pps)
pps
- the SIP Protocol provider servicepublic void startSendingDTMF(CallPeerSipImpl callPeer, org.jitsi.service.neomedia.DTMFTone tone) throws OperationFailedException, java.lang.NullPointerException, java.lang.IllegalArgumentException
callPeer
- the call peer.tone
- the tone to transmit.OperationFailedException
java.lang.NullPointerException
java.lang.IllegalArgumentException
public void stopSendingDTMF(CallPeerSipImpl callPeer)
callPeer
- public boolean processResponse(javax.sip.ResponseEvent responseEvent)
processResponse
in interface MethodProcessor
processResponse
in class MethodProcessorAdapter
responseEvent
- the response eventpublic boolean processRequest(javax.sip.RequestEvent requestEvent)
processRequest
in interface MethodProcessor
processRequest
in class MethodProcessorAdapter
requestEvent
- requestEvent fired from the
ProtocolProviderServiceSipImpl
to the processor
representing a Request received from the networkpublic void addDTMFListener(DTMFListener listener)
listener
- the listener to register with this provider.public void removeDTMFListener(DTMFListener listener)
listener
- the listener to unregister.
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.