-
Notifications
You must be signed in to change notification settings - Fork 11
/
install.php
40 lines (37 loc) · 1.65 KB
/
install.php
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
<?php
if (!defined('FREEPBX_IS_AUTH')) { die('No direct script access allowed'); }
$freepbx_conf = freepbx_conf::create();
// Play 'beep' while recording
$set['value'] = '';
$set['defaultval'] =& $set['value'];
$set['options'] = array(0,300);
$set['readonly'] = 0;
$set['hidden'] = 0;
$set['level'] = 1;
$set['module'] = 'callrecording';
$set['category'] = 'Call Recording';
$set['emptyok'] = 1;
$set['sortorder'] = 10;
$set['name'] = "Beep every n seconds";
$set['description'] = "Asterisk 13.2 and higher supports the ability to play a regular 'beep' when a call is being recorded. If you set this to a positive number value, when a call is being actively recorded, both parties will hear a 'beep' every period that you select. If you are not running Asterisk 13.2 or higher, this setting will have no effect. To disable simply clear the value of this box or set the value to 0 and save. This is typically set arround 15seconds";
$set['type'] = CONF_TYPE_INT;
$freepbx_conf->define_conf_setting('CALLREC_BEEP_PERIOD',$set);
$fcc = new featurecode('callrecording', 'pauserecording');
$fcc->setDescription('In-Call Asterisk Toggle Call Recording Pause');
$fcc->setDefault('*3');
$fcc->delete();
unset($fcc);
//Call Record option
$set['category'] = 'Call Recording';
$set['value'] = true;
$set['defaultval'] =& $set['value'];
$set['options'] = '';
$set['name'] = 'Call Record Option';
$set['description'] = 'Don’t begin recording unless a call is bridged to another channel';
$set['emptyok'] = 0;
$set['level'] = 2;
$set['module'] = 'callrecording';
$set['readonly'] = 0;
$set['hidden'] = 0;
$set['type'] = CONF_TYPE_BOOL;
$freepbx_conf->define_conf_setting('CALL_REC_OPTION',$set);