Call Broadcast: Add controls for Voicemail Detection.
This commit is contained in:
parent
a7b28b21d5
commit
50b91d2f35
|
|
@ -35,7 +35,7 @@
|
||||||
$apps[$x]['menu'][0]['groups'][] = "admin";
|
$apps[$x]['menu'][0]['groups'][] = "admin";
|
||||||
$apps[$x]['menu'][0]['groups'][] = "superadmin";
|
$apps[$x]['menu'][0]['groups'][] = "superadmin";
|
||||||
$apps[$x]['menu'][0]['path'] = "/app/call_broadcast/call_broadcast.php";
|
$apps[$x]['menu'][0]['path'] = "/app/call_broadcast/call_broadcast.php";
|
||||||
|
|
||||||
//permission details
|
//permission details
|
||||||
$apps[$x]['permissions'][0]['name'] = "call_broadcast_view";
|
$apps[$x]['permissions'][0]['name'] = "call_broadcast_view";
|
||||||
$apps[$x]['permissions'][0]['menu']['uuid'] = "50153bbf-78c5-b49e-7bd9-4b3e4b1134e6";
|
$apps[$x]['permissions'][0]['menu']['uuid'] = "50153bbf-78c5-b49e-7bd9-4b3e4b1134e6";
|
||||||
|
|
@ -136,6 +136,10 @@
|
||||||
$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
|
$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
|
||||||
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
|
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
|
||||||
$z++;
|
$z++;
|
||||||
|
$apps[$x]['db'][$y]['fields'][$z]['name'] = "broadcast_avmd";
|
||||||
|
$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
|
||||||
|
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
|
||||||
|
$z++;
|
||||||
$apps[$x]['db'][$y]['fields'][$z]['name'] = "broadcast_destination_data";
|
$apps[$x]['db'][$y]['fields'][$z]['name'] = "broadcast_destination_data";
|
||||||
$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
|
$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
|
||||||
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
|
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
|
||||||
|
|
|
||||||
|
|
@ -133,6 +133,26 @@
|
||||||
$text['description-phone']['pt-pt'] = "Opcional, definir uma lista de números de telefone, um por linha, no seguinte formato: 210000000 | Apelido, Primeiro Nome";
|
$text['description-phone']['pt-pt'] = "Opcional, definir uma lista de números de telefone, um por linha, no seguinte formato: 210000000 | Apelido, Primeiro Nome";
|
||||||
$text['description-phone']['fr-fr'] = "Optionnel, Insérer une liste de numéros de téléphone, un par ligne, dans le format suivant ; 0123456789 | Nom, Prénom";
|
$text['description-phone']['fr-fr'] = "Optionnel, Insérer une liste de numéros de téléphone, un par ligne, dans le format suivant ; 0123456789 | Nom, Prénom";
|
||||||
|
|
||||||
|
$text['label-avmd']['en-us'] = "Voicemail Detection";
|
||||||
|
$text['label-avmd']['es-cl'] = "";
|
||||||
|
$text['label-avmd']['pt-pt'] = "";
|
||||||
|
$text['label-avmd']['fr-fr'] = "";
|
||||||
|
|
||||||
|
$text['option-true']['en-us'] = "True";
|
||||||
|
$text['option-true']['es-cl'] = "Verdadero";
|
||||||
|
$text['option-true']['pt-pt'] = "Sim";
|
||||||
|
$text['option-true']['fr-fr'] = "Oui";
|
||||||
|
|
||||||
|
$text['option-false']['en-us'] = "False";
|
||||||
|
$text['option-false']['es-cl'] = "Falso";
|
||||||
|
$text['option-false']['pt-pt'] = "Não";
|
||||||
|
$text['option-false']['fr-fr'] = "Non";
|
||||||
|
|
||||||
|
$text['description-avmd']['en-us'] = "Select whether to enable or disable the detection of voicemail messaging and answering machine systems.";
|
||||||
|
$text['description-avmd']['es-cl'] = "";
|
||||||
|
$text['description-avmd']['pt-pt'] = "";
|
||||||
|
$text['description-avmd']['fr-fr'] = "";
|
||||||
|
|
||||||
$text['label-description']['en-us'] = "Description";
|
$text['label-description']['en-us'] = "Description";
|
||||||
$text['label-description']['es-cl'] = "Descripción";
|
$text['label-description']['es-cl'] = "Descripción";
|
||||||
$text['label-description']['pt-pt'] = "Descrição";
|
$text['label-description']['pt-pt'] = "Descrição";
|
||||||
|
|
|
||||||
|
|
@ -60,6 +60,7 @@ else {
|
||||||
$broadcast_caller_id_number = check_str($_POST["broadcast_caller_id_number"]);
|
$broadcast_caller_id_number = check_str($_POST["broadcast_caller_id_number"]);
|
||||||
$broadcast_destination_type = check_str($_POST["broadcast_destination_type"]);
|
$broadcast_destination_type = check_str($_POST["broadcast_destination_type"]);
|
||||||
$broadcast_phone_numbers = check_str($_POST["broadcast_phone_numbers"]);
|
$broadcast_phone_numbers = check_str($_POST["broadcast_phone_numbers"]);
|
||||||
|
$broadcast_avmd = check_str($_POST["broadcast_avmd"]);
|
||||||
$broadcast_destination_data = check_str($_POST["broadcast_destination_data"]);
|
$broadcast_destination_data = check_str($_POST["broadcast_destination_data"]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -80,6 +81,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
||||||
//if (strlen($broadcast_caller_id_number) == 0) { $msg .= "Please provide: Caller ID Number<br>\n"; }
|
//if (strlen($broadcast_caller_id_number) == 0) { $msg .= "Please provide: Caller ID Number<br>\n"; }
|
||||||
//if (strlen($broadcast_destination_type) == 0) { $msg .= "Please provide: Type<br>\n"; }
|
//if (strlen($broadcast_destination_type) == 0) { $msg .= "Please provide: Type<br>\n"; }
|
||||||
//if (strlen($broadcast_phone_numbers) == 0) { $msg .= "Please provide: Phone Number List<br>\n"; }
|
//if (strlen($broadcast_phone_numbers) == 0) { $msg .= "Please provide: Phone Number List<br>\n"; }
|
||||||
|
//if (strlen($broadcast_avmd) == 0) { $msg .= "Please provide: Voicemail Detection<br>\n"; }
|
||||||
//if (strlen($broadcast_destination_data) == 0) { $msg .= "Please provide: Destination<br>\n"; }
|
//if (strlen($broadcast_destination_data) == 0) { $msg .= "Please provide: Destination<br>\n"; }
|
||||||
if (strlen($msg) > 0 && strlen($_POST["persistformvar"]) == 0) {
|
if (strlen($msg) > 0 && strlen($_POST["persistformvar"]) == 0) {
|
||||||
require_once "resources/header.php";
|
require_once "resources/header.php";
|
||||||
|
|
@ -111,6 +113,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
||||||
$sql .= "broadcast_caller_id_number, ";
|
$sql .= "broadcast_caller_id_number, ";
|
||||||
$sql .= "broadcast_destination_type, ";
|
$sql .= "broadcast_destination_type, ";
|
||||||
$sql .= "broadcast_phone_numbers, ";
|
$sql .= "broadcast_phone_numbers, ";
|
||||||
|
$sql .= "broadcast_avmd, ";
|
||||||
$sql .= "broadcast_destination_data ";
|
$sql .= "broadcast_destination_data ";
|
||||||
$sql .= ")";
|
$sql .= ")";
|
||||||
$sql .= "values ";
|
$sql .= "values ";
|
||||||
|
|
@ -136,6 +139,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
||||||
$sql .= "'$broadcast_caller_id_number', ";
|
$sql .= "'$broadcast_caller_id_number', ";
|
||||||
$sql .= "'$broadcast_destination_type', ";
|
$sql .= "'$broadcast_destination_type', ";
|
||||||
$sql .= "'$broadcast_phone_numbers', ";
|
$sql .= "'$broadcast_phone_numbers', ";
|
||||||
|
$sql .= "'$broadcast_avmd', ";
|
||||||
$sql .= "'$broadcast_destination_data' ";
|
$sql .= "'$broadcast_destination_data' ";
|
||||||
$sql .= ")";
|
$sql .= ")";
|
||||||
$db->exec(check_sql($sql));
|
$db->exec(check_sql($sql));
|
||||||
|
|
@ -167,12 +171,16 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
||||||
$sql .= "broadcast_caller_id_number = '$broadcast_caller_id_number', ";
|
$sql .= "broadcast_caller_id_number = '$broadcast_caller_id_number', ";
|
||||||
$sql .= "broadcast_destination_type = '$broadcast_destination_type', ";
|
$sql .= "broadcast_destination_type = '$broadcast_destination_type', ";
|
||||||
$sql .= "broadcast_phone_numbers = '$broadcast_phone_numbers', ";
|
$sql .= "broadcast_phone_numbers = '$broadcast_phone_numbers', ";
|
||||||
|
$sql .= "broadcast_avmd = '$broadcast_avmd', ";
|
||||||
$sql .= "broadcast_destination_data = '$broadcast_destination_data' ";
|
$sql .= "broadcast_destination_data = '$broadcast_destination_data' ";
|
||||||
$sql .= "where domain_uuid = '$domain_uuid' ";
|
$sql .= "where domain_uuid = '$domain_uuid' ";
|
||||||
$sql .= "and call_broadcast_uuid = '$call_broadcast_uuid'";
|
$sql .= "and call_broadcast_uuid = '$call_broadcast_uuid'";
|
||||||
|
echo $sql."<br><br>";
|
||||||
$db->exec(check_sql($sql));
|
$db->exec(check_sql($sql));
|
||||||
unset($sql);
|
unset($sql);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$_SESSION["message"] = $text['confirm-update'];
|
$_SESSION["message"] = $text['confirm-update'];
|
||||||
header("Location: call_broadcast.php");
|
header("Location: call_broadcast.php");
|
||||||
return;
|
return;
|
||||||
|
|
@ -198,6 +206,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
||||||
$broadcast_caller_id_number = $row["broadcast_caller_id_number"];
|
$broadcast_caller_id_number = $row["broadcast_caller_id_number"];
|
||||||
$broadcast_destination_type = $row["broadcast_destination_type"];
|
$broadcast_destination_type = $row["broadcast_destination_type"];
|
||||||
$broadcast_phone_numbers = $row["broadcast_phone_numbers"];
|
$broadcast_phone_numbers = $row["broadcast_phone_numbers"];
|
||||||
|
$broadcast_avmd = $row["broadcast_avmd"];
|
||||||
$broadcast_destination_data = $row["broadcast_destination_data"];
|
$broadcast_destination_data = $row["broadcast_destination_data"];
|
||||||
break; //limit to 1 row
|
break; //limit to 1 row
|
||||||
}
|
}
|
||||||
|
|
@ -223,7 +232,12 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
||||||
echo "<tr>\n";
|
echo "<tr>\n";
|
||||||
echo "<td width='30%' align='left' nowrap='nowrap'><b>".$text['label-call-broadcast']."</b></td>\n";
|
echo "<td width='30%' align='left' nowrap='nowrap'><b>".$text['label-call-broadcast']."</b></td>\n";
|
||||||
echo "<td width='70%' align='right'>\n";
|
echo "<td width='70%' align='right'>\n";
|
||||||
echo " <input type='button' class='btn' name='back' alt='back' onclick=\"window.location='call_broadcast.php'\" value='".$text['button-back']."'>\n";
|
echo " <input type='button' class='btn' name='back' alt='".$text['button-back']."' onclick=\"window.location='call_broadcast.php'\" value='".$text['button-back']."'>\n";
|
||||||
|
if ($action == "update") {
|
||||||
|
echo "<input type='hidden' name='call_broadcast_uuid' value='$call_broadcast_uuid'>\n";
|
||||||
|
echo "<input type='button' class='btn' name='' alt='".$text['button-send']."' onclick=\"window.location='call_broadcast_send.php?id=$call_broadcast_uuid'\" value='".$text['button-send']."'>\n";
|
||||||
|
echo "<input type='button' class='btn' name='' alt='".$text['button-stop']."' onclick=\"window.location='call_broadcast_stop.php?id=".$call_broadcast_uuid."'\" value='".$text['button-stop']."'>\n";
|
||||||
|
}
|
||||||
echo " <input type='submit' class='btn' name='submit' value='".$text['button-save']."'>\n";
|
echo " <input type='submit' class='btn' name='submit' value='".$text['button-save']."'>\n";
|
||||||
echo "</td>\n";
|
echo "</td>\n";
|
||||||
echo "</tr>\n";
|
echo "</tr>\n";
|
||||||
|
|
@ -362,6 +376,21 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
||||||
echo "</td>\n";
|
echo "</td>\n";
|
||||||
echo "</tr>\n";
|
echo "</tr>\n";
|
||||||
|
|
||||||
|
echo "<tr>\n";
|
||||||
|
echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>\n";
|
||||||
|
echo " ".$text['label-avmd'].":\n";
|
||||||
|
echo "</td>\n";
|
||||||
|
echo "<td class='vtable' align='left'>\n";
|
||||||
|
echo " <select class='formfld' name='broadcast_avmd'>\n";
|
||||||
|
echo " <option value='false' ".(($broadcast_avmd == "false") ? "selected='selected'" : null).">".$text['option-false']."</option>\n";
|
||||||
|
echo " <option value='true' ".(($broadcast_avmd == "true") ? "selected='selected'" : null).">".$text['option-true']."</option>\n";
|
||||||
|
echo " </select>\n";
|
||||||
|
echo "<br />\n";
|
||||||
|
echo "<br />\n";
|
||||||
|
echo $text['description-avmd']."\n";
|
||||||
|
echo "</td>\n";
|
||||||
|
echo "</tr>\n";
|
||||||
|
|
||||||
echo "<tr>\n";
|
echo "<tr>\n";
|
||||||
echo "<td class='vncell' valign='top' align='left' nowrap>\n";
|
echo "<td class='vncell' valign='top' align='left' nowrap>\n";
|
||||||
echo " ".$text['label-description'].":\n";
|
echo " ".$text['label-description'].":\n";
|
||||||
|
|
@ -375,13 +404,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
||||||
|
|
||||||
echo " <tr>\n";
|
echo " <tr>\n";
|
||||||
echo " <td colspan='2' align='right'>\n";
|
echo " <td colspan='2' align='right'>\n";
|
||||||
if ($action == "update") {
|
echo " <input type='submit' name='submit' class='btn' value='".$text['button-save']."'>\n";
|
||||||
echo " <input type='hidden' name='call_broadcast_uuid' value='$call_broadcast_uuid'>\n";
|
|
||||||
echo " <input type='button' class='btn' name='' alt='back' onclick=\"window.location='call_broadcast_send.php?id=$call_broadcast_uuid'\" value='".$text['button-send']."'>\n";
|
|
||||||
echo " <input type='button' class='btn' name='' alt='stop' onclick=\"window.location='call_broadcast_stop.php?id=".$call_broadcast_uuid."'\" value='".$text['button-stop']."'>\n";
|
|
||||||
}
|
|
||||||
|
|
||||||
echo " <input type='submit' name='submit' class='btn' value='".$text['button-save']."'>\n";
|
|
||||||
echo " </td>\n";
|
echo " </td>\n";
|
||||||
echo " </tr>";
|
echo " </tr>";
|
||||||
echo "</table>";
|
echo "</table>";
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue