src/net/java/sip/communicator/impl/protocol/sip/CallPeerMediaHandlerSipImpl.java
/**
     * Generates an SDP <tt>MediaDescription</tt> for <tt>MediaDevice</tt>
     * taking account the local streaming preference for the corresponding
     * media type.
     *
     * @param transport the profile name (RTP/SAVP or RTP/AVP)
     * @param formats the list of <tt>MediaFormats</tt> that we'd like to
     * advertise.
     * @param connector the <tt>StreamConnector</tt> that we will be using
     * for the stream represented by the description we are creating.
     * @param direction the <tt>MediaDirection</tt> that we'd like to establish
     * the stream in.
     * @param extensions the list of <tt>RTPExtension</tt>s that we'd like to
     * advertise in the <tt>MediaDescription</tt>.
     *
     * @return a newly created <tt>MediaDescription</tt> representing streams
     * that we'd be able to handle.
     *
     * @throws OperationFailedException if generating the
     * <tt>MediaDescription</tt> fails for some reason.
     */
Generates an SDP MediaDescription for MediaDevice
taking account the local streaming preference for the corresponding
media type.

@param transport the profile name (RTP/SAVP or RTP/AVP)
@param formats the list of MediaFormats that we'd like to
advertise.
@param connector the StreamConnector that we will be using
for the stream represented by the description we are creating.
@param direction the MediaDirection that we'd like to establish
the stream in.
@param extensions the list of RTPExtensions that we'd like to
advertise in the MediaDescription.

@return a newly created MediaDescription representing streams
that we'd be able to handle.

@throws OperationFailedException if generating the
MediaDescription fails for some reason.
Generates an SDP MediaDescription for MediaDevice taking account the local streaming preference for the corresponding media type . @param transport the profile name ( RTP / SAVP or RTP / AVP ) @param formats the list of MediaFormats that we ' d like to advertise . @param connector the StreamConnector that we will be using for the stream represented by the description we are creating . @param direction the MediaDirection that we ' d like to establish the stream in . @param extensions the list of RTPExtensions that we ' d like to advertise in the MediaDescription . @return a newly created MediaDescription representing streams that we ' d be able to handle . @throws OperationFailedException if generating the MediaDescription fails for some reason .
private MediaDescription createMediaDescription(
                                             String             transport,
                                             List<MediaFormat>  formats,
                                             StreamConnector    connector,
                                             MediaDirection     direction,
                                             List<RTPExtension> extensions )
        throws OperationFailedException
    {
        return
            SdpUtils.createMediaDescription(
                    transport,
                    formats,
                    connector,
                    direction,
                    extensions,
                    getDynamicPayloadTypes(),
                    getRtpExtensionsRegistry());
    }
private MediaDescription createMediaDescription ( String transport , List < MediaFormat > formats , StreamConnector connector , MediaDirection direction , List < RTPExtension > extensions ) throws OperationFailedException { return SdpUtils . createMediaDescription ( transport , formats , connector , direction , extensions , getDynamicPayloadTypes ( ) , getRtpExtensionsRegistry ( ) ) ; }
Generates an SDP <tt>MediaDescription</tt> for <tt>MediaDevice</tt>
 taking account the local streaming preference for the corresponding
 media type.
Generates an SDP <tt > MediaDescription< / tt > for <tt > MediaDevice< / tt > taking account the local streaming preference for the corresponding media type .