diff --git a/app/call_broadcast/app_config.php b/app/call_broadcast/app_config.php
index c694461c26..cd7ab3fc91 100644
--- a/app/call_broadcast/app_config.php
+++ b/app/call_broadcast/app_config.php
@@ -35,7 +35,7 @@
$apps[$x]['menu'][0]['groups'][] = "admin";
$apps[$x]['menu'][0]['groups'][] = "superadmin";
$apps[$x]['menu'][0]['path'] = "/app/call_broadcast/call_broadcast.php";
-
+
//permission details
$apps[$x]['permissions'][0]['name'] = "call_broadcast_view";
$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]['description']['en-us'] = "";
$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]['type'] = "text";
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
diff --git a/app/call_broadcast/app_languages.php b/app/call_broadcast/app_languages.php
index b2f4351728..e989d6d752 100644
--- a/app/call_broadcast/app_languages.php
+++ b/app/call_broadcast/app_languages.php
@@ -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']['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']['es-cl'] = "Descripción";
$text['label-description']['pt-pt'] = "Descrição";
diff --git a/app/call_broadcast/call_broadcast_edit.php b/app/call_broadcast/call_broadcast_edit.php
index 2beece45cd..72d6fa5018 100644
--- a/app/call_broadcast/call_broadcast_edit.php
+++ b/app/call_broadcast/call_broadcast_edit.php
@@ -60,6 +60,7 @@ else {
$broadcast_caller_id_number = check_str($_POST["broadcast_caller_id_number"]);
$broadcast_destination_type = check_str($_POST["broadcast_destination_type"]);
$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"]);
}
@@ -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
\n"; }
//if (strlen($broadcast_destination_type) == 0) { $msg .= "Please provide: Type
\n"; }
//if (strlen($broadcast_phone_numbers) == 0) { $msg .= "Please provide: Phone Number List
\n"; }
+ //if (strlen($broadcast_avmd) == 0) { $msg .= "Please provide: Voicemail Detection
\n"; }
//if (strlen($broadcast_destination_data) == 0) { $msg .= "Please provide: Destination
\n"; }
if (strlen($msg) > 0 && strlen($_POST["persistformvar"]) == 0) {
require_once "resources/header.php";
@@ -111,6 +113,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
$sql .= "broadcast_caller_id_number, ";
$sql .= "broadcast_destination_type, ";
$sql .= "broadcast_phone_numbers, ";
+ $sql .= "broadcast_avmd, ";
$sql .= "broadcast_destination_data ";
$sql .= ")";
$sql .= "values ";
@@ -136,6 +139,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
$sql .= "'$broadcast_caller_id_number', ";
$sql .= "'$broadcast_destination_type', ";
$sql .= "'$broadcast_phone_numbers', ";
+ $sql .= "'$broadcast_avmd', ";
$sql .= "'$broadcast_destination_data' ";
$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_destination_type = '$broadcast_destination_type', ";
$sql .= "broadcast_phone_numbers = '$broadcast_phone_numbers', ";
+ $sql .= "broadcast_avmd = '$broadcast_avmd', ";
$sql .= "broadcast_destination_data = '$broadcast_destination_data' ";
$sql .= "where domain_uuid = '$domain_uuid' ";
$sql .= "and call_broadcast_uuid = '$call_broadcast_uuid'";
+ echo $sql."
";
$db->exec(check_sql($sql));
unset($sql);
+
+
$_SESSION["message"] = $text['confirm-update'];
header("Location: call_broadcast.php");
return;
@@ -198,6 +206,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
$broadcast_caller_id_number = $row["broadcast_caller_id_number"];
$broadcast_destination_type = $row["broadcast_destination_type"];
$broadcast_phone_numbers = $row["broadcast_phone_numbers"];
+ $broadcast_avmd = $row["broadcast_avmd"];
$broadcast_destination_data = $row["broadcast_destination_data"];
break; //limit to 1 row
}
@@ -223,7 +232,12 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
echo "