/** * Handles and RTCP SDES packet. * * @param pkt the packet to handle. */ private void addSDES(RawPacket pkt) { if (USE_CNAME_AS_ENDPOINT_ID) { for (CNAMEItem item : getCnameItems(pkt)) { SSRCDesc ssrc = getSSRCDesc(item.ssrc); if (ssrc.endpointId == null) { synchronized (ssrc) { if (ssrc.endpointId == null) ssrc.endpointId = item.cname; } } } } }
/** {@inheritDoc} */ public void setEndpoint(long ssrc, String endpointId) { SSRCDesc ssrcDesc = getSSRCDesc(ssrc); synchronized (ssrcDesc) { ssrcDesc.endpointId = endpointId; } }