code: protected RTPFormats buildRTPMap(RTPFormats profile) {
  		RTPFormats list = new RTPFormats();
  		Formats fmts = new Formats();
  		
  		if (this.rtpChannel.getOutputDsp() != null) {
  			Codec[] currCodecs = this.rtpChannel.getOutputDsp().getCodecs();
  			for (int i = 0; i < currCodecs.length; i++) {
  				if (currCodecs[i].getSupportedInputFormat().matches(LINEAR_FORMAT)) {
  					fmts.add(currCodecs[i].getSupportedOutputFormat());
  				}
  			}
  		}
  
  		fmts.add(DTMF_FORMAT);
  
  		if (fmts != null) {
  			for (int i = 0; i < fmts.size(); i++) {
  				RTPFormat f = profile.find(fmts.get(i));
  				if (f != null) {
  					list.add(f.clone());
  				}
  			}
  		}
  
  		return list;
  	}
docs: Constructs RTP payloads for given channel.
  
  @param profile
  AVProfile part for media type of given channel
  @return collection of RTP formats.