-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathinstall.php
More file actions
96 lines (82 loc) · 2.68 KB
/
install.php
File metadata and controls
96 lines (82 loc) · 2.68 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
<?php
if (!defined('FREEPBX_IS_AUTH')) { die('No direct script access allowed'); }
//for translation only
if (false) {
_("Call Forward");
_("Call Forward All Activate");
_("Call Forward All Deactivate");
_("Call Forward All Prompting Activate");
_("Call Forward All Prompting Deactivate");
_("Call Forward Busy Activate");
_("Call Forward Busy Deactivate");
_("Call Forward Busy Prompting Activate");
_("Call Forward Busy Prompting Deactivate");
_("Call Forward No Answer/Unavailable Activate");
_("Call Forward No Answer/Unavailable Deactivate");
_("Call Forward No Answer/Unavailable Prompting Activate");
_("Call Forward Toggle");
}
// Unconditional Call Forwarding
$fcc = new featurecode('callforward', 'cfon');
$fcc->setDescription('Call Forward All Activate');
$fcc->setDefault('*72');
$fcc->update();
unset($fcc);
$fcc = new featurecode('callforward', 'cfpon');
$fcc->setDescription('Call Forward All Prompting Activate');
$fcc->setDefault('*93');
$fcc->update();
unset($fcc);
$fcc = new featurecode('callforward', 'cfoff');
$fcc->setDescription('Call Forward All Deactivate');
$fcc->setDefault('*73');
$fcc->update();
unset($fcc);
$fcc = new featurecode('callforward', 'cfoff_any');
$fcc->setDescription('Call Forward All Prompting Deactivate');
$fcc->setDefault('*74');
$fcc->update();
unset($fcc);
// Call Forward on Busy
$fcc = new featurecode('callforward', 'cfbon');
$fcc->setDescription('Call Forward Busy Activate');
$fcc->setDefault('*90');
$fcc->update();
unset($fcc);
$fcc = new featurecode('callforward', 'cfbpon');
$fcc->setDescription('Call Forward Busy Prompting Activate');
$fcc->setDefault('*94');
$fcc->update();
unset($fcc);
$fcc = new featurecode('callforward', 'cfboff');
$fcc->setDescription('Call Forward Busy Deactivate');
$fcc->setDefault('*91');
$fcc->update();
unset($fcc);
$fcc = new featurecode('callforward', 'cfboff_any');
$fcc->setDescription('Call Forward Busy Prompting Deactivate');
$fcc->setDefault('*92');
$fcc->update();
unset($fcc);
// Call Forward on No Answer/Unavailable (i.e. phone not registered)
$fcc = new featurecode('callforward', 'cfuon');
$fcc->setDescription('Call Forward No Answer/Unavailable Activate');
$fcc->setDefault('*52');
$fcc->update();
unset($fcc);
$fcc = new featurecode('callforward', 'cfupon');
$fcc->setDescription('Call Forward No Answer/Unavailable Prompting Activate');
$fcc->setDefault('*95');
$fcc->update();
unset($fcc);
$fcc = new featurecode('callforward', 'cfuoff');
$fcc->setDescription('Call Forward No Answer/Unavailable Deactivate');
$fcc->setDefault('*53');
$fcc->update();
unset($fcc);
$fcc = new featurecode('callforward', 'cf_toggle');
$fcc->setDescription('Call Forward Toggle');
$fcc->setDefault('*96');
$fcc->update();
unset($fcc);
?>