// already present on newSdp.
// log.debug("Payload " + payloadId + " present on newSdp.");
AttributeField localAttribute = findAttributeByPayloadId(remoteAttribute.getAttributeName(), payloadId, localMedia );
Codec sipCodec = CodecFactory.getInstance().getSIPAudioCodec(Integer.valueOf( payloadId));
if (sipCodec != null) {
String localAttibuteValue = "";
if (localAttribute != null) {
localAttibuteValue = localAttribute.getAttributeValue();
} else {
log.info("Attribute not found on local media.");
}
String attributeValueResult = sipCodec.codecNegotiateAttribute(remoteAttribute.getAttributeName(),
localAttibuteValue, remoteAttribute.getAttributeValue());
if ((attributeValueResult != null) && (!"".equals(attributeValueResult))) {
AttributeField af = new AttributeField(remoteAttribute.getAttributeName(), attributeValueResult);
MediaDescriptor md = newSdp.getMediaDescriptor(localMedia.getMedia().getMedia());