Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F7312292
global.inc.simple.sample
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
4 KB
Referenced Files
None
Subscribers
None
global.inc.simple.sample
View Options
<?
# Copy this file to /etc/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");
###########################################
# 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";
###########################################
# Rating engine settings
$RatingEngine=array("socketIP" => "IP.address",
"socketPort" => "9024",
"cdr_source" => "opensips_radius",
"allow" => array ('10.')
);
###########################################
# Normalize engine settings
$CDRTool['normalize']['defaultCountryCode'] = "31";
###########################################
# Build graphical statistics for these domains:
$CDRTool['statistics']['domains']=array("example.com");
###########################################
# Anti-fraud settings
$UserQuota["default"]["cost"] = 1000;
###########################################
# CDRTool databases
class DB_CDRTool extends DB_Sql {
var $Host = "sipdb";
var $Database = "cdrtool";
var $User = "cdradmin";
var $Password = "PASSWORD";
var $Halt_On_Error ="yes";
}
class DB_Locker extends DB_Sql {
var $Host = "sipdb";
var $Database = "cdrtool";
var $User = "locker";
var $Password = "PASSWORD";
var $Halt_On_Error ="yes";
}
class DB_radius extends DB_Sql {
var $Host = "sipdb";
var $Database = "radius";
var $User = "radius";
var $Password = "PASSWORD";
var $Halt_On_Error ="yes";
}
class DB_opensips extends DB_Sql {
var $Host = "sipdb";
var $Database = "opensips";
var $User = "opensips";
var $Password = "PASSWORD";
var $Halt_On_Error ="yes";
}
class DB_mediaproxy extends DB_Sql {
var $Host = "sipdb";
var $Database = "mediaproxy";
var $User = "mediaproxy";
var $Password = "PASSWORD";
var $Halt_On_Error ="yes";
}
// Subscriber login
class DomainAuthLocal extends OpenSIPS_DomainAuth { // defined in phplib/local.inc
}
class PageLayoutLocal extends PageLayout { // defined in phplib/local.inc
}
###########################################
# CDRTool datasources
$DATASOURCES=array(
"unknown" => array("class" => "CDRS_unknown"),
"opensips_radius"=> array(
"name" => "OpenSIPS Proxy/Registrar",
"class" => "CDRS_opensips",
"db_class" => "DB_radius",
"table" => "radacct".date("Ym"),
"normalizedField" => "Normalized",
"rating" => "1",
"db_subscribers" => "DB_opensips",
"db_registrar" => "DB_opensips",
"UserQuotaClass" => "OpenSIPSQuota",
"UserQuotaNotify" => "1",
"sipTrace" => "sip_trace",
"mediaTrace" => "media_trace",
"mediaDispatcher" => "tls:10.0.0.1:25061"
),
"asterisk_vm" => array("name" => "Voicemail server",
"class" => "CDRS_asterisk",
"table" => "asterisk_cdr",
"db_class" => "DB_radius",
"rating" => "0",
"normalizedField" => "Normalized",
"purgeCDRsAfter" => 180 // how many days to keep the CDRs
),
"sip_trace" => array(
"name" => "SIP trace",
"db_class" => "DB_opensips",
"table" => "sip_trace",
"mediaTrace" => "media_trace",
"purgeRecordsAfter" => "7",
"invisible" => 1
),
"media_trace" =>array(
"name" => "Media trace",
"db_class" => "DB_mediaproxy",
"invisible" => 1
)
);
###########################################
# Load libraries from library/cdr_*
$CDRToolModules=array("opensips","asterisk");
?>
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, Feb 1, 5:37 AM (1 d, 1 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3488778
Default Alt Text
global.inc.simple.sample (4 KB)
Attached To
Mode
rCDRT CDRTool
Attached
Detach File
Event Timeline
Log In to Comment