2
0
mirror of https://github.com/ACSPRI/queXS synced 2024-04-02 12:12:16 +00:00

works properly if VOIP is disabled

This commit is contained in:
azammitdcarf
2008-10-16 22:23:20 +00:00
parent 76d2389bb2
commit b7aea5f581

View File

@@ -152,12 +152,15 @@ if (isset($_POST['submit']))
$call_attempt_id = get_call_attempt($operator_id); $call_attempt_id = get_call_attempt($operator_id);
$respondent_id = get_respondent_id($call_attempt_id); $respondent_id = get_respondent_id($call_attempt_id);
$call_id = get_call($operator_id,$respondent_id,$contact_phone_id); $call_id = get_call($operator_id,$respondent_id,$contact_phone_id);
if (VOIP_ENABLED && $call_id) if ($call_id)
{ {
include("functions/functions.voip.php"); if (VOIP_ENABLED)
$v = new voip(); {
$v->connect(VOIP_SERVER); include("functions/functions.voip.php");
$v->dial(get_extension($operator_id),get_call_number($call_id)); $v = new voip();
$v->connect(VOIP_SERVER);
$v->dial(get_extension($operator_id),get_call_number($call_id));
}
if (is_respondent_selection($operator_id)) if (is_respondent_selection($operator_id))
$btext = "onload='openParentObject(\"main-content\",\"rs_intro.php\"); top.close();'"; $btext = "onload='openParentObject(\"main-content\",\"rs_intro.php\"); top.close();'";
else else
@@ -175,10 +178,10 @@ if (isset($_POST['submit']))
$v = new voip(); $v = new voip();
$v->connect(VOIP_SERVER); $v->connect(VOIP_SERVER);
$v->hangup(get_extension($operator_id)); $v->hangup(get_extension($operator_id));
//disable recording
$newtext = T_("Start REC");
xhtml_head(T_("Call"),true,array("css/call.css"),array("js/window.js"),"onload='toggleRec(\"$newtext\",\"record.php?start=start\",\"offline\"); top.close();'");
} }
//disable recording
$newtext = T_("Start REC");
xhtml_head(T_("Call"),true,array("css/call.css"),array("js/window.js"),"onload='toggleRec(\"$newtext\",\"record.php?start=start\",\"offline\"); top.close();'");
} }
else else
{ {
@@ -189,10 +192,11 @@ if (isset($_POST['submit']))
$v = new voip(); $v = new voip();
$v->connect(VOIP_SERVER); $v->connect(VOIP_SERVER);
$v->hangup(get_extension($operator_id)); $v->hangup(get_extension($operator_id));
//disable recording
$newtext = T_("Start REC");
xhtml_head(T_("Call"),true,array("css/call.css"),array("js/window.js"),"onload='toggleRec(\"$newtext\",\"record.php?start=start\",\"offline\"); top.close();'");
} }
//disable recording
$newtext = T_("Start REC");
xhtml_head(T_("Call"),true,array("css/call.css"),array("js/window.js"),"onload='toggleRec(\"$newtext\",\"record.php?start=start\",\"offline\"); top.close();'");
} }
print "<p></p>"; //for XHTML print "<p></p>"; //for XHTML