Changeset 6237
- Timestamp:
- 07/31/08 13:06:21 (4 months ago)
- Files:
-
- freepbx/trunk/amp_conf/htdocs/admin/cdr/lib/defines.php (modified) (1 diff)
- freepbx/trunk/amportal.conf (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
freepbx/trunk/amp_conf/htdocs/admin/cdr/lib/defines.php
r6230 r6237 23 23 define ("LIBDIR", FSROOT."lib/"); 24 24 25 26 define ("HOST", $amp_conf["AMPDBHOST"]); 27 define ("PORT", "5432"); 28 define ("USER", $amp_conf["AMPDBUSER"]); 29 define ("PASS", $amp_conf["AMPDBPASS"]); 30 define ("DBNAME", "asteriskcdrdb"); 31 define ("DB_TYPE", $amp_conf["AMPDBENGINE"]); // mysql or postgres 32 33 34 define ("DB_TABLENAME", "cdr"); 25 define ("HOST", (( $amp_conf["CDRDBHOST"] == NULL ? $amp_conf["AMPDBHOST"] : $amp_conf["CDRDBHOST"] )) ); 26 define ("PORT", (( $amp_conf["CDRDBPORT"] == NULL ? "5432" : $amp_conf["CDRDBPORT"] )) ); 27 define ("USER", (( $amp_conf["CDRDBUSER"] == NULL ? $amp_conf["AMPDBUSER"] : $amp_conf["CDRDBUSER"] )) ); 28 define ("PASS", (( $amp_conf["CDRDBPASS"] == NULL ? $amp_conf["AMPDBPASS"] : $amp_conf["CDRDBPASS"] )) ); 29 define ("DBNAME", (( $amp_conf["CDRDBNAME"] == NULL ? "asteriskcdrdb" : $amp_conf["CDRDBNAME"] )) ); 30 define ("DB_TYPE", (( $amp_conf["CDRDBTYPE"] == NULL ? $amp_conf["AMPDBENGINE"] : $amp_conf["CDRDBTYPE"] )) ); // mysql or postgres 31 define ("DB_TABLENAME", (( $amp_conf["CDRDBTABLENAME"] == NULL ? "cdr" : $amp_conf["CDRDBTABLENAME"] )) ); 35 32 36 33 // Regarding to the dst you can setup an application name freepbx/trunk/amportal.conf
r6065 r6237 177 177 # The new default behavior assumes you have mpg123 loaded as well as sox and will convert MP3 files to WAV. This is 178 178 # highly recommended as MP3 files heavily tax the system and can cause instability on a busy phone system. 179 180 # CDR DB Settings: Only used if you dont use the default values provided by freepbx. 181 # CDRDBHOST: hostname of db server if not the same as AMPDBHOST 182 # CDRDBPORT: Port number for db host 183 # CDRDBUSER: username to connect to db with if its not the same as AMPDBUSER 184 # CDRDBPASS: password for connecting to db if its not the same as AMPDBPASS 185 # CDRDBNAME: name of database used for cdr records 186 # CDRDBTYPE: mysql or postgres mysql is default 187 # CDRDBTABLENAME: Name of the table in the db where the cdr is stored cdr is default
