Dialogs matching the specified
* CallID, local and remote tags
*/
- public ListServerTransaction containing
@@ -2316,10 +2316,10 @@ private boolean processNotify(ServerTransaction serverTransaction,
}
Dialog dialog = serverTransaction.getDialog();
- CallPeerSipImpl participant
- = activeCallsRepository.findCallParticipant(dialog);
+ CallPeerSipImpl peer
+ = activeCallsRepository.findCallPeer(dialog);
- if (participant == null)
+ if (peer == null)
{
logger.debug("Received a stray refer NOTIFY request.");
return false;
@@ -2337,7 +2337,7 @@ private boolean processNotify(ServerTransaction serverTransaction,
"Failed to create OK response to refer NOTIFY request.";
logger.error(message, ex);
- participant.setState(CallPeerState.DISCONNECTED, message);
+ peer.setState(CallPeerState.DISCONNECTED, message);
return false;
}
try
@@ -2350,7 +2350,7 @@ private boolean processNotify(ServerTransaction serverTransaction,
"Failed to send OK response to refer NOTIFY request.";
logger.error(message, ex);
- participant.setState(CallPeerState.DISCONNECTED, message);
+ peer.setState(CallPeerState.DISCONNECTED, message);
return false;
}
@@ -2358,16 +2358,16 @@ private boolean processNotify(ServerTransaction serverTransaction,
&& !DialogUtils
.removeSubscriptionThenIsDialogAlive(dialog, "refer"))
{
- participant.setState(CallPeerState.DISCONNECTED);
+ peer.setState(CallPeerState.DISCONNECTED);
}
- if (!CallPeerState.DISCONNECTED.equals(participant.getState())
+ if (!CallPeerState.DISCONNECTED.equals(peer.getState())
&& !DialogUtils.isByeProcessed(dialog))
{
boolean dialogIsAlive;
try
{
- dialogIsAlive = sayBye(participant);
+ dialogIsAlive = sayBye(peer);
}
catch (OperationFailedException ex)
{
@@ -2378,7 +2378,7 @@ private boolean processNotify(ServerTransaction serverTransaction,
}
if (!dialogIsAlive)
{
- participant.setState(CallPeerState.DISCONNECTED);
+ peer.setState(CallPeerState.DISCONNECTED);
}
}
@@ -2453,11 +2453,11 @@ private boolean referToCallStateChanged(Call referToCall,
if (!DialogUtils.removeSubscriptionThenIsDialogAlive(dialog,
subscription))
{
- CallPeerSipImpl callParticipant =
- activeCallsRepository.findCallParticipant(dialog);
- if (callParticipant != null)
+ CallPeerSipImpl callPeer =
+ activeCallsRepository.findCallPeer(dialog);
+ if (callPeer != null)
{
- callParticipant.setState(CallPeerState.DISCONNECTED);
+ callPeer.setState(CallPeerState.DISCONNECTED);
}
}
return true;
@@ -2604,118 +2604,118 @@ private Request createRequest(Dialog dialog, String method)
/**
* Indicates a user request to end a call with the specified call
- * participant. Depending on the state of the call the method would send a
+ * peer. Depending on the state of the call the method would send a
* CANCEL, BYE, or BUSY_HERE and set the new state to DISCONNECTED.
*
- * @param participant the participant that we'd like to hang up on.
- * @throws ClassCastException if participant is not an instance of this
- * CallParticipantSipImpl.
+ * @param peer the peer that we'd like to hang up on.
+ * @throws ClassCastException if peer is not an instance of this
+ * CallPeerSipImpl.
* @throws OperationFailedException if we fail to terminate the call.
*/
- public synchronized void hangupCallPeer(CallPeer participant)
+ public synchronized void hangupCallPeer(CallPeer peer)
throws ClassCastException,
OperationFailedException
{
// do nothing if the call is already ended
- if (participant.getState().equals(CallPeerState.DISCONNECTED)
- || participant.getState().equals(CallPeerState.FAILED))
+ if (peer.getState().equals(CallPeerState.DISCONNECTED)
+ || peer.getState().equals(CallPeerState.FAILED))
{
- logger.debug("Ignoring a request to hangup a call participant "
+ logger.debug("Ignoring a request to hangup a call peer "
+ "that is already DISCONNECTED");
return;
}
- CallPeerSipImpl callParticipant =
- (CallPeerSipImpl) participant;
+ CallPeerSipImpl callPeer =
+ (CallPeerSipImpl) peer;
- CallPeerState participantState = callParticipant.getState();
- if (participantState.equals(CallPeerState.CONNECTED)
- || CallPeerState.isOnHold(participantState))
+ CallPeerState peerState = callPeer.getState();
+ if (peerState.equals(CallPeerState.CONNECTED)
+ || CallPeerState.isOnHold(peerState))
{
- sayBye(callParticipant);
- callParticipant.setState(CallPeerState.DISCONNECTED);
+ sayBye(callPeer);
+ callPeer.setState(CallPeerState.DISCONNECTED);
}
- else if (callParticipant.getState().equals(
+ else if (callPeer.getState().equals(
CallPeerState.CONNECTING)
- || callParticipant.getState().equals(
+ || callPeer.getState().equals(
CallPeerState.CONNECTING_WITH_EARLY_MEDIA)
- || callParticipant.getState().equals(
+ || callPeer.getState().equals(
CallPeerState.ALERTING_REMOTE_SIDE))
{
- if (callParticipant.getFirstTransaction() != null)
+ if (callPeer.getFirstTransaction() != null)
{
// Someone knows about us. Let's be polite and say we are
// leaving
- sayCancel(callParticipant);
+ sayCancel(callPeer);
}
- callParticipant.setState(CallPeerState.DISCONNECTED);
+ callPeer.setState(CallPeerState.DISCONNECTED);
}
- else if (participantState.equals(CallPeerState.INCOMING_CALL))
+ else if (peerState.equals(CallPeerState.INCOMING_CALL))
{
- callParticipant.setState(CallPeerState.DISCONNECTED);
- sayBusyHere(callParticipant);
+ callPeer.setState(CallPeerState.DISCONNECTED);
+ sayBusyHere(callPeer);
}
// For FAILE and BUSY we only need to update CALL_STATUS
- else if (participantState.equals(CallPeerState.BUSY))
+ else if (peerState.equals(CallPeerState.BUSY))
{
- callParticipant.setState(CallPeerState.DISCONNECTED);
+ callPeer.setState(CallPeerState.DISCONNECTED);
}
- else if (participantState.equals(CallPeerState.FAILED))
+ else if (peerState.equals(CallPeerState.FAILED))
{
- callParticipant.setState(CallPeerState.DISCONNECTED);
+ callPeer.setState(CallPeerState.DISCONNECTED);
}
else
{
- callParticipant.setState(CallPeerState.DISCONNECTED);
- logger.error("Could not determine call participant state!");
+ callPeer.setState(CallPeerState.DISCONNECTED);
+ logger.error("Could not determine call peer state!");
}
} // end call
/**
- * Sends an Internal Error response to callParticipant.
+ * Sends an Internal Error response to callPeer.
*
- * @param callParticipant the call participant that we need to say bye to.
+ * @param callPeer the call peer that we need to say bye to.
*
* @throws OperationFailedException if we failed constructing or sending a
* SIP Message.
*/
- public void sayInternalError(CallPeerSipImpl callParticipant)
+ public void sayInternalError(CallPeerSipImpl callPeer)
throws OperationFailedException
{
- sayError(callParticipant, Response.SERVER_INTERNAL_ERROR);
+ sayError(callPeer, Response.SERVER_INTERNAL_ERROR);
}
/**
* Send an error response with the errorCode code to
- * callParticipant.
+ * callPeer.
*
- * @param callParticipant the call participant that we need to say bye to.
+ * @param callPeer the call peer that we need to say bye to.
* @param errorCode the code that the response should have.
*
* @throws OperationFailedException if we failed constructing or sending a
* SIP Message.
*/
- public void sayError(CallPeerSipImpl callParticipant,
+ public void sayError(CallPeerSipImpl callPeer,
int errorCode)
throws OperationFailedException
{
- Dialog dialog = callParticipant.getDialog();
- callParticipant.setState(CallPeerState.FAILED);
+ Dialog dialog = callPeer.getDialog();
+ callPeer.setState(CallPeerState.FAILED);
if (dialog == null)
{
- logger.error("Failed to extract participant's associated dialog! "
+ logger.error("Failed to extract peer's associated dialog! "
+ "Ending Call!");
throw new OperationFailedException(
- "Failed to extract participant's associated dialog! "
+ "Failed to extract peer's associated dialog! "
+ "Ending Call!", OperationFailedException.INTERNAL_ERROR);
}
- Transaction transaction = callParticipant.getFirstTransaction();
+ Transaction transaction = callPeer.getFirstTransaction();
if (transaction == null || !dialog.isServer())
{
logger.error("Failed to extract a transaction"
+ " from the call's associated dialog!");
throw new OperationFailedException(
- "Failed to extract a transaction from the participant's "
+ "Failed to extract a transaction from the peer's "
+ "associated dialog!",
OperationFailedException.INTERNAL_ERROR);
}
@@ -2726,7 +2726,7 @@ public void sayError(CallPeerSipImpl callParticipant,
{
errorResponse =
protocolProvider.getMessageFactory().createResponse(errorCode,
- callParticipant.getFirstTransaction().getRequest());
+ callPeer.getFirstTransaction().getRequest());
protocolProvider.attachToTag(errorResponse, dialog);
}
catch (ParseException ex)
@@ -2754,19 +2754,19 @@ public void sayError(CallPeerSipImpl callParticipant,
} // internal error
/**
- * Sends a BYE request to callParticipant.
+ * Sends a BYE request to callPeer.
*
- * @param callParticipant the call participant that we need to say bye to.
+ * @param callPeer the call peer that we need to say bye to.
* @return true if the Dialog should be considered
* alive after sending the BYE request (e.g. when there're still
* active subscriptions); false, otherwise
* @throws OperationFailedException if we failed constructing or sending a
* SIP Message.
*/
- private boolean sayBye(CallPeerSipImpl callParticipant)
+ private boolean sayBye(CallPeerSipImpl callPeer)
throws OperationFailedException
{
- Dialog dialog = callParticipant.getDialog();
+ Dialog dialog = callPeer.getDialog();
Request bye = null;
try
@@ -2788,7 +2788,7 @@ private boolean sayBye(CallPeerSipImpl callParticipant)
OperationFailedException.INTERNAL_ERROR, ex);
}
- sendRequest(callParticipant.getJainSipProvider(), bye, dialog);
+ sendRequest(callPeer.getJainSipProvider(), bye, dialog);
/*
* Let subscriptions such as the ones associated with REFER requests
@@ -2809,17 +2809,17 @@ private boolean sayBye(CallPeerSipImpl callParticipant)
} // bye
/**
- * Sends a Cancel request to callParticipant.
+ * Sends a Cancel request to callPeer.
*
- * @param callParticipant the call participant that we need to cancel.
+ * @param callPeer the call peer that we need to cancel.
*
* @throws OperationFailedException we failed to construct or send the
* CANCEL request.
*/
- private void sayCancel(CallPeerSipImpl callParticipant)
+ private void sayCancel(CallPeerSipImpl callPeer)
throws OperationFailedException
{
- if (callParticipant.getDialog().isServer())
+ if (callPeer.getDialog().isServer())
{
logger.error("Cannot cancel a server transaction");
throw new OperationFailedException(
@@ -2828,12 +2828,12 @@ private void sayCancel(CallPeerSipImpl callParticipant)
}
ClientTransaction clientTransaction =
- (ClientTransaction) callParticipant.getFirstTransaction();
+ (ClientTransaction) callPeer.getFirstTransaction();
try
{
Request cancel = clientTransaction.createCancel();
ClientTransaction cancelTransaction =
- callParticipant.getJainSipProvider().getNewClientTransaction(
+ callPeer.getJainSipProvider().getNewClientTransaction(
cancel);
cancelTransaction.sendRequest();
logger.debug("sent request:\n" + cancel);
@@ -2846,17 +2846,17 @@ private void sayCancel(CallPeerSipImpl callParticipant)
} // cancel
/**
- * Sends a BUSY_HERE response to callParticipant.
+ * Sends a BUSY_HERE response to callPeer.
*
- * @param callParticipant the call participant that we need to send busy
+ * @param callPeer the call peer that we need to send busy
* tone to.
* @throws OperationFailedException if we fail to create or send the
* response
*/
- private void sayBusyHere(CallPeerSipImpl callParticipant)
+ private void sayBusyHere(CallPeerSipImpl callPeer)
throws OperationFailedException
{
- Request request = callParticipant.getFirstTransaction().getRequest();
+ Request request = callPeer.getFirstTransaction().getRequest();
Response busyHere = null;
try
{
@@ -2864,7 +2864,7 @@ private void sayBusyHere(CallPeerSipImpl callParticipant)
protocolProvider.getMessageFactory().createResponse(
Response.BUSY_HERE, request);
busyHere.setHeader(protocolProvider.getSipCommUserAgentHeader());
- protocolProvider.attachToTag(busyHere, callParticipant.getDialog());
+ protocolProvider.attachToTag(busyHere, callPeer.getDialog());
}
catch (ParseException ex)
{
@@ -2873,7 +2873,7 @@ private void sayBusyHere(CallPeerSipImpl callParticipant)
OperationFailedException.INTERNAL_ERROR, ex);
}
- if (!callParticipant.getDialog().isServer())
+ if (!callPeer.getDialog().isServer())
{
logger.error("Cannot send BUSY_HERE in a client transaction");
throw new OperationFailedException(
@@ -2881,7 +2881,7 @@ private void sayBusyHere(CallPeerSipImpl callParticipant)
OperationFailedException.INTERNAL_ERROR);
}
ServerTransaction serverTransaction =
- (ServerTransaction) callParticipant.getFirstTransaction();
+ (ServerTransaction) callPeer.getFirstTransaction();
try
{
@@ -2898,39 +2898,39 @@ private void sayBusyHere(CallPeerSipImpl callParticipant)
/**
* Indicates a user request to answer an incoming call from the specified
- * CallParticipant.
+ * CallPeer.
*
- * Sends an OK response to callParticipant. Make sure that the call
- * participant contains an sdp description when you call this method.
+ * Sends an OK response to callPeer. Make sure that the call
+ * peer contains an sdp description when you call this method.
*
- * @param participant the call participant that we need to send the ok to.
+ * @param peer the call peer that we need to send the ok to.
* @throws OperationFailedException if we fail to create or send the
* response.
*/
- public synchronized void answerCallPeer(CallPeer participant)
+ public synchronized void answerCallPeer(CallPeer peer)
throws OperationFailedException
{
- CallPeerSipImpl callParticipant =
- (CallPeerSipImpl) participant;
- Transaction transaction = callParticipant.getFirstTransaction();
- Dialog dialog = callParticipant.getDialog();
+ CallPeerSipImpl callPeer =
+ (CallPeerSipImpl) peer;
+ Transaction transaction = callPeer.getFirstTransaction();
+ Dialog dialog = callPeer.getDialog();
if (transaction == null || !dialog.isServer())
{
- callParticipant.setState(CallPeerState.DISCONNECTED);
+ callPeer.setState(CallPeerState.DISCONNECTED);
throw new OperationFailedException(
"Failed to extract a ServerTransaction "
+ "from the call's associated dialog!",
OperationFailedException.INTERNAL_ERROR);
}
- CallPeerState participantState = participant.getState();
+ CallPeerState peerState = peer.getState();
- if (participantState.equals(CallPeerState.CONNECTED)
- || CallPeerState.isOnHold(participantState))
+ if (peerState.equals(CallPeerState.CONNECTED)
+ || CallPeerState.isOnHold(peerState))
{
- logger.info("Ignoring user request to answer a CallParticipant "
- + "that is already connected. CP:" + participant);
+ logger.info("Ignoring user request to answer a CallPeer "
+ + "that is already connected. CP:" + peer);
return;
}
@@ -2939,12 +2939,12 @@ public synchronized void answerCallPeer(CallPeer participant)
try
{
ok =
- createOKResponse(callParticipant.getFirstTransaction()
+ createOKResponse(callPeer.getFirstTransaction()
.getRequest(), dialog);
}
catch (ParseException ex)
{
- callParticipant.setState(CallPeerState.DISCONNECTED);
+ callPeer.setState(CallPeerState.DISCONNECTED);
throwOperationFailedException(
"Failed to construct an OK response to an INVITE request",
OperationFailedException.INTERNAL_ERROR, ex);
@@ -2963,7 +2963,7 @@ public synchronized void answerCallPeer(CallPeer participant)
catch (ParseException ex)
{
// Shouldn't happen
- callParticipant.setState(CallPeerState.DISCONNECTED);
+ callPeer.setState(CallPeerState.DISCONNECTED);
throwOperationFailedException(
"Failed to create a content type header for the OK response",
OperationFailedException.INTERNAL_ERROR, ex);
@@ -2973,25 +2973,25 @@ public synchronized void answerCallPeer(CallPeer participant)
{
CallSession callSession =
SipActivator.getMediaService().createCallSession(
- callParticipant.getCall());
- ((CallSipImpl) callParticipant.getCall())
+ callPeer.getCall());
+ ((CallSipImpl) callPeer.getCall())
.setMediaCallSession(callSession);
- callSession.setSessionCreatorCallback(callParticipant);
+ callSession.setSessionCreatorCallback(callPeer);
- String sdpOffer = callParticipant.getSdpDescription();
+ String sdpOffer = callPeer.getSdpDescription();
String sdp;
// if the offer was in the invite create an sdp answer
if ((sdpOffer != null) && (sdpOffer.length() > 0))
{
- sdp = callSession.processSdpOffer(callParticipant, sdpOffer);
+ sdp = callSession.processSdpOffer(callPeer, sdpOffer);
// set the call url in case there was one
/**
* @todo this should be done in CallSession, once we move it
* here.
*/
- callParticipant.setCallInfoURL(callSession.getCallInfoURL());
+ callPeer.setCallInfoURL(callSession.getCallInfoURL());
}
// if there was no offer in the invite - create an offer
else
@@ -3009,7 +3009,7 @@ public synchronized void answerCallPeer(CallPeer participant)
"Failed to create an SDP description for an OK response "
+ "to an INVITE request!",
ex);
- this.sayError((CallPeerSipImpl) participant,
+ this.sayError((CallPeerSipImpl) peer,
Response.NOT_ACCEPTABLE_HERE);
}
catch (ParseException ex)
@@ -3020,7 +3020,7 @@ public synchronized void answerCallPeer(CallPeer participant)
logger.error(
"Failed to parse sdp data while creating invite request!",
ex);
- this.sayError((CallPeerSipImpl) participant,
+ this.sayError((CallPeerSipImpl) peer,
Response.NOT_ACCEPTABLE_HERE);
}
@@ -3035,7 +3035,7 @@ public synchronized void answerCallPeer(CallPeer participant)
}
catch (Exception ex)
{
- callParticipant.setState(CallPeerState.DISCONNECTED);
+ callPeer.setState(CallPeerState.DISCONNECTED);
throwOperationFailedException(
"Failed to send an OK response to an INVITE request",
OperationFailedException.NETWORK_FAILURE,
@@ -3066,35 +3066,35 @@ private Response createOKResponse(Request request, Dialog containingDialog)
}
/**
- * Creates a new call and call participant associated with
+ * Creates a new call and call peer associated with
* containingTransaction
*
* @param containingTransaction the transaction that created the call.
* @param sourceProvider the provider that the containingTransaction belongs
* to.
*
- * @return a new instance of a CallParticipantSipImpl corresponding
+ * @return a new instance of a CallPeerSipImpl corresponding
* to the containingTransaction.
*/
- private CallPeerSipImpl createCallParticipantFor(
+ private CallPeerSipImpl createCallPeerFor(
Transaction containingTransaction, SipProvider sourceProvider)
{
CallSipImpl call = new CallSipImpl(protocolProvider);
- CallPeerSipImpl callParticipant =
+ CallPeerSipImpl callPeer =
new CallPeerSipImpl(
containingTransaction.getDialog().getRemoteParty(),
call);
boolean incomingCall =
(containingTransaction instanceof ServerTransaction);
- callParticipant.setState(
+ callPeer.setState(
incomingCall ?
CallPeerState.INCOMING_CALL :
CallPeerState.INITIATING_CALL);
- callParticipant.setDialog(containingTransaction.getDialog());
- callParticipant.setFirstTransaction(containingTransaction);
- callParticipant.setJainSipProvider(sourceProvider);
+ callPeer.setDialog(containingTransaction.getDialog());
+ callPeer.setFirstTransaction(containingTransaction);
+ callPeer.setJainSipProvider(sourceProvider);
activeCallsRepository.addCall(call);
@@ -3103,7 +3103,7 @@ private CallPeerSipImpl createCallParticipantFor(
incomingCall ? CallEvent.CALL_RECEIVED : CallEvent.CALL_INITIATED,
call);
- return callParticipant;
+ return callPeer;
}
/**
@@ -3135,21 +3135,20 @@ public synchronized void shutdown()
{
CallSipImpl call = activeCalls.next();
- Iterator* The implementation sends silence through the audio stream. *
* - * @param participant the CallParticipant who receives the audio + * @param peer the CallPeer who receives the audio * stream to have its mute state set * @param mute true to mute the audio stream being sent to - * participant; otherwise, false + * peer; otherwise, false */ - public void setMute(CallPeer participant, boolean mute) + public void setMute(CallPeer peer, boolean mute) { - CallPeerSipImpl sipParticipant - = (CallPeerSipImpl) participant; + CallPeerSipImpl sipPeer = (CallPeerSipImpl) peer; - ((CallSipImpl) sipParticipant.getCall()) + ((CallSipImpl) sipPeer.getCall()) .getMediaCallSession().setMute(mute); - sipParticipant.setMute(mute); + sipPeer.setMute(mute); } /** * Returnstrue to indicate that the call associated with the
- * given participant is secured, otherwise returns false.
+ * given peer is secured, otherwise returns false.
*
* @return true to indicate that the call associated with the
- * given participant is secured, otherwise returns false.
+ * given peer is secured, otherwise returns false.
*/
- public boolean isSecure(CallPeer participant)
+ public boolean isSecure(CallPeer peer)
{
CallSession cs
- = ((CallSipImpl) participant.getCall()).getMediaCallSession();
+ = ((CallSipImpl) peer.getCall()).getMediaCallSession();
return (cs != null) && cs.getSecureCommunicationStatus();
}
/**
- * Sets the SAS verification property value for the given call participant.
+ * Sets the SAS verification property value for the given call peer.
*
- * @param participant the call participant, for which we set the
+ * @param peer the call peer, for which we set the
* @param isVerified indicates whether the SAS string is verified or not
- * for the given participant.
+ * for the given peer.
*/
- public boolean setSasVerified( CallPeer participant,
+ public boolean setSasVerified( CallPeer peer,
boolean isVerified)
{
CallSession cs
- = ((CallSipImpl) participant.getCall()).getMediaCallSession();
+ = ((CallSipImpl) peer.getCall()).getMediaCallSession();
return (cs != null) && cs.setZrtpSASVerification(isVerified);
}
@@ -3212,20 +3210,20 @@ public boolean setSasVerified( CallPeer participant,
/**
* Transfers (in the sense of call transfer) a specific
- * CallParticipant to a specific callee address.
+ * CallPeer to a specific callee address.
*
- * @param participant the CallParticipant to be transfered to
+ * @param peer the CallPeer to be transfered to
* the specified callee address
* @param target the Address the callee to transfer
- * participant to
+ * peer to
* @throws OperationFailedException
*/
- private void transfer(CallPeer participant, Address target)
+ private void transfer(CallPeer peer, Address target)
throws OperationFailedException
{
- CallPeerSipImpl sipParticipant =
- (CallPeerSipImpl) participant;
- Dialog dialog = sipParticipant.getDialog();
+ CallPeerSipImpl sipPeer =
+ (CallPeerSipImpl) peer;
+ Dialog dialog = sipPeer.getDialog();
Request refer = createRequest(dialog, Request.REFER);
HeaderFactory headerFactory = protocolProvider.getHeaderFactory();
@@ -3238,9 +3236,9 @@ private void transfer(CallPeer participant, Address target)
*/
refer.addHeader(
((HeaderFactoryImpl) headerFactory)
- .createReferredByHeader(sipParticipant.getJainSipAddress()));
+ .createReferredByHeader(sipPeer.getJainSipAddress()));
- sendRequest(sipParticipant.getJainSipProvider(), refer, dialog);
+ sendRequest(sipPeer.getJainSipProvider(), refer, dialog);
}
/*
@@ -3248,10 +3246,10 @@ private void transfer(CallPeer participant, Address target)
*
* @see
* net.java.sip.communicator.service.protocol.OperationSetAdvancedTelephony
- * #transfer(net.java.sip.communicator.service.protocol.CallParticipant,
- * net.java.sip.communicator.service.protocol.CallParticipant)
+ * #transfer(net.java.sip.communicator.service.protocol.CallPeer,
+ * net.java.sip.communicator.service.protocol.CallPeer)
*/
- public void transfer(CallPeer participant, CallPeer target)
+ public void transfer(CallPeer peer, CallPeer target)
throws OperationFailedException
{
Address targetAddress = parseAddressString(target.getAddress());
@@ -3289,24 +3287,31 @@ public void transfer(CallPeer participant, CallPeer target)
OperationFailedException.INTERNAL_ERROR, ex);
}
- putOnHold(participant);
+ putOnHold(peer);
putOnHold(target);
- transfer(participant, targetAddress);
+ transfer(peer, targetAddress);
}
- /*
- * (non-Javadoc)
+ /**
+ * Transfers (in the sense of call transfer) a specific
+ * CallPeer to a specific callee address which already
+ * participates in an active Call.
+ * + * The method is suitable for providing the implementation of attended call + * transfer (though no such requirement is imposed). + *
* - * @see - * net.java.sip.communicator.service.protocol.OperationSetAdvancedTelephony - * #transfer(net.java.sip.communicator.service.protocol.CallParticipant, - * String) + * @param peer theCallPeer to be transfered to
+ * the specified callee address
+ * @param target the address in the form of CallPeer of
+ * the callee to transfer peer to
+ * @throws OperationFailedException
*/
- public void transfer(CallPeer participant, String target)
+ public void transfer(CallPeer peer, String target)
throws OperationFailedException
{
- transfer(participant, parseAddressString(target));
+ transfer(peer, parseAddressString(target));
}
/**