src/net/java/sip/communicator/impl/protocol/sip/CallPeerMediaHandlerSipImpl.java
/**
     * Parses, handles <tt>newOffer</tt>, and produces an update answer
     * representing the current state of this <tt>MediaHandler</tt>.
     *
     * @param newOffer the new SDP description that we are receiving as an
     * update to our current state.
     * @param previousAnswer the <tt>SessionDescripiton</tt> that we last sent
     * as an answer to the previous offer currently updated by
     * <tt>newOffer</tt> is updating.
     *
     * @return an answer that updates <tt>previousAnswer</tt>.
     *
     * @throws OperationFailedException if we have a problem initializing the
     * <tt>MediaStream</tt>s as suggested by <tt>newOffer</tt>
     * @throws IllegalArgumentException if there's a problem with the syntax
     * or semantics of <tt>newOffer</tt>.
     */
Parses, handles newOffer, and produces an update answer
representing the current state of this MediaHandler.

@param newOffer the new SDP description that we are receiving as an
update to our current state.
@param previousAnswer the SessionDescripiton that we last sent
as an answer to the previous offer currently updated by
newOffer is updating.

@return an answer that updates previousAnswer.

@throws OperationFailedException if we have a problem initializing the
MediaStreams as suggested by newOffer
@throws IllegalArgumentException if there's a problem with the syntax
or semantics of newOffer.
Parses handles newOffer and produces an update answer representing the current state of this MediaHandler . @param newOffer the new SDP description that we are receiving as an update to our current state . @param previousAnswer the SessionDescripiton that we last sent as an answer to the previous offer currently updated by newOffer is updating . @return an answer that updates previousAnswer . @throws OperationFailedException if we have a problem initializing the MediaStreams as suggested by newOffer @throws IllegalArgumentException if there ' s a problem with the syntax or semantics of newOffer .
private SessionDescription processUpdateOffer(
                                           SessionDescription newOffer,
                                           SessionDescription previousAnswer)
        throws OperationFailedException,
               IllegalArgumentException
    {
        List<MediaDescription> answerDescriptions
            = createMediaDescriptionsForAnswer(newOffer);
        SessionDescription newAnswer
            = SdpUtils.createSessionUpdateDescription(
                    previousAnswer,
                    getTransportManager().getLastUsedLocalHost(),
                    answerDescriptions);
        this.localSess = newAnswer;
        return localSess;
    }
private SessionDescription processUpdateOffer ( SessionDescription newOffer , SessionDescription previousAnswer ) throws OperationFailedException , IllegalArgumentException { List < MediaDescription > answerDescriptions = createMediaDescriptionsForAnswer ( newOffer ) ; SessionDescription newAnswer = SdpUtils . createSessionUpdateDescription ( previousAnswer , getTransportManager ( ) . getLastUsedLocalHost ( ) , answerDescriptions ) ; this . localSess = newAnswer ; return localSess ; }
Parses, handles <tt>newOffer</tt>, and produces an update answer
 representing the current state of this <tt>MediaHandler</tt>.
Parses handles <tt > newOffer< / tt > and produces an update answer representing the current state of this <tt > MediaHandler< / tt > .
// wrap everything up in a session description