Page MenuHomePhabricator

global.inc.new.installation
No OneTemporary

global.inc.new.installation

<?
#
# 1. Change all hostnames and passwords according to the installation
# 2. Copy this file to /var/www/CDRTool/global.inc
#
###########################################
# System and web paths
$CDRTool['tld'] = "/CDRTool";
$CDRTool['Path'] = "/var/www/CDRTool";
$_PHPLIB['libdir'] = $CDRTool['Path']. "/phplib/";
include($_PHPLIB["libdir"] . "prepend.php3");
$global_local = $CDRTool['Path']."/global.inc.local";
###########################################
# PHP Error reporting
$errorReporting = (E_ALL & ~E_NOTICE);
$errorReporting = 1; // comment this out to enable PHP warnings
error_reporting($errorReporting);
###########################################
# Service provider information
$CDRTool['provider']['name'] = "Provider name";
$CDRTool['provider']['service'] = "SIP service";
$CDRTool['provider']['timezone'] = "Europe/Amsterdam";
$CDRTool['provider']['fromEmail'] = "support@example.com";
$CDRTool['provider']['toEmail'] = "support@example.com";
$CDRTool['provider']['sampleLoginSubscriber'] = "number@example.com";
$CDRTool['provider']['sampleLoginDomain'] = "example.com";
###########################################
# Where the rating engine listens for network requests:
$RatingEngine=array("socketIP" => "cdrtool.example.com",
"socketPort" => "9024",
"CDRS_class" => "ser_radius");
###########################################
# Normalize engine settings
$CDRTool['normalize']['defaultCountryCode'] = "31";
$CDRTool['normalize']['CountryNumberLength'] = "9";
###########################################
# Anti-fraud settings
# create group quota in SER and deny calls to users in this group
$UserQuota["default"]["traffic"] = 5000; // MBytes
$UserQuota["default"]["cost"] = 1000; // Euro
###########################################
# CDRTool datasources
class DB_CDRTool extends DB_Sql {
var $Host = "database.example.com";
var $Database = "cdrtool";
var $User = "cdradmin";
var $Password = "ndd18vv";
var $Halt_On_Error ="no";
}
class DB_Locker extends DB_Sql {
var $Host = "database.example.com";
var $Database = "cdrtool";
var $User = "locker";
var $Password = "ndd18vv";
var $Halt_On_Error ="yes";
}
class DB_radius extends DB_Sql {
var $Host = "database.example.com";
var $Database = "radius";
var $User = "radius";
var $Password = "password";
var $Halt_On_Error ="no";
}
class DB_ser extends DB_Sql {
var $Host = "database.example.com";
var $Database = "openser";
var $User = "openser";
var $Password = "password";
var $Halt_On_Error ="no";
}
class DomainAuthLocal extends DomainAuth { // defined in phplib/local.inc
}
class PageLayoutLocal extends PageLayout { // defined in phplib/local.inc
}
$DATASOURCES=array(
"unknown"=>array(
"class" => "CDRS_unknown" // leave it here
),
"ser_radius"=>array(
"name" => "OpenSER",
"class" => "CDRS_ser_radius",
"table" => "radacct",
"db_class" => "DB_radius",
"db_class_readonly" => "DB_radius",
"db_class_siponline" => "DB_ser",
"rateField" => "Rate",
"rating" => "1",
"priceField" => "Price",
"normalize0SecCalls" => "1",
"DestinationIdField" => "DestinationId",
"normalizedField" => "Normalized",
"BillingPartyIdField"=> "UserName",
"AccountsDBClass" => "DB_ser",
"intAccessCode" => "00",
"sipTraceDataSource" => "sip_trace",
"traceOutURL" => array(
"voicemail.example.com"=>"asterisk",
"pstn.example.com"=>"cisco"
),
"UserQuotaClass" => "SERQuota",
"UserQuotaTable" => "user_quota",
"UserQuotaVerbose" => "",
"UserQuotaNotify" => "0",
"MinPstnNumLen" => "9",
"EnableSIPOnline" => "0",
"EnableNetworkRating"=> "1",
"domainTranslation" => array(
"gw02.example.com" => "pstn.example.com"
),
"EnableSIPOnline" => 1,
"RotateTables" => "Ym",
"RotateThisMonth" => 0,
"purgeCDRsAfter" => 120 // how many days to keep the CDRs
),
"asterisk_vm" =>array("name" => "Voicemail server",
"class" => "CDRS_asterisk",
"table" => "asterisk_cdr",
"db_class" => "DB_radius",
"rateField" => "Rate",
"rating" => "1",
"priceField" => "Price",
"DestinationIdField" => "DestinationId",
"normalizedField" => "Normalized",
"normalize0SecCalls" => "1",
"contexts" => array(
"SIP"=>array("WEBName"=>"OpenSER"),
),
"traceInURL" => array(
"SIP"=>"ser_radius"
),
"traceOutURL" => array(),
"purgeCDRsAfter" => 180 // how many days to keep the CDRs
),
"sip_trace" =>array(
"name" => "SIP trace",
"db_class" => "DB_ser",
"table" => "sip_trace",
"purgeRecordsAfter" => "7"
)
);
// load CDRTool libraries
$CDRToolModules=array("ser","asterisk","rating");
if ($REMOTE_ADDR=="10.0.0.1") {
//$verbose=1;
} else {
// prevent set of verbose via post/get
unset($verbose);
}
?>

File Metadata

Mime Type
text/x-php
Expires
Sat, Feb 1, 5:44 AM (1 d, 5 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3488799
Default Alt Text
global.inc.new.installation (6 KB)

Event Timeline