getCodecs('audio', true); if (!empty($_REQUEST['id'])) { $dev_id = $_REQUEST['id']; $db_res = $this->get_db_SccpTableData('get_sccpdevice_byid', array("id" => $dev_id)); if (!empty($db_res['allow'])) { $i = 1; foreach(explode(';', $db_res['allow']) as $c){ $codec_list[$c] = $i; $i ++; } foreach ($sccp_codec as $c => $v) { if (!isset($codec_list[$c])) { $codec_list[$c] = false; } } } } else { $codec_list = $sccp_codec; } ?>