| 41 | | |
|---|
| 42 | | // TODO: this needs field names if we keep this, also needs newsql file entry |
|---|
| 43 | | // TODO: need to change types on a bunch of these and more likely come up with a different way to do this like use the new |
|---|
| 44 | | // class to insert all this stuff (could get messy but...), look into this! |
|---|
| 45 | | $sql[] = "INSERT INTO `freepbx_settings` |
|---|
| 46 | | (keyword, value, level, description, type, options, defaultval, readonly, hidden) |
|---|
| 47 | | VALUES |
|---|
| 48 | | ('AMPADMINLOGO','logo.png',0,'Defines the logo that is to be displayed at the TOP RIGHT of the admin screen. This enables you to customize the look of the administration screen. NOTE: images need to be saved in the ..../admin/images directory of your AMP install. This image should be 55px in height<br>Default = logo.png','text',NULL,NULL,NULL,NULL), |
|---|
| 49 | | ('AMPBADNUMBER','1',0,'Generate the bad-number context which traps any bogus number or feature code and plays a message to the effect. If you use the Early Dial feature on some Grandstream phones, you will want to set this to false<br>Default = true','bool',NULL,'1',NULL,NULL), |
|---|
| 50 | | ('AMPBIN','/var/lib/asterisk/bin',0,'Location of the FreePBX command line scripts<br>Default = /var/lib/asterisk/bin','dir',NULL,'/var/lib/asterisk/bin',NULL,NULL), |
|---|
| 51 | | ('AMPCGIBIN','/var/www/cgi-bin ',0,'The path to Apache cgi-bin dir (leave off trailing slash)<br>Default = var/www/cgi-bin','dir',NULL,'/var/www/cgi-bin',NULL,NULL), |
|---|
| 52 | | ('AMPDBENGINE','mysql',0,'Database engine used<br>Mostly used = mysql','select','mysql,sqlite3','mysql',NULL,NULL), |
|---|
| 53 | | ('AMPDBHOST','localhost',0,'Hostname where the database asterisk is located<br>Default = localhost','text',NULL,'localhost',NULL,NULL), |
|---|
| 54 | | ('AMPDBNAME','asterisk',0,'Name of the FreePBX database<br>Default = asterisk','text',NULL,'asterisk',NULL,NULL), |
|---|
| 55 | | ('AMPDBPASS','amp109',0,'Password for accessing the database asterisk. Used in combination with AMPDBUSER<br>Default = amp109','text',NULL,NULL,NULL,NULL), |
|---|
| 56 | | ('AMPDBUSER','asteriskuser',0,'Username for accessing the database asterisk<br>Default = asteriskuser','text',NULL,NULL,NULL,NULL), |
|---|
| 57 | | ('AMPDISABLELOG','1',0,'Whether or not to invoke the FreePBX log facility<br>Default = true','bool',NULL,'1',NULL,NULL), |
|---|
| 58 | | ('AMPENABLEDEVELDEBUG','0',0,'Whether or not to include log messages marked as <b>devel-debug</b> in the log system<br>Default = false','bool',NULL,'0',NULL,NULL), |
|---|
| 59 | | ('AMPENGINE','asterisk',0,'The telephony backend engine to use<br>Default = asterisk','select','asterisk','asterisk',NULL,NULL), |
|---|
| 60 | | ('AMPEXTENSIONS','extensions',0,'Sets the extension behavior in FreePBX. If set to <b>extensions</b>, Devices and Users are administered together as a unified Extension, and appear on a single page. If set to <b>deviceanduser</b>, Devices and Users will be administered seperately. Devices (e.g. each individual line on a SIP phone) and Users (e.g. <b>101</b>) will be configured independent of each other, allowing association of one User to many Devices, or allowing Users to login and logout of Devices<br>Default = extensions','select','extensions,deviceanduser','extensions',NULL,NULL), |
|---|
| 61 | | ('AMPMGRPASS','amp111',0,'Password for accessing the Asterisk Manager Interface (AMI)<br>Default = amp111','text',NULL,'amp111',NULL,NULL), |
|---|
| 62 | | ('AMPMGRUSER','admin',0,'Username for accessing the Asterisk Manager Interface (AMI)<br>Default = admin','text',NULL,'admin',NULL,NULL), |
|---|
| 63 | | ('AMPMPG123','1',0,'When set to false, the old MoH behavior is adopted where MP3 files can be loaded and WAV files converted to MP3. The new default behavior assumes you have mpg123 loaded as well as sox and will convert MP3 files to WAV. This is highly recommended as MP3 files heavily tax the system and can cause instability on a busy phone system<br>Default = true','bool',NULL,'1',NULL,NULL), |
|---|
| 64 | | ('AMPSBIN','/usr/sbin',0,'Where (root) command line scripts are located<br>Default = /usr/local/sbin','dir',NULL,'/usr/sbin',NULL,NULL), |
|---|
| 65 | | ('AMPSYSLOGLEVEL','',0,'Where to log if enabled, SQL, LOG_SQL logs to old MySQL table, others are passed to syslog system to determine where to log. Values are: LOG_EMERG, LOG_ALERT, LOG_CRIT, LOG_ERR, LOG_WARNING, LOG_NOTICE, LOG_INFO, LOG_DEBUG, LOG_SQL,SQL<br>Default = LOG_ERR','uint',NULL,NULL,NULL,NULL), |
|---|
| 66 | | ('AMPVMUMASK','007',0,'Defaults to 077 allowing only the asterisk user to have any permission on VM files. If set to something like 007, it would allow the group to have permissions. This can be used if setting apache to a different user then asterisk, so that the apache user (and thus ARI) can have access to read/write/delete the voicemail files. If changed, some of the voicemail directory structures may have to be manually changed<br>Default = 077','text',NULL,NULL,NULL,NULL), |
|---|
| 67 | | ('AMPWEBADDRESS','',0,'The IP address or host name used to access the CDR<br>Default = not used','text',NULL,NULL,NULL,NULL), |
|---|
| 68 | | ('AMPWEBROOT','/var/www/html',0,'The path to Apache webroot (leave off trailing slash)<br>Default = /var/www/html','dir',NULL,'/var/www/html',NULL,NULL), |
|---|
| 69 | | ('ARI_ADMIN_PASSWORD','ari_password',0,'This is the default admin password to allow an administrator to login to ARI bypassing all security. Change this to a secure password.Default = not set','text',NULL,'ari_password',NULL,NULL), |
|---|
| 70 | | ('ARI_ADMIN_USERNAME','',0,'This is the default admin name used to allow an administrator to login to ARI bypassing all security. Change this to whatever you want, dont forget to change the ARI_ADMIN_PASSWORD as well.Default = not set','text',NULL,'admin',NULL,NULL), |
|---|
| 71 | | ('ASTAGIDIR','/var/lib/asterisk/agi-bin',0,'This is the default directory for Asterisks agi files<br>Default = /var/lib/asterisk/agi-bin','dir',NULL,'/var/lib/asterisk/agi-bin',NULL,NULL), |
|---|
| 72 | | ('ASTETCDIR','/etc/asterisk',0,'This is the default directory for Asterisks configuration files<br>Default = /etc/asterisk','dir',NULL,'/etc/asterisk',NULL,NULL), |
|---|
| 73 | | ('ASTLOGDIR','/var/log/asterisk',0,'This is the default directory for Asterisks log files<br>Default = /var/log/asterisk','dir',NULL,'/var/log/asterisk',NULL,NULL), |
|---|
| 74 | | ('ASTMODDIR','/usr/lib/asterisk/modules',0,'This is the default directory for Asterisks modules<br>Default = /usr/lib/asterisk/modules','dir',NULL,'/usr/lib/asterisk/modules',NULL,NULL), |
|---|
| 75 | | ('ASTSPOOLDIR','/var/spool/asterisk',0,'This is the default directory for Asterisks spool directory<br>Default = /var/spool/asterisk','dir',NULL,'/var/spool/asterisk',NULL,NULL), |
|---|
| 76 | | ('ASTRUNDIR','/var/run/asterisk',0,'This is the default directory for Asterisks run files<br>Default = /var/run/asterisk','dir',NULL,'/var/run/asterisk',NULL,NULL), |
|---|
| 77 | | ('ASTVARLIBDIR','/var/lib/asterisk',0,'This is the default directory for Asterisks lib files<br>Default = /var/lib/asterisk','dir',NULL,'/var/lib/asterisk',NULL,NULL), |
|---|
| 78 | | ('ASTMANAGERPORT','5038',0,'Port for the Asterisk Manager<br>Default = 5038','uint',NULL,'5038',NULL,NULL), |
|---|
| 79 | | ('ASTMANAGERHOST','localhost',0,'Hostname for the Asterisk Manager<br>Default = 5038','text',NULL,'5038',NULL,NULL), |
|---|
| 80 | | ('AUTHTYPE','database',0,'Authentication type to use for web admin. If type set to <b>database</b>, the primary AMP admin credentials will be the AMPDBUSER/AMPDBPASS above. Valid settings are: none, database<br>Default = database','select','none,database','database',NULL,NULL), |
|---|
| 81 | | ('BADDESTABORT','0',0,'Setting either of these to true will result in retrieve_conf aborting during a reload if an extension conflict is detected or a destination is detected. It is usually better to allow the reload to go through and then correct the problem but these can be set if a more strict behavior is desired<br>Default = false','bool',NULL,'0',NULL,NULL), |
|---|
| 82 | | ('CDRDBHOST','',0,'Only used if you dont use the default values provided by FreePBX.<br>Hostname of db server if not the same as AMPDBHOST.','text',NULL,NULL,NULL,NULL), |
|---|
| 83 | | ('CDRDBNAME','',0,'Only used if you dont use the default values provided by FreePBX.<br>Name of database used for cdr records','text',NULL,NULL,NULL,NULL), |
|---|
| 84 | | ('CDRDBPASS','',0,'Only used if you dont use the default values provided by FreePBX.<br>Password for connecting to db if its not the same as AMPDBPASS','text',NULL,NULL,NULL,NULL), |
|---|
| 85 | | ('CDRDBPORT','',0,'Only used if you dont use the default values provided by FreePBX.<br>Port number for db host','uint',NULL,NULL,NULL,NULL), |
|---|
| 86 | | ('CDRDBTABLENAME','',0,'Only used if you dont use the default values provided by FreePBX. Name of the table in the db where the cdr is stored. cdr is default','text',NULL,NULL,NULL,NULL), |
|---|
| 87 | | ('CDRDBTYPE','',0,'Only used if you dont use the default values provided by FreePBX. mysql or postgres mysql is default','text',NULL,NULL,NULL,NULL), |
|---|
| 88 | | ('CDRDBUSER','',0,'Only used if you dont use the default values provided by FreePBX. Username to connect to db with if its not the same as AMPDBUSER','text',NULL,NULL,NULL,NULL), |
|---|
| 89 | | ('CHECKREFERER','1',0,'When set to the default value of true, all requests into FreePBX that might possibly add/edit/delete settings will be validated to assure the request is coming from the server. This will protect the system from CSRF (cross site request forgery) attacks. It will have the effect of preventing legitimately entering URLs that could modify settings which can be allowed by changing this field to false<br>Default = false','bool',NULL,'1',NULL,NULL), |
|---|
| 90 | | ('CUSTOMASERROR','1',0,'If false, then the Destination Registry will not report unknown destinations as errors. This should be left to the default true and custom destinations should be moved into the new custom apps registry<br>Default = true','bool',NULL,'1',NULL,NULL), |
|---|
| 91 | | ('CWINUSEBUSY','1',0,'For extensions that have CW enabled, report unanswered CW calls as <b>busy</b> (resulting in busy voicemail greeting). If set to no, unanswered CW calls simply report as <b>no-answer</b><br>Default = true','bool',NULL,'1',NULL,NULL), |
|---|
| 92 | | ('DASHBOARD_INFO_UPDATE_TIME','',0,'These can be used to change the refresh rate of the System Status Panel. Most of the stats are updated based on the STATS interval but a few items are','uint',NULL,NULL,NULL,NULL), |
|---|
| 93 | | ('DASHBOARD_STATS_UPDATE_TIME','',0,'These can be used to change the refresh rate of the System Status Panel. Most of the stats are updated based on the STATS interval but a few items are','uint',NULL,NULL,NULL,NULL), |
|---|
| 94 | | ('DAYNIGHTTCHOOK','0',0,'By default, the Day/Night module will not hook Time Conditions allowing one to associate a daynight manual override with a time condition since now time conditions have their own feature code. If there is already an associaiton configured (on an upgraded system), this will have no affect for the Time Conditions that # are effected. Setting this to true reverts the previous behavior by allowing for the continued use of a daynight toggle to be associated with a time conditon. This can be useful for two scenarios. First, to override a Time Condition without the automatic resetting that occurs with the built in Time Condition overrides. The second use is the ability to associate a single daynight toggle with multiple time conditions thus creating a <b>master switch</b> that can be used to override several possible call flows through different time conditions.<br>Default = false','bool',NULL,'1',NULL,NULL), |
|---|
| 95 | | ('DEVEL','0',0,'Needs to be documented<br>Default = false','bool',NULL,'0',NULL,NULL), |
|---|
| 96 | | ('DEVELRELOAD','0',0,'Needs to be documented<br>Default = false','bool',NULL,'0',NULL,NULL), |
|---|
| 97 | | ('DISABLECUSTOMCONTEXTS','0',0,'Normally FreePBX auto-generates a custom context that may be usable for adding custom dialplan to modify the normal behavior of FreePBX. It takes a good understanding of how Asterisk processes these includes to use this and in many of the cases, there is no useful application. All includes will result in a WARNING in the Asterisk log if there is no context found to include though it results in no errors. If you know that you want the includes, you can set this to true. If you comment it out FreePBX will revert to legacy behavior and include the contexts<br>Default = false','bool',NULL,'0',NULL,NULL), |
|---|
| 98 | | ('DYNAMICHINTS','0',0,'If true, Core will not statically generate hints, but instead make a call to the AMPBIN php script, and generate_hints.php through an Asterisk #exec call. This requires Asterisk.conf to be configured with <b>execincludes=yes<b> set in the [options] section<br>Default = false','bool',NULL,'0',NULL,NULL), |
|---|
| 99 | | ('ENABLECW','1',0,'Enable call waiting by default when an extension is created (Default is yes). Set to <b>no</b> to if you dont want phones to be commissioned with call waiting already enabled. The user would then be required to dial the CW feature code (*70 default) to enable their phone. Most installations should leave this alone. It allows multi-line phones to receive multiple calls on their line appearances<br>Default = yes','bool',NULL,'1',NULL,NULL), |
|---|
| 100 | | ('FCBEEPONLY','0',0,'When set to true, a beep is played instead of confirmation message when activating/de-activating: CallForward, CallWaiting, DayNight, DoNotDisturb and FindMeFollow<br>Default = false','bool',NULL,'0',NULL,NULL), |
|---|
| 101 | | ('FOPDISABLE','0',0,'Set to true to disable FOP in interface and retrieve_conf. Useful for sqlite3 or if you dont want FOP<br>Default = not set','bool',NULL,'0',NULL,NULL), |
|---|
| 102 | | ('FOPPASSWORD','passw0rd',0,'Password for performing transfers and hangups in the Flash Operator Panel (FOP)<br>Default = passw0rd','text',NULL,'passw0rd',NULL,NULL), |
|---|
| 103 | | ('FOPRUN','1',0,'Set to true if you want FOP started by freepbx_engine (amportal_start), false otherwise<br>Default = true','bool',NULL,'1',NULL,NULL), |
|---|
| 104 | | ('FOPSORT','extension',0,'How FOP sort extensions. By Last Name [lastname] or by Extension [extension]<br>Default = extension','select','extension,lastname','extension',NULL,NULL), |
|---|
| 105 | | ('FOPWEBROOT','/var/www/html/panel',0,'Path to the Flash Operator Panel webroot (leave off trailing slash)<br>Default = /var/www/html/panel','dir',NULL,'/var/www/html/panel',NULL,NULL), |
|---|
| 106 | | ('FPBXDBUGFILE','/tmp/freepbx_debug.log',0,'Location and name of the FreePBX debug file. Used by developers<br>Default = /tmp/freepbx_debug.log','text',NULL,'/tmp/freepbx_debug.log',NULL,NULL), |
|---|
| 107 | | ('MODULEADMINWGET','0',0,'Module Admin normally tries to get its online information through direct file open type calls to URLs that go back to the freepbx.org server. If it fails, typically because of content filters in firewalls that dont like the way PHP formats the requests, the code will fall back and try a wget to pull the information. This will often solve the problem. However, in such environment there can be a significant timeout before the failed file open calls to the URLs return and there are often 2-3 of these that occur. Setting this value will force FreePBX to avoid the attempt to open the URL and go straight to the wget calls<br>Default = false','bool',NULL,'0',NULL,NULL), |
|---|
| 108 | | ('MOHDIR','moh',0,'This is the subdirectory for the MoH files/directories which is located in ASTVARLIBDIR if not specified it will default to mohmp3 for backward compatibility<br>Default = not set','dir',NULL,'moh',NULL,NULL), |
|---|
| 109 | | ('POST_RELOAD','',0,'Automatically execute a script after applying changes in the AMP admin. Set POST_RELOAD to the script you wish to execute after applying changes. If POST_RELOAD_DEBUG=true, you will see the output of the script in the web page<br>Default = not set','text',NULL,NULL,NULL,NULL), |
|---|
| 110 | | ('POST_RELOAD_DEBUG','0',0,'Display debug output for script used if POST_RELOAD is used<br>Default = not set','bool',NULL,'0',NULL,NULL), |
|---|
| 111 | | ('RELOADCONFIRM','1',0,'When set to false, will bypass the confirm on Reload Box<br>Default = true','bool',NULL,'1',NULL,NULL), |
|---|
| 112 | | ('SERVERINTITLE','0',0,'Precede browser title with the server name<br>Default = false','bool',NULL,'false',NULL,NULL), |
|---|
| 113 | | ('TCINTERVAL','60',0,'The polling interval used by the Time Conditions manintenace task, launched by an Asterisk call file used to update Time Conditions override states as well as keep custom device state hint values up-to-date when being used with BLF. This interval should be shorter than the shortest time condition true (open) or false (closed) interval to assure that an override is reset after the current time period has expired that it was set in.<br>Default value 60 seconds.','uint',NULL,'60',NULL,NULL), |
|---|
| 114 | | ('TCMAINT','1',0,'If set to false, this will override the execution of the Time Conditons maintenace task launched by call files. If all the feature codes for time conditions are disabled, the maintenance task will not be launched so this is not needed for that condition. Setting this to false would be fairly un-common. On an extremely active system that has constant calls flowing throught all time conditions of interest that might be overriden one might set this to avoid the additional polling that would otherwise occur since calls traversing the time conditions contexts will also maintain all the necessary state information. You may also set this temporarily if debugging a system to avoid the periodic dialplan running through the CLI that the maintenance task otherwise creates.<br>Default = true','bool',NULL,'1',NULL,NULL), |
|---|
| 115 | | ('USECATEGORIES','1',0,'Controls if the menu items in the admin interface are sorted by category (true) or sorted alphebetically with no categories shown (false). Defaults = true','bool',NULL,'1',NULL,NULL), |
|---|
| 116 | | ('USEDEVSTATE','1',0,'If this is set, it assumes that you are running Asterisk 1.4 or higher and want to take advantage of the func_devstate.c backport available from Asterisk 1.6. This allows custom hints to be created to support BLF for server side feature codes such as daynight, followme, etc<br>Default = false','bool',NULL,'1',NULL,NULL), |
|---|
| 117 | | ('USEGOOGLEDNSFORENUM','0',0,'Setting this flag will generate the required global variable so that enumlookup.agi will use Google DNS 8.8.8.8 when performing an ENUM lookup. Not all DNS deals with NAPTR record, but Google does. There is a drawback to this as Google tracks every lookup. If you are not comfortable with this, do not enable this setting. Please read Google FAQ about this: <b>http://code.google.com/speed/public-dns/faq.html#privacy</b><br>Default = false','bool',NULL,'0',NULL,NULL), |
|---|
| 118 | | ('USEQUEUESTATE','0',0,'Setting this flag will generate the required dialplan to integrate with the following Asterisk patch: <b>https://issues.asterisk.org/view.php?id=15168</b>. This feature is planned for a future 1.6 release but given the existence of the patch can be used prior. Once the release version is known, code will be added to automatically enable this format in versions of Asterisk that support it<br>Default = false','bool',NULL,'0',NULL,NULL), |
|---|
| 119 | | ('XTNCONFLICTABORT','0',0,'Setting either of these to true will result in retrieve_conf aborting during a reload if an extension conflict is detected or a destination is detected. It is usually better to allow the reload to go through and then correct the problem but these can be set if a more strict behavior is desired<br>Default = false','bool',NULL,'0',NULL,NULL), |
|---|
| 120 | | ('ZAP2DAHDICOMPAT','0',0,'If set to true, FreePBX will check if you have chan_dadhi installed. If so, it will automatically use all your ZAP configuration settings (devices and trunks) and silently convert them, under the covers, to DAHDI so no changes are needed. The GUI will continue to refer to these as ZAP but it will use the proper DAHDI channels. This will also keep Zap Channel DIDs working<br>Default = false','bool',NULL,'0',NULL,NULL)"; |
|---|
| 121 | | |
|---|
| 122 | | |
|---|