src/net/java/sip/communicator/impl/protocol/jabber/CallPeerMediaHandlerJabberImpl.java
/**
     * Adds a <tt>SourcePacketExtension</tt> as a child element of
     * <tt>description</tt>. See XEP-0339.
     *
     * @param description the <tt>RtpDescriptionPacketExtension</tt> to which
     * a child element will be added.
     * @param ssrc the SSRC for the <tt>SourcePacketExtension</tt> to use.
     */
Adds a SourcePacketExtension as a child element of
description.

@param description the RtpDescriptionPacketExtension to which
a child element will be added.
@param ssrc the SSRC for the SourcePacketExtension to use.
Adds a SourcePacketExtension as a child element of description . @param description the RtpDescriptionPacketExtension to which a child element will be added . @param ssrc the SSRC for the SourcePacketExtension to use .
private void addSourceExtension(RtpDescriptionPacketExtension description,
                                    long ssrc)
    {
        MediaType type = MediaType.parseString(description.getMedia());
        SourcePacketExtension sourcePacketExtension
                = new SourcePacketExtension();
        sourcePacketExtension.setSSRC(ssrc);
        sourcePacketExtension.addChildExtension(
                new ParameterPacketExtension("cname",
                                             LibJitsi.getMediaService()
                                                .getRtpCname()));
        sourcePacketExtension.addChildExtension(
                new ParameterPacketExtension("msid", getMsid(type)));
        sourcePacketExtension.addChildExtension(
                new ParameterPacketExtension("mslabel", getMsLabel()));
        sourcePacketExtension.addChildExtension(
                new ParameterPacketExtension("label", getLabel(type)));
        description.addChildExtension(sourcePacketExtension);
    }
private void addSourceExtension ( RtpDescriptionPacketExtension description , long ssrc ) { MediaType type = MediaType . parseString ( description . getMedia ( ) ) ; SourcePacketExtension sourcePacketExtension = new SourcePacketExtension ( ) ; sourcePacketExtension . setSSRC ( ssrc ) ; sourcePacketExtension . addChildExtension ( new ParameterPacketExtension ( "cname" , LibJitsi . getMediaService ( ) . getRtpCname ( ) ) ) ; sourcePacketExtension . addChildExtension ( new ParameterPacketExtension ( "msid" , getMsid ( type ) ) ) ; sourcePacketExtension . addChildExtension ( new ParameterPacketExtension ( "mslabel" , getMsLabel ( ) ) ) ; sourcePacketExtension . addChildExtension ( new ParameterPacketExtension ( "label" , getLabel ( type ) ) ) ; description . addChildExtension ( sourcePacketExtension ) ; }
Adds a <tt>SourcePacketExtension</tt> as a child element of
 <tt>description</tt>.
Adds a <tt > SourcePacketExtension< / tt > as a child element of <tt > description< / tt > .