Advertisement
Guest User

Untitled

a guest
Jan 17th, 2017
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.38 KB | None | 0 0
  1. cat /etc/asterisk/manager.conf
  2. ;
  3. ; AMI - Asterisk Manager interface
  4. ;
  5. ; FreePBX needs this to be enabled. Note that if you enable it on a different IP, you need
  6. ; to assure that this can't be reached from un-authorized hosts with the ACL settings (permit/deny).
  7. ; Also, remember to configure non-default port or IP-addresses in amportal.conf.
  8. ;
  9. ; The AMI connection is used both by the portal and the operator's panel in FreePBX.
  10. ;
  11. ; FreePBX assumes an AMI connection to localhost:5038 by default.
  12. ;
  13. [general]
  14. enabled = yes
  15. port = 5038
  16. bindaddr = 0.0.0.0
  17.  
  18. [admin]
  19. secret = amp111
  20. deny=
  21. permit=0.0.0.0/0.0.0.0
  22. read = system,call,log,verbose,command,agent,user,config,command,dtmf,reporting,cdr,dialplan,originate
  23. write = system,call,log,verbose,command,agent,user,config,command,dtmf,reporting,cdr,dialplan,originate
  24.  
  25. #include manager_additional.conf
  26. #include manager_custom.conf
  27.  
  28. cat /etc/amportal.conf
  29. # This file is part of FreePBX.
  30. #
  31. # FreePBX is free software: you can redistribute it and/or modify
  32. # it under the terms of the GNU General Public License as published by
  33. # the Free Software Foundation, either version 2 of the License, or
  34. # (at your option) any later version.
  35. #
  36. # FreePBX is distributed in the hope that it will be useful,
  37. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  38. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  39. # GNU General Public License for more details.
  40. #
  41. # You should have received a copy of the GNU General Public License
  42. # along with FreePBX. If not, see <http://www.gnu.org/licenses/>.
  43. #
  44. # This file contains settings for components of the Asterisk Management Portal
  45. # Spaces are not allowed!
  46. # Run /usr/src/AMP/apply_conf.sh after making changes to this file
  47.  
  48. # AMPDBHOST: the host to connect to the database named 'asterisk'
  49. AMPDBHOST=localhost
  50.  
  51. # AMPDBUSER: the user to connect to the database named 'asterisk'
  52. AMPDBUSER=freepbx
  53.  
  54. # AMPDBENGINE: the type of database to use
  55. AMPDBENGINE=mysql
  56.  
  57. # AMPDBPASS: the password for AMPDBUSER
  58. AMPDBPASS=fpbx
  59.  
  60. # AMPENGINE: the telephony backend engine to use
  61. AMPENGINE=asterisk
  62.  
  63. # AMPMGRUSER: the user to access the Asterisk manager interface
  64. AMPMGRUSER=admin
  65.  
  66. # AMPMGRPASS: the password for AMPMGRUSER
  67. AMPMGRPASS=amp111
  68.  
  69. # AMPBIN: where command line scripts live
  70. AMPBIN=/var/lib/asterisk/bin
  71.  
  72. #AMPSBIN: where (root) command line scripts live
  73. AMPSBIN=/usr/sbin
  74.  
  75. # AMPWEBROOT: the path to Apache's webroot (leave off trailing slash)
  76. AMPWEBROOT=/var/www/html
  77.  
  78. # AMPCGIBIN: the path to Apache's cgi-bin dir (leave off trailing slash)
  79. AMPCGIBIN=/var/www/cgi-bin
  80.  
  81. # AMPWEBADDRESS: the IP address or host name used to access the AMP web admin
  82. #AMPWEBADDRESS=192.168.1.101
  83. AMPWEBADDRESS=
  84.  
  85. # FOPWEBROOT:web root for the Flash Operator Panel
  86. FOPWEBROOT=/var/www/html/panel
  87.  
  88. # FOPPASSWORD: the secret code for performing transfers and hangups in the Flash Operator Panel
  89. FOPPASSWORD=passw0rd
  90.  
  91. # FOPSORT: FOP should sort extensions by Last Name [lastname] or by Extension [extension]
  92. FOPSORT=extension
  93.  
  94. # FOPRUN: set to true if you want FOP started by freepbx_engine (amportal_start), false otherwise
  95. FOPRUN=true
  96.  
  97. # AUTHTYPE: authentication type to use for web admin
  98. # If type set to 'database', the primary AMP admin credentials will be the AMPDBUSER/AMPDBPASS above
  99. # valid: none, database
  100. AUTHTYPE=database
  101.  
  102. # AMPADMINLOGO: Defines the logo that is to be displayed at the TOP RIGHT of the admin screen.
  103. # This enables you to customize the look of the administration screen.
  104. # NOTE: images need to be saved in the ..../admin/images directory of your AMP install
  105. # This image should be 55px in height
  106. AMPADMINLOGO=logo.png
  107.  
  108. # USECATEGORIES: Controls if the menu items in the admin interface are sorted by category (true),
  109. # or sorted alphebetically with no categories shown (false). Defaults to true.
  110. #USECATEGORIES=false
  111.  
  112. # AMPEXTENSIONS: the type of view for extensions admin
  113. # If set to 'deviceanduser' Devices and Users will be administered seperately, and Users will be able to "login" to devices.
  114. # If set to 'extensions' Devices and Users will me administered in a single screen.
  115. AMPEXTENSIONS=extensions
  116.  
  117. # ENABLECW: Enable call waiting by default when an extension is created (DEFAULT is yes)
  118. # Set to 'no' to if you don't want phones to be commissioned with call waiting already
  119. # enabled. The user would then be required to dial the CW feature code (*70 default) to
  120. # enable their phone. Most installations should leave this alone. It allows multi-line
  121. # phones to receive multiple calls on their line appearances.
  122. ENABLECW=yes
  123.  
  124. #CWINUSEBUSY: Set to yes for extensions that have CW enabled to report as busy if
  125. # they don't answer (resulting in busy voicemail greeting). Otherwise they simply
  126. # report as no-answer (e.g. busy greeting servers no purpose
  127. CWINUSEBUSY=yes
  128.  
  129. # AMPBADNUMBER: Set to false if you do not want the bad-number context generated which
  130. # traps any bogus number or freature code and plays a message to the effect. If you use
  131. # the Early Dial feature on some Grandstream phones, you will want to set this to false
  132. AMPBADNUMBER=true
  133.  
  134. # The following are used to optionally have the freepbx backup program optionally
  135. # send the generated backup to an ftp server
  136. #
  137. # FTPBACKUP=YES to enable
  138. # FTPUSER, FTPPASSWORD, FTPSERVER must be set
  139. # FTPSUBDIR is an optional subdirectory at the ftp server, it will cause ftp to do a cd
  140. #
  141. # There is no error checking so you should check to make sure these are set correctly. The
  142. # ftp is saved after the backup, so it will not cause the local backup file to be effected
  143. #
  144. # FTPBACKUP=yes
  145. #FTPUSER=asterisk
  146. #FTPPASSWORD=password
  147. #FTPSUBDIR=mybackupfolder
  148. #FTPSERVER=myftpserver
  149.  
  150. # SSH BACKUP INFO: must have a valid SSHRSAKEY file and server, only supported through
  151. # ssh. SUBDIR is optional and will be created if it does not exist.
  152. #
  153. # If SSHUSER is not set, it will default to the current user which is asterisk in any
  154. # standard configuration.
  155. #
  156. #SSHBACKUP=yes
  157. #SSHUSER=backups
  158. #SSHRSAKEY=/etc/asterisk/backup_rsa
  159. #SSHSUBDIR=mysubdir
  160. #SSHSERVER=mybackupserver.com
  161.  
  162. # AMPPROVROOT=/var/ftp /tftpboot
  163. # One or more directories where there are provisioning files that should be included in the backup. Currently
  164. # these get backed up only, the FreePBX utility does not automatically restore them.
  165. #
  166. #AMPPROVROOT=/var/ftp /tftpboot
  167. # AMPPROVEXCLUDE=/var/ftp/exclude-from-file-list
  168. # a file containing a list of file/directories to exclude, (will be used in tar's --exclude-from argument)
  169. #
  170. #AMPPROVEXCLUDE=/var/ftp/exclude-from-file-list
  171.  
  172. #AMPBACKUPSUDO=false|true
  173. # This option allowes you to use sudo when backing up files. Usefull ONLY when using AMPPROVROOT
  174. # Allowes backup and restore of files specified in AMPPROVROOT, based on permissions in /etc/sudoers
  175. # for example, adding the following to sudoers:
  176. # asterisk localhost=(root)NOPASSWD: /bin/tar
  177. # Defaults:asterisk !requiretty
  178. # would allow the user asterisk to run tar on ANY file on the system.
  179. # PLEASE KEEP IN MIND THE SECURITY RISKS INVOLVED IN ALLOWING THE ASTERISK USER TO TAR/UNTAR ANY FILE
  180. #AMPBACKUPSUDO=true
  181.  
  182. #AMPPROVEXCLUDELIST=/dir file
  183. # a list of files/directories to exclude, (will be used in tar's --exclude argument)
  184. #
  185. #AMPPROVEXCLUDELIST=/etc/selinux /tftpboot/polycom /tftpboot/*.ld /tftpboot/*.cmp /tftpboot/*.st
  186.  
  187. #AMPBACKADMIN=true|false
  188. #option to exclude the admin/ web dir from backups. This is will result in significantly smaller backups
  189. # defaults to true - always backup admin dir
  190. #AMPBACKADMIN=true
  191.  
  192. # If CUSTOMASERROR is set to false, then the Destination Registry will not report unknow destinations as errors
  193. # this should be left to the default true and custom destinations should be moved into the new custom apps registry
  194. # CUSTOMASERROR=false
  195.  
  196. # if DYNAMICHINTS is set to true, Core will not statically generate hints. Instead it will make a call to the
  197. # AMPBIN php script, generate_hints.php, through an Asteirsk's #exec call. This requires Asterisk.conf to be
  198. # configured with "execincludes=yes" set in the [options] section.
  199. # DYNAMICHINTS=true
  200.  
  201. # XTNCONFLICTABORT, BADDESTABORT
  202. # setting either of these to true will result in retrieve_conf aborting during a reload if an extension
  203. # conflict is detected or a destination is detected. It is usually better to allow the reload to go
  204. # through and then correct the problem but these can be set if a more strict behavior is desired
  205. # both default to false if not set
  206. XTNCONFLICTABORT=false
  207. BADDESTABORT=false
  208.  
  209. # SERVERINTITLE if set to true, the browser title will be preceded with the server name. default false
  210. SERVERINTITLE=false
  211.  
  212. # USEDEVSTATE = true|false # DEFAULT VALUE false
  213. # If this is set, it assumes that you are running Asterisk 1.4 or higher and want to take advantage of the
  214. # func_devstate.c backport available from Asterisk 1.6 which allows custom hints to be created to support
  215. # BLF for server side feature codes such as daynight, followme, etc.
  216. #
  217. USEDEVSTATE=true
  218.  
  219. # MODULEADMINWGET=true|false # DEFAULT VALUE false
  220. # Module Admin normally tries to get its online information through direct file open type calls to URLs that
  221. # go back to the freepbx.org server. If it fails, typically because of content filters in firewalls that don't
  222. # like the way PHP formats the requests, the code will fall back and try a wget to pull the information.
  223. # This will often solve the problem. However, in such environemnts there can be a significant timeout before
  224. # the failed file open calls to the URLs return and there are often 2-3 of these that occur. Setting this value
  225. # will force FreePBX to avoid the attempt to open the URL and go straight to the wget calls.
  226. #
  227. MODULEADMINWGET=false
  228.  
  229. # AMPDISABLELOG=true|false # DEFAULT VALUE true
  230. # Whether or not to invoke the freepbx log facility
  231.  
  232. # AMPSYSLOGLEVEL=LOG_EMERG|LOG_ALERT|LOG_CRIT|LOG_ERR|LOG_WARNING|LOG_NOTICE|LOG_INFO|LOG_DEBUG|LOG_SQL|SQL # DEFAULT VALUE LOG_ERR
  233. # Where to log if enabled, SQL, LOG_SQL logs to old MySQL table, others are passed to syslog system to determine where to log
  234.  
  235. # AMPENABLEDEVELDEBUG=true|false # DEFAULT VALUE false
  236. # Whether or not to include log messages marked as 'devel-debug' in the log system
  237.  
  238. # AMPMPG123=true|false # DEFAULT VALUE true
  239. # When set to false, the old MoH behavior is adopted where MP3 files can be loaded and WAV files converted to MP3
  240. # The new default behavior assumes you have mpg123 loaded as well as sox and will convert MP3 files to WAV. This is
  241. # highly recommended as MP3 files heavily tax the system and can cause instability on a busy phone system.
  242.  
  243. # CDR DB Settings: Only used if you dont use the default values provided by freepbx.
  244. # CDRDBHOST: hostname of db server if not the same as AMPDBHOST
  245. # CDRDBPORT: Port number for db host
  246. # CDRDBUSER: username to connect to db with if its not the same as AMPDBUSER
  247. # CDRDBPASS: password for connecting to db if its not the same as AMPDBPASS
  248. # CDRDBNAME: name of database used for cdr records
  249. # CDRDBTYPE: mysql or postgres mysql is default
  250. # CDRDBTABLENAME: Name of the table in the db where the cdr is stored cdr is default
  251.  
  252. # AMPVMUMASK: defaults to 077 allowing only the asterisk user to have any permissions on VM files. If set to something
  253. # like 007, it would allow the group to have permissions. This can be used if setting apache to a different
  254. # user then asterisk, so that the apache user (and thus ARI) can have access to read/write/delete the
  255. # voicemail files. If changed, some of the voicemail directory strucuters may have to be manually changed.
  256. AMPVMUMASK=007
  257.  
  258. # DASHBOARD_STATS_UPDATE_TIME=integer_seconds
  259. # DEFAULT VALUE: 6
  260. # DASHBOARD_INFO_UPDATE_TIME=integer_seconds
  261. # DEFAULT VALUE: 20
  262. # These can be used to change the refresh rate of the System Status Panel. Most of
  263. # the stats are updated based on the STATS interval but a few items are checked
  264. # less frequently (such as Astersisk Uptime) based on the INFO value
  265.  
  266. # FOPDISABLE=true|false # DEFAULT VALUE false
  267. # Disables FOP in interface and retrieve_conf. Usefull for sqlite3 or if you don't want FOP.
  268.  
  269. # ZAP2DAHDICOMPAT=true|false
  270. # DEFAULT VALUE: false
  271. # If set to true, FreePBX will check if you have chan_dadhi installed. If so, it will
  272. # automatically use all your ZAP configuration settings (devices and trunks) and
  273. # silently convert them, under the covers, to DAHDI so no changes are needed. The
  274. # GUI will continue to refer to these as ZAP but it will use the proper DAHDI channels.
  275. # This will also keep Zap Channel DIDs working.
  276. ZAP2DAHDICOMPAT=true
  277.  
  278. # CHECKREFERER=true|false
  279. # DEFAULT VALUE: true
  280. # When set to the default value of true, all requests into FreePBX that might possibly add/edit/delete settings will
  281. # be validated to assure the request is coming from the server. This will protect the system from CSRF (cross site
  282. # request forgery) attacks. It will have the effect of preventing legitimately entering URLs that could modify
  283. # settings which can be allowed by changing this field to false
  284. #
  285.  
  286. # USEQUEUESTATE=true|false
  287. # DEFAULT VALUE: false
  288. # Setting this flag will generate the required dialplan to integrate with the following Asterisk patch:
  289. # https://issues.asterisk.org/view.php?id=15168
  290. # This feature is planned for a future 1.6 release but given the existance of the patch can be used prior. Once
  291. # the release version is known, code will be added to automatically enable this format in versions of Asterisk
  292. # that support it.
  293.  
  294. # USEGOOGLEDNSFORENUM=true|false
  295. # DEFAULT VALUE: false
  296. # Setting this flag will generate the required global variable so that enumlookup.agi will use Google DNS 8.8.8.8
  297. # when looking up ENUMS
  298. # Not all DNS deals with NAPTR record, but Google does. There is a drawback to this as Google tracks every
  299. # lookup. If you are not comfortable with this, do not enable this setting. Please read Google FAQ about this:
  300. # http://code.google.com/speed/public-dns/faq.html#privacy
  301.  
  302. # MOHDIR=subdirectory_name
  303. # This is the subdirectory for the MoH files/directories which is located in ASTVARLIBDIR
  304. # if not specified it will default to mohmp3 for backward compatibility.
  305. MOHDIR=moh
  306. AMPASTERISKWEBUSER=asterisk
  307. AMPASTERISKWEBGROUP=asterisk
  308. AMPDBNAME=asterisk
  309. ASTETCDIR=/etc/asterisk
  310. ASTMODDIR=/usr/lib/asterisk/modules
  311. ASTVARLIBDIR=/var/lib/asterisk
  312. ASTAGIDIR=/var/lib/asterisk/agi-bin
  313. ASTSPOOLDIR=/var/spool/asterisk
  314. ASTRUNDIR=/var/run/asterisk
  315. ASTLOGDIR=/var/log/asterisk
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement