Advertisement
Guest User

Untitled

a guest
Mar 14th, 2019
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.88 KB | None | 0 0
  1. The server where I want to store asteriskcdrdb (MySQL): avts.com
  2. The server where I want to store asterisk MySQL-database: emeaasterisk.com
  3.  
  4. Note: before I had all databases on avts.com. This morning I separated the two databases by mysqldumping "asterisk" from avts.com to "emeaasterisk.com". So, in emeaasterisk.com "asterisk" is the only database that exists (besides schema and that stuff of course).
  5.  
  6. -----------------------------------/etc/amportal.conf---------------------------------
  7.  
  8. ...
  9.  
  10. # --- CATEGORY: Remote CDR Database ---
  11. #
  12.  
  13. # Remote CDR DB Host
  14. # Default Value:
  15. CDRDBHOST=avts.com
  16.  
  17. # Remote CDR DB Name
  18. # Default Value:
  19. CDRDBNAME=asteriskcdrdb
  20.  
  21. # Remote CDR DB Password
  22. # Default Value:
  23. CDRDBPASS=mypass
  24.  
  25. # Remote CDR DB Port
  26. # Default Value:
  27. CDRDBPORT=3306
  28.  
  29. # Remote CDR DB Table
  30. # Default Value:
  31. CDRDBTABLENAME=cdr
  32.  
  33. # Remote CDR DB Type
  34. # Default Value:
  35. CDRDBTYPE=
  36.  
  37. # Remote CDR DB User
  38. # Default Value:
  39. CDRDBUSER=myuser
  40.  
  41. #
  42.  
  43. ...
  44.  
  45. ------------------------------------end /etc/amportal.conf----------------------------------
  46.  
  47. ------------------------------------/etc/freepbx.conf--------------------------------------
  48.  
  49. <?php
  50. $amp_conf['AMPDBUSER'] = 'myuser';
  51. $amp_conf['AMPDBPASS'] = 'mypass';
  52. $amp_conf['AMPDBHOST'] = 'emeaasterisk';
  53. $amp_conf['AMPDBNAME'] = 'asterisk';
  54. $amp_conf['AMPDBENGINE'] = 'mysql';
  55. $amp_conf['datasource'] = ''; //for sqlite3
  56.  
  57. require_once('/var/www/html/admin/bootstrap.php');
  58.  
  59. ------------------------------------end /etc/freepbx.conf--------------------------------------
  60.  
  61. ------------------------------------extensions_additional.conf--------------------------------------
  62.  
  63. ...
  64.  
  65. AMPDBENGINE = mysql
  66. AMPDBHOST = emeaasterisk
  67. AMPDBNAME = asterisk
  68. AMPDBUSER = adminRDS
  69. AMPDBPASS = RDScounts123
  70.  
  71. ...
  72.  
  73. ------------------------------------end extensions_additional.conf--------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement