forked from mitchmitchell/allowlist
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfunctions.migrated.php
More file actions
38 lines (30 loc) · 798 Bytes
/
Copy pathfunctions.migrated.php
File metadata and controls
38 lines (30 loc) · 798 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?php
/**
* Copyright Sangoma Technologies, Inc 2018
* Copyright Magnolia Manor Networks 2021
*/
function allowlist_get_config($engine) {
//Handled in class
}
function allowlist_allowlist_add($fc) {
return FreePBX::Allowlist()->numberAdd($fc);
}
function allowlist_allowlist_remove($fc) {
return FreePBX::Allowlist()->numberDelete($fc);
}
function allowlist_allowlist_last($fc) {
return FreePBX::Allowlist()->getAllowlist();
}
function allowlist_list() {
return FreePBX::Allowlist()->getAllowlist();
}
function allowlist_del($number){
return FreePBX::Allowlist()->numberDel($number);
}
function allowlist_add($post){
return FreePBX::Allowlist()->numberAdd($post);
}
// ensures post vars is valid
function allowlist_chk($post){
return FreePBX::Allowlist()->checkPost($post);
}