public class OperationSetTelephonyConferencingSipImpl extends AbstractOperationSetTelephonyConferencing<ProtocolProviderServiceSipImpl,OperationSetBasicTelephonySipImpl,CallSipImpl,CallPeerSipImpl,javax.sip.address.Address> implements MethodProcessorListener
ELEMENT_DISPLAY_TEXT, ELEMENT_ENDPOINT, ELEMENT_MEDIA, ELEMENT_SRC_ID, ELEMENT_STATUS, ELEMENT_TYPE, ELEMENT_USER, ELEMENT_USERS, parentProvider
Constructor and Description |
---|
OperationSetTelephonyConferencingSipImpl(ProtocolProviderServiceSipImpl parentProvider)
Initializes a new OperationSetTelephonyConferencingSipImpl
instance which is to provide telephony conferencing services for the
specified SIP ProtocolProviderService implementation.
|
Modifier and Type | Method and Description |
---|---|
void |
callPeerAdded(CallPeerEvent event)
Notifies this CallChangeListener that a specific
CallPeer has been added to a specific Call.
|
void |
callPeerRemoved(CallPeerEvent event)
Notifies this CallChangeListener that a specific
CallPeer has been remove from a specific Call.
|
protected CallSipImpl |
createOutgoingCall()
Creates a new outgoing Call into which conference callees are to
be invited by this OperationSetTelephonyConferencing.
|
protected CallPeerSipImpl |
doInviteCalleeToCall(javax.sip.address.Address calleeAddress,
CallSipImpl call)
Invites a callee with a specific address to join a specific Call
for the purposes of telephony conferencing.
|
protected java.lang.String |
getLocalDisplayName()
Returns the display name for the local peer, which is to be used when
we send Conference Information.
|
protected java.lang.String |
getLocalEntity(CallPeer callPeer)
Returns a string to be used for the entity attribute of the
user element for the local peer, in a Conference Information
document to be sent to callPeer
|
protected void |
notifyCallPeers(Call call)
Notifies all CallPeers associated with a specific Call
about changes in the telephony conference-related information.
|
protected javax.sip.address.Address |
parseAddressString(java.lang.String calleeAddressString)
Parses a String value which represents a SIP address into a SIP
Address value.
|
void |
requestProcessed(CallPeerSipImpl sourceCallPeer,
javax.sip.message.Request request,
javax.sip.message.Response response)
Notifies this MethodProcessorListener that a specific
CallPeer has processed a specific SIP Request and has
replied to it with a specific SIP Response.
|
void |
responseProcessed(CallPeerSipImpl sourceCallPeer,
javax.sip.message.Response response,
javax.sip.message.Request request)
Notifies this MethodProcessorListener that a specific
CallPeer has processed a specific SIP Response and has
replied to it with a specific SIP Request.
|
basicTelephonyChanged, callBegun, callEnded, callStateChanged, createConfCall, createConfCall, getBasicTelephony, getConferenceInfoDiff, getCurrentConferenceInfo, getRemoteSourceID, incomingCallReceived, inviteCalleeToCall, notifyAll, outgoingCallCreated, propertyChange, registrationStateChanged, setConferenceInfoXML, setupConference, stripParametersFromAddress
public OperationSetTelephonyConferencingSipImpl(ProtocolProviderServiceSipImpl parentProvider)
parentProvider
- the SIP ProtocolProviderService
implementation which has requested the creation of the new instance and
for which the new instance is to provide telephony conferencing servicespublic void callPeerAdded(CallPeerEvent event)
callPeerAdded
in interface CallChangeListener
callPeerAdded
in class AbstractOperationSetTelephonyConferencing<ProtocolProviderServiceSipImpl,OperationSetBasicTelephonySipImpl,CallSipImpl,CallPeerSipImpl,javax.sip.address.Address>
event
- a CallPeerEvent which specifies the
CallPeer which has been added to a Callpublic void callPeerRemoved(CallPeerEvent event)
callPeerRemoved
in interface CallChangeListener
callPeerRemoved
in class AbstractOperationSetTelephonyConferencing<ProtocolProviderServiceSipImpl,OperationSetBasicTelephonySipImpl,CallSipImpl,CallPeerSipImpl,javax.sip.address.Address>
event
- a CallPeerEvent which specifies the
CallPeer which has been removed from a Callprotected CallSipImpl createOutgoingCall() throws OperationFailedException
createOutgoingCall
in class AbstractOperationSetTelephonyConferencing<ProtocolProviderServiceSipImpl,OperationSetBasicTelephonySipImpl,CallSipImpl,CallPeerSipImpl,javax.sip.address.Address>
OperationFailedException
- if anything goes wrongprotected CallPeerSipImpl doInviteCalleeToCall(javax.sip.address.Address calleeAddress, CallSipImpl call) throws OperationFailedException
AbstractOperationSetTelephonyConferencing.inviteCalleeToCall(String,Call)
.doInviteCalleeToCall
in class AbstractOperationSetTelephonyConferencing<ProtocolProviderServiceSipImpl,OperationSetBasicTelephonySipImpl,CallSipImpl,CallPeerSipImpl,javax.sip.address.Address>
calleeAddress
- the address of the callee to be invited to the
specified existing Callcall
- the existing Call to invite the callee with the
specified address toOperationFailedException
- if inviting the specified callee to the
specified Call failsprotected void notifyCallPeers(Call call)
Object.notifyAll()
notifies all CallPeers associated
with the telephony conference in which a specific Call is
participating.notifyCallPeers
in class AbstractOperationSetTelephonyConferencing<ProtocolProviderServiceSipImpl,OperationSetBasicTelephonySipImpl,CallSipImpl,CallPeerSipImpl,javax.sip.address.Address>
call
- the Call whose CallPeers are to be notified
about changes in the telephony conference-related informationprotected javax.sip.address.Address parseAddressString(java.lang.String calleeAddressString) throws OperationFailedException
parseAddressString
in class AbstractOperationSetTelephonyConferencing<ProtocolProviderServiceSipImpl,OperationSetBasicTelephonySipImpl,CallSipImpl,CallPeerSipImpl,javax.sip.address.Address>
calleeAddressString
- a String value which represents a SIP
address to be parsed into a SIP Address valueOperationFailedException
- if parsing the specified
calleeAddressString failspublic void requestProcessed(CallPeerSipImpl sourceCallPeer, javax.sip.message.Request request, javax.sip.message.Response response)
requestProcessed
in interface MethodProcessorListener
sourceCallPeer
- the CallPeer which has processed the
specified SIP Requestrequest
- the SIP Request which has been processed by
sourceCallPeerresponse
- the SIP Response sent by sourceCallPeer
as a reply to the specified SIP requestMethodProcessorListener.requestProcessed(CallPeerSipImpl, Request,
Response)
public void responseProcessed(CallPeerSipImpl sourceCallPeer, javax.sip.message.Response response, javax.sip.message.Request request)
responseProcessed
in interface MethodProcessorListener
sourceCallPeer
- the CallPeer which has processed the
specified SIP Responseresponse
- the SIP Response which has been processed by
sourceCallPeerrequest
- the SIP Request sent by sourceCallPeer
as a reply to the specified SIP responseMethodProcessorListener.responseProcessed(CallPeerSipImpl, Response,
Request)
protected java.lang.String getLocalEntity(CallPeer callPeer)
getLocalEntity
in class AbstractOperationSetTelephonyConferencing<ProtocolProviderServiceSipImpl,OperationSetBasicTelephonySipImpl,CallSipImpl,CallPeerSipImpl,javax.sip.address.Address>
callPeer
- The CallPeer for which we are creating a
Conference Information document.protected java.lang.String getLocalDisplayName()
getLocalDisplayName
in class AbstractOperationSetTelephonyConferencing<ProtocolProviderServiceSipImpl,OperationSetBasicTelephonySipImpl,CallSipImpl,CallPeerSipImpl,javax.sip.address.Address>
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.