class OriginateAction {
/**
* Sets the codecs to use for the call.<p>
* Available since Asterisk 1.6.
*
* @param codecs list of codecs to use for the call.
* @since 1.0.0
*/
public void setCodecs(List<String> codecs)
{
if (codecs == null || codecs.isEmpty())
{
this.codecs = null;
return;
}
Iterator<String> iter = codecs.iterator();
StringBuffer buffer = new StringBuffer(iter.next());
while (iter.hasNext())
{
buffer.append(",").append(iter.next());
}
this.codecs = buffer.toString();
}
}