src/net/java/sip/communicator/impl/protocol/jabber/CallJabberImpl.java
/**
     * Updates the state of the local DTLS-SRTP endpoint (i.e. the local
     * <tt>DtlsControl</tt> instance) from the state of the remote DTLS-SRTP
     * endpoint represented by a specific <tt>ColibriConferenceIQ.Channel</tt>.
     *
     * @param peer the <tt>CallPeer</tt> associated with the method invocation
     * @param channel the <tt>ColibriConferenceIQ.Channel</tt> which represents
     * the state of the remote DTLS-SRTP endpoint
     * @param mediaType the <tt>MediaType</tt> of the media to be transmitted
     * over the DTLS-SRTP session
     */
Updates the state of the local DTLS-SRTP endpoint  from the state of the remote DTLS-SRTP
endpoint represented by a specific ColibriConferenceIQ.Channel.

@param peer the CallPeer associated with the method invocation
@param channel the ColibriConferenceIQ.Channel which represents
the state of the remote DTLS-SRTP endpoint
@param mediaType the MediaType of the media to be transmitted
over the DTLS-SRTP session
Updates the state of the local DTLS - SRTP endpoint from the state of the remote DTLS - SRTP endpoint represented by a specific ColibriConferenceIQ . Channel . @param peer the CallPeer associated with the method invocation @param channel the ColibriConferenceIQ . Channel which represents the state of the remote DTLS - SRTP endpoint @param mediaType the MediaType of the media to be transmitted over the DTLS - SRTP session
private boolean addDtlsAdvertisedEncryptions(
            CallPeerJabberImpl peer,
            ColibriConferenceIQ.Channel channel,
            MediaType mediaType)
    {
        CallPeerMediaHandlerJabberImpl peerMediaHandler
            = peer.getMediaHandler();
        DtlsControl dtlsControl
            = (DtlsControl)
                peerMediaHandler.getSrtpControls().get(
                        mediaType,
                        SrtpControlType.DTLS_SRTP);
        if (dtlsControl != null)
        {
            dtlsControl.setSetup(
                    peer.isInitiator()
                        ? DtlsControl.Setup.ACTIVE
                        : DtlsControl.Setup.PASSIVE);
        }
        IceUdpTransportPacketExtension remoteTransport = channel.getTransport();
        return
            peerMediaHandler.addDtlsAdvertisedEncryptions(
                    true,
                    remoteTransport,
                    mediaType,
                    false);
    }
private boolean addDtlsAdvertisedEncryptions ( CallPeerJabberImpl peer , ColibriConferenceIQ . Channel channel , MediaType mediaType ) { CallPeerMediaHandlerJabberImpl peerMediaHandler = peer . getMediaHandler ( ) ; DtlsControl dtlsControl = ( DtlsControl ) peerMediaHandler . getSrtpControls ( ) . get ( mediaType , SrtpControlType . DTLS_SRTP ) ; if ( dtlsControl != null ) { dtlsControl . setSetup ( peer . isInitiator ( ) ? DtlsControl . Setup . ACTIVE : DtlsControl . Setup . PASSIVE ) ; } IceUdpTransportPacketExtension remoteTransport = channel . getTransport ( ) ; return peerMediaHandler . addDtlsAdvertisedEncryptions ( true , remoteTransport , mediaType , false ) ; }
Updates the state of the local DTLS-SRTP endpoint (i.e.
Updates the state of the local DTLS - SRTP endpoint ( i . e .