src/net/java/sip/communicator/impl/protocol/jabber/TransportManagerJabberImpl.java
/**
     * Sends transport-related information received from the remote peer to the
     * associated Jiitsi Videobridge in order to update the (remote)
     * <tt>ColibriConferenceIQ.Channel</tt> associated with this
     * <tt>TransportManager</tt> instance.
     *
     * @param map a <tt>Map</tt> of media-IceUdpTransportPacketExtension pairs
     * which represents the transport-related information which has been
     * received from the remote peer and which is to be sent to the associated
     * Jitsi Videobridge
     */
Sends transport-related information received from the remote peer to the
associated Jiitsi Videobridge in order to update the (remote)
ColibriConferenceIQ.Channel associated with this
TransportManager instance.

@param map a Map of media-IceUdpTransportPacketExtension pairs
which represents the transport-related information which has been
received from the remote peer and which is to be sent to the associated
Jitsi Videobridge
Sends transport - related information received from the remote peer to the associated Jiitsi Videobridge in order to update the ( remote ) ColibriConferenceIQ . Channel associated with this TransportManager instance . @param map a Map of media - IceUdpTransportPacketExtension pairs which represents the transport - related information which has been received from the remote peer and which is to be sent to the associated Jitsi Videobridge
protected void sendTransportInfoToJitsiVideobridge(
            Map<String,IceUdpTransportPacketExtension> map)
        throws OperationFailedException
    {
        CallPeerJabberImpl peer = getCallPeer();
        boolean initiator = !peer.isInitiator();
        ColibriConferenceIQ conferenceRequest = null;
        for (Map.Entry<String,IceUdpTransportPacketExtension> e
                : map.entrySet())
        {
            String media = e.getKey();
            MediaType mediaType = MediaType.parseString(media);
            ColibriConferenceIQ.Channel channel
                = getColibriChannel(mediaType, false /* remote */);
            if (channel != null)
            {
                IceUdpTransportPacketExtension transport;
                try
                {
                    transport = cloneTransportAndCandidates(e.getValue());
                }
                catch (OperationFailedException ofe)
                {
                    transport = null;
                }
                if (transport == null)
                    continue;
                ColibriConferenceIQ.Channel channelRequest
                    = new ColibriConferenceIQ.Channel();
                channelRequest.setID(channel.getID());
                channelRequest.setInitiator(initiator);
                channelRequest.setTransport(transport);
                if (conferenceRequest == null)
                {
                    if (colibri == null)
                        break;
                    else
                    {
                        String id = colibri.getID();
                        if ((id == null) || (id.length() == 0))
                            break;
                        else
                        {
                            conferenceRequest = new ColibriConferenceIQ();
                            conferenceRequest.setID(id);
                            conferenceRequest.setTo(colibri.getFrom());
                            conferenceRequest.setType(IQ.Type.set);
                        }
                    }
                }
                conferenceRequest.getOrCreateContent(media).addChannel(
                        channelRequest);
            }
        }
        if (conferenceRequest != null)
        {
            try
            {
                peer.getProtocolProvider().getConnection().sendStanza(
                        conferenceRequest);
            }
            catch (NotConnectedException | InterruptedException e)
            {
                throw new OperationFailedException(
                    "Could not send conference request",
                    OperationFailedException.GENERAL_ERROR,
                    e
                );
            }
        }
    }
protected void sendTransportInfoToJitsiVideobridge ( Map < String , IceUdpTransportPacketExtension > map ) throws OperationFailedException { CallPeerJabberImpl peer = getCallPeer ( ) ; boolean initiator = ! peer . isInitiator ( ) ; ColibriConferenceIQ conferenceRequest = null ; for ( Map . Entry < String , IceUdpTransportPacketExtension > e : map . entrySet ( ) ) { String media = e . getKey ( ) ; MediaType mediaType = MediaType . parseString ( media ) ; ColibriConferenceIQ . Channel channel = getColibriChannel ( mediaType , false /* remote */ ) ; if ( channel != null ) { IceUdpTransportPacketExtension transport ; try { transport = cloneTransportAndCandidates ( e . getValue ( ) ) ; } catch ( OperationFailedException ofe ) { transport = null ; } if ( transport == null ) continue ; ColibriConferenceIQ . Channel channelRequest = new ColibriConferenceIQ . Channel ( ) ; channelRequest . setID ( channel . getID ( ) ) ; channelRequest . setInitiator ( initiator ) ; channelRequest . setTransport ( transport ) ; if ( conferenceRequest == null ) { if ( colibri == null ) break ; else { String id = colibri . getID ( ) ; if ( ( id == null ) || ( id . length ( ) == 0 ) ) break ; else { conferenceRequest = new ColibriConferenceIQ ( ) ; conferenceRequest . setID ( id ) ; conferenceRequest . setTo ( colibri . getFrom ( ) ) ; conferenceRequest . setType ( IQ . Type . set ) ; } } } conferenceRequest . getOrCreateContent ( media ) . addChannel ( channelRequest ) ; } } if ( conferenceRequest != null ) { try { peer . getProtocolProvider ( ) . getConnection ( ) . sendStanza ( conferenceRequest ) ; } catch ( NotConnectedException | InterruptedException e ) { throw new OperationFailedException ( "Could not send conference request" , OperationFailedException . GENERAL_ERROR , e ) ; } } }
Sends transport-related information received from the remote peer to the
 associated Jiitsi Videobridge in order to update the (remote)
 <tt>ColibriConferenceIQ.Channel</tt> associated with this
 <tt>TransportManager</tt> instance.
Sends transport - related information received from the remote peer to the associated Jiitsi Videobridge in order to update the ( remote ) <tt > ColibriConferenceIQ . Channel< / tt > associated with this <tt > TransportManager< / tt > instance .