mirror of
https://github.com/ACSPRI/queXS
synced 2024-04-02 12:12:16 +00:00
will only display record if on a call
This commit is contained in:
15
record.php
15
record.php
@@ -57,11 +57,16 @@ if (is_on_call($operator_id) == 3)
|
|||||||
if (VOIP_ENABLED)
|
if (VOIP_ENABLED)
|
||||||
{
|
{
|
||||||
$call_id = get_call($operator_id);
|
$call_id = get_call($operator_id);
|
||||||
include("functions/functions.voip.php");
|
if ($call_id)
|
||||||
$v = new voip();
|
{
|
||||||
$v->connect(VOIP_SERVER);
|
include("functions/functions.voip.php");
|
||||||
$v->beginRecord(get_extension($operator_id),"$case_id-$call_id-$operator_id-" . get_operator_time($operator_id,$format = "%Y-%m-%d-%H-%i-%S"));
|
$v = new voip();
|
||||||
print "<p>" . T_("Beginning recording...") . "</p>";
|
$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 "<p>" . T_("Beginning recording...") . "</p>";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
print "<p>" . T_("Not on a call, so not beginning a recording") . "</p>";
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user