Changeset 6237

Show
Ignore:
Timestamp:
07/31/08 13:06:21 (4 months ago)
Author:
p_lindheimer
Message:

closes #2963 allowing alternate db specified for cdr reports, except apply_conf.sh needs to be addressed still

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • freepbx/trunk/amp_conf/htdocs/admin/cdr/lib/defines.php

    r6230 r6237  
    2323define ("LIBDIR", FSROOT."lib/"); 
    2424 
    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"); 
     25define ("HOST", (( $amp_conf["CDRDBHOST"] == NULL ? $amp_conf["AMPDBHOST"] : $amp_conf["CDRDBHOST"] )) ); 
     26define ("PORT", (( $amp_conf["CDRDBPORT"] == NULL ? "5432" : $amp_conf["CDRDBPORT"] )) ); 
     27define ("USER", (( $amp_conf["CDRDBUSER"] == NULL ? $amp_conf["AMPDBUSER"] : $amp_conf["CDRDBUSER"] )) ); 
     28define ("PASS", (( $amp_conf["CDRDBPASS"] == NULL ? $amp_conf["AMPDBPASS"] : $amp_conf["CDRDBPASS"] )) ); 
     29define ("DBNAME", (( $amp_conf["CDRDBNAME"] == NULL ? "asteriskcdrdb" : $amp_conf["CDRDBNAME"] )) ); 
     30define ("DB_TYPE", (( $amp_conf["CDRDBTYPE"] == NULL ? $amp_conf["AMPDBENGINE"] : $amp_conf["CDRDBTYPE"] )) ); // mysql or postgres 
     31define ("DB_TABLENAME", (( $amp_conf["CDRDBTABLENAME"] == NULL ? "cdr" : $amp_conf["CDRDBTABLENAME"] )) ); 
    3532  
    3633// Regarding to the dst you can setup an application name 
  • freepbx/trunk/amportal.conf

    r6065 r6237  
    177177# The new default behavior assumes you have mpg123 loaded as well as sox and will convert MP3 files to WAV. This is 
    178178# 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  
Donate



Support
Download
Develop
Forums
News
Documentation
Paid Support
About

Paid Ads