Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- The server where I want to store asteriskcdrdb (MySQL): avts.com
- The server where I want to store asterisk MySQL-database: emeaasterisk.com
- 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).
- -----------------------------------/etc/amportal.conf---------------------------------
- ...
- # --- CATEGORY: Remote CDR Database ---
- #
- # Remote CDR DB Host
- # Default Value:
- CDRDBHOST=avts.com
- # Remote CDR DB Name
- # Default Value:
- CDRDBNAME=asteriskcdrdb
- # Remote CDR DB Password
- # Default Value:
- CDRDBPASS=mypass
- # Remote CDR DB Port
- # Default Value:
- CDRDBPORT=3306
- # Remote CDR DB Table
- # Default Value:
- CDRDBTABLENAME=cdr
- # Remote CDR DB Type
- # Default Value:
- CDRDBTYPE=
- # Remote CDR DB User
- # Default Value:
- CDRDBUSER=myuser
- #
- ...
- ------------------------------------end /etc/amportal.conf----------------------------------
- ------------------------------------/etc/freepbx.conf--------------------------------------
- <?php
- $amp_conf['AMPDBUSER'] = 'myuser';
- $amp_conf['AMPDBPASS'] = 'mypass';
- $amp_conf['AMPDBHOST'] = 'emeaasterisk';
- $amp_conf['AMPDBNAME'] = 'asterisk';
- $amp_conf['AMPDBENGINE'] = 'mysql';
- $amp_conf['datasource'] = ''; //for sqlite3
- require_once('/var/www/html/admin/bootstrap.php');
- ------------------------------------end /etc/freepbx.conf--------------------------------------
- ------------------------------------extensions_additional.conf--------------------------------------
- ...
- AMPDBENGINE = mysql
- AMPDBHOST = emeaasterisk
- AMPDBNAME = asterisk
- AMPDBUSER = adminRDS
- AMPDBPASS = RDScounts123
- ...
- ------------------------------------end extensions_additional.conf--------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement