src/net/java/sip/communicator/impl/protocol/sip/CallPeerMediaHandlerSipImpl.java
/**
     * Parses <tt>offerString</tt>, creates the <tt>MediaStream</tt>s that it
     * describes and constructs a response representing the state of this
     * <tt>MediaHandler</tt>. The method takes into account the presence or
     * absence of previous negotiations and interprets the <tt>offerString</tt>
     * as an initial offer or a session update accordingly.
     *
     * @param offerString The SDP offer that we'd like to parse, handle and get
     * a response for.
     *
     * @return A <tt>String</tt> containing the SDP response representing the
     * current state of this <tt>MediaHandler</tt>.
     *
     * @throws OperationFailedException if parsing or handling
     * <tt>offerString</tt> fails or we have a problem while creating the
     * response.
     * @throws IllegalArgumentException if there's a problem with the format
     * or semantics of the <tt>offerString</tt>.
     */
Parses offerString, creates the MediaStreams that it
describes and constructs a response representing the state of this
MediaHandler. The method takes into account the presence or
absence of previous negotiations and interprets the offerString
as an initial offer or a session update accordingly.

@param offerString The SDP offer that we'd like to parse, handle and get
a response for.

@return A String containing the SDP response representing the
current state of this MediaHandler.

@throws OperationFailedException if parsing or handling
offerString fails or we have a problem while creating the
response.
@throws IllegalArgumentException if there's a problem with the format
or semantics of the offerString.
Parses offerString creates the MediaStreams that it describes and constructs a response representing the state of this MediaHandler . The method takes into account the presence or absence of previous negotiations and interprets the offerString as an initial offer or a session update accordingly . @param offerString The SDP offer that we ' d like to parse handle and get a response for . @return A String containing the SDP response representing the current state of this MediaHandler . @throws OperationFailedException if parsing or handling offerString fails or we have a problem while creating the response . @throws IllegalArgumentException if there ' s a problem with the format or semantics of the offerString .
public String processOffer(String offerString)
        throws OperationFailedException,
               IllegalArgumentException
    {
        SessionDescription offer = SdpUtils.parseSdpString(offerString);
        synchronized (offerAnswerLock)
        {
            SessionDescription answer = (localSess == null)
                    ? processFirstOffer(offer)
                    : processUpdateOffer(offer, localSess);
            if (getConfigurationService().getBoolean(
                    ProtocolProviderServiceSipImpl
                            .USE_SESSION_LEVEL_DIRECTION_IN_SDP,
                    false))
            {
                SdpUtils.setSessionDirection(answer);
            }
            return answer.toString();
        }
    }
public String processOffer ( String offerString ) throws OperationFailedException , IllegalArgumentException { SessionDescription offer = SdpUtils . parseSdpString ( offerString ) ; synchronized ( offerAnswerLock ) { SessionDescription answer = ( localSess == null ) ? processFirstOffer ( offer ) : processUpdateOffer ( offer , localSess ) ; if ( getConfigurationService ( ) . getBoolean ( ProtocolProviderServiceSipImpl . USE_SESSION_LEVEL_DIRECTION_IN_SDP , false ) ) { SdpUtils . setSessionDirection ( answer ) ; } return answer . toString ( ) ; } }
Parses <tt>offerString</tt>, creates the <tt>MediaStream</tt>s that it
 describes and constructs a response representing the state of this
 <tt>MediaHandler</tt>.
Parses <tt > offerString< / tt > creates the <tt > MediaStream< / tt > s that it describes and constructs a response representing the state of this <tt > MediaHandler< / tt > .