FreePBX Open Source - Codecs
This class will determine the codecs that are avalible for use in FreePBX from Asterisk, it will first try to query Asterisk itself with a fallback to our hard coded defaults.
It can be called as so:
FreePBX::Codecs()->getAll();getAll()
/**
* Get all Avalible Codecs
* @return array Array of usable Codecs
*/
public function getAll() {}getAudio()
/**
* Get all usable Audio Codecs
* @param {bool} $defaults = false Whether to define the initial default ordering
*/
public function getAudio($defaults = false) {}getVideo()
/**
* Get all usable Video Codecs
* @param {bool} $defaults = false Whether to define the initial default ordering
*/
public function getVideo($defaults = false) {}getText()
/**
* Get all usable Text Codecs
* @param {bool} $defaults = false Whether to define the initial default ordering
*/
public function getText($defaults = false) {}getImage()
/**
* Get all usable Image Codecs
* @param {bool} $defaults = false Whether to define the initial default ordering
*/
public function getImage($defaults = false) {}