Update call_center_exec.php
This commit is contained in:
parent
b68e55a9bb
commit
c17d369cd5
|
|
@ -50,6 +50,26 @@
|
||||||
$caller_id_number = trim($_GET["extension"]);
|
$caller_id_number = trim($_GET["extension"]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//validate the extension
|
||||||
|
if (!is_numeric($extension)) {
|
||||||
|
$extension = null;
|
||||||
|
}
|
||||||
|
|
||||||
|
//validate the uuid
|
||||||
|
if (!is_uuid($uuid)) {
|
||||||
|
$uuid = null;
|
||||||
|
}
|
||||||
|
|
||||||
|
//validate the caller_id_name
|
||||||
|
if (isset($caller_id_name) && strlen($caller_id_name)) {
|
||||||
|
$caller_id_name = substr($caller_id_name, 0, 10);
|
||||||
|
}
|
||||||
|
|
||||||
|
//validate the caller_id_number
|
||||||
|
if (!is_numeric($caller_id_number)) {
|
||||||
|
$caller_id_number = null;
|
||||||
|
}
|
||||||
|
|
||||||
//validate the command
|
//validate the command
|
||||||
switch ($command) {
|
switch ($command) {
|
||||||
case "eavesdrop":
|
case "eavesdrop":
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue