src/net/java/sip/communicator/service/protocol/media/MediaHandler.java
/**
     * Registers all dynamic payload mappings and any payload type overrides
     * that are known to this <tt>MediaHandler</tt> with the specified
     * <tt>MediaStream</tt>.
     *
     * @param stream the <tt>MediaStream</tt> that we'd like to register our
     * dynamic payload mappings with.
     */
Registers all dynamic payload mappings and any payload type overrides
that are known to this MediaHandler with the specified
MediaStream.

@param stream the MediaStream that we'd like to register our
dynamic payload mappings with.
Registers all dynamic payload mappings and any payload type overrides that are known to this MediaHandler with the specified MediaStream . @param stream the MediaStream that we ' d like to register our dynamic payload mappings with .
private void registerDynamicPTsWithStream(
            CallPeerMediaHandler<?> callPeerMediaHandler,
            MediaStream stream)
    {
        DynamicPayloadTypeRegistry dynamicPayloadTypes
                = callPeerMediaHandler.getDynamicPayloadTypes();
        StringBuffer dbgMessage = new StringBuffer("Dynamic PT map: ");
        for (Map.Entry<MediaFormat, Byte> mapEntry
                : dynamicPayloadTypes.getMappings().entrySet())
        {
            byte pt = mapEntry.getValue();
            MediaFormat fmt = mapEntry.getKey();
            dbgMessage.append(pt).append("=").append(fmt).append("; ");
            stream.addDynamicRTPPayloadType(pt, fmt);
        }
        logger.info(dbgMessage);
        dbgMessage = new StringBuffer("PT overrides [");
        for (Map.Entry<Byte, Byte> overrideEntry
                : dynamicPayloadTypes.getMappingOverrides().entrySet())
        {
            byte originalPt = overrideEntry.getKey();
            byte overridePt = overrideEntry.getValue();
            dbgMessage.append(originalPt).append("->")
                        .append(overridePt).append(" ");
            stream.addDynamicRTPPayloadTypeOverride(originalPt, overridePt);
        }
        dbgMessage.append("]");
        logger.info(dbgMessage);
    }
private void registerDynamicPTsWithStream ( CallPeerMediaHandler < ? > callPeerMediaHandler , MediaStream stream ) { DynamicPayloadTypeRegistry dynamicPayloadTypes = callPeerMediaHandler . getDynamicPayloadTypes ( ) ; StringBuffer dbgMessage = new StringBuffer ( "Dynamic PT map: " ) ; for ( Map . Entry < MediaFormat , Byte > mapEntry : dynamicPayloadTypes . getMappings ( ) . entrySet ( ) ) { byte pt = mapEntry . getValue ( ) ; MediaFormat fmt = mapEntry . getKey ( ) ; dbgMessage . append ( pt ) . append ( "=" ) . append ( fmt ) . append ( "; " ) ; stream . addDynamicRTPPayloadType ( pt , fmt ) ; } logger . info ( dbgMessage ) ; dbgMessage = new StringBuffer ( "PT overrides [" ) ; for ( Map . Entry < Byte , Byte > overrideEntry : dynamicPayloadTypes . getMappingOverrides ( ) . entrySet ( ) ) { byte originalPt = overrideEntry . getKey ( ) ; byte overridePt = overrideEntry . getValue ( ) ; dbgMessage . append ( originalPt ) . append ( "->" ) . append ( overridePt ) . append ( " " ) ; stream . addDynamicRTPPayloadTypeOverride ( originalPt , overridePt ) ; } dbgMessage . append ( "]" ) ; logger . info ( dbgMessage ) ; }
Registers all dynamic payload mappings and any payload type overrides
 that are known to this <tt>MediaHandler</tt> with the specified
 <tt>MediaStream</tt>.
Registers all dynamic payload mappings and any payload type overrides that are known to this <tt > MediaHandler< / tt > with the specified <tt > MediaStream< / tt > .
//first register the mappings //now register whatever overrides we have for the above mappings