root/modules/branches/2.10/callforward/install.php

Revision 8831, 2.7 kB (checked in by p_lindheimer, 3 years ago)

initial untested changes to add CF toggle, devstate and hint additions re #4047

  • Property svn:mime-type set to text/html
  • Property svn:eol-style set to native
Line 
1 <?php
2 //This file is part of FreePBX.
3 //
4 //    FreePBX is free software: you can redistribute it and/or modify
5 //    it under the terms of the GNU General Public License as published by
6 //    the Free Software Foundation, either version 2 of the License, or
7 //    (at your option) any later version.
8 //
9 //    FreePBX is distributed in the hope that it will be useful,
10 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
11 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 //    GNU General Public License for more details.
13 //
14 //    You should have received a copy of the GNU General Public License
15 //    along with FreePBX.  If not, see <http://www.gnu.org/licenses/>.
16 //
17 // Copyright (C) 2005 qldrob
18 //
19 //for translation only
20 if (false) {
21 _("Call Forward");
22 _("Call Forward All Activate");
23 _("Call Forward All Deactivate");
24 _("Call Forward All Prompting Deactivate");
25 _("Call Forward Busy Activate");
26 _("Call Forward Busy Deactivate");
27 _("Call Forward Busy Prompting Deactivate");
28 _("Call Forward No Answer/Unavailable Activate");
29 _("Call Forward No Answer/Unavailable Deactivate");
30 _("Call Forward Toggle");
31 }
32
33 // Unconditional Call Forwarding
34 $fcc = new featurecode('callforward', 'cfon');
35 $fcc->setDescription('Call Forward All Activate');
36 $fcc->setDefault('*72');
37 $fcc->update();
38 unset($fcc);
39
40 $fcc = new featurecode('callforward', 'cfoff');
41 $fcc->setDescription('Call Forward All Deactivate');
42 $fcc->setDefault('*73');
43 $fcc->update();
44 unset($fcc);
45
46 $fcc = new featurecode('callforward', 'cfoff_any');
47 $fcc->setDescription('Call Forward All Prompting Deactivate');
48 $fcc->setDefault('*74');
49 $fcc->update();
50 unset($fcc);
51
52 // Call Forward on Busy
53 $fcc = new featurecode('callforward', 'cfbon');
54 $fcc->setDescription('Call Forward Busy Activate');
55 $fcc->setDefault('*90');
56 $fcc->update();
57 unset($fcc);
58
59 $fcc = new featurecode('callforward', 'cfboff');
60 $fcc->setDescription('Call Forward Busy Deactivate');
61 $fcc->setDefault('*91');
62 $fcc->update();
63 unset($fcc);
64
65 $fcc = new featurecode('callforward', 'cfboff_any');
66 $fcc->setDescription('Call Forward Busy Prompting Deactivate');
67 $fcc->setDefault('*92');
68 $fcc->update();
69 unset($fcc);
70
71 // Call Forward on No Answer/Unavailable (i.e. phone not registered)
72 $fcc = new featurecode('callforward', 'cfuon');
73 $fcc->setDescription('Call Forward No Answer/Unavailable Activate');
74 $fcc->setDefault('*52');
75 $fcc->update();
76 unset($fcc);
77
78 $fcc = new featurecode('callforward', 'cfuoff');
79 $fcc->setDescription('Call Forward No Answer/Unavailable Deactivate');
80 $fcc->setDefault('*53');
81 $fcc->update();
82 unset($fcc);
83
84 $fcc = new featurecode('callforward', 'cf_toggle');
85 $fcc->setDescription('Call Forward Toggle');
86 $fcc->setDefault('*740');
87 $fcc->update();
88 unset($fcc);
89
90 ?>
Note: See TracBrowser for help on using the browser.