* @copyright Deakin University 2007,2008 * @package queXS * @subpackage user * @link http://www.deakin.edu.au/dcarf/ queXS was writen for DCARF - Deakin Computer Assisted Research Facility * @license http://opensource.org/licenses/gpl-2.0.php The GNU General Public License (GPL) Version 2 * */ /** * Configuration file */ include ("config.inc.php"); /** * XHTML functions */ include ("functions/functions.xhtml.php"); /** * Operator functions */ include("functions/functions.operator.php"); $operator_id = get_operator_id(); $case_id = get_case_id($operator_id); if (is_on_call($operator_id) == 3) { if (isset($_GET['start'])) { $newtext = T_("Stop REC"); xhtml_head(T_("Record"),true,array("css/call.css"),array("js/window.js"),"onload='toggleRec(\"$newtext\",\"record.php?stop=stop\",\"online\")'"); if (VOIP_ENABLED) { $call_id = get_call($operator_id); include("functions/functions.voip.php"); $v = new voip(); $v->connect(VOIP_SERVER); $v->beginRecord(get_extension($operator_id),"$case_id-$call_id-$operator_id-" . get_operator_time($operator_id,$format = "%Y-%m-%d-%H-%i-%S")); print "

" . T_("Beginning recording...") . "

"; } else { print "

" . T_("Begin the manual recording now...") . "

"; } } else if (isset($_GET['stop'])) { $newtext = T_("Start REC"); xhtml_head(T_("Record"),true,array("css/call.css"),array("js/window.js"),"onload='toggleRec(\"$newtext\",\"record.php?start=start\",\"offline\")'"); if (VOIP_ENABLED) { include("functions/functions.voip.php"); $v = new voip(); $v->connect(VOIP_SERVER); $v->endRecord(get_extension($operator_id)); print "

" . T_("Stopping recording...") . "

"; } else { print "

" . T_("Stop the manual recording now...") . "

"; } } } else { xhtml_head(T_("Record"),true,array("css/call.css")); print "

" . T_("Not on a call, so not beginning a recording") . "

"; } xhtml_foot(); ?>