mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-07 20:23:51 +00:00
xml_cdr starts getting ready for billing app
This commit is contained in:
@@ -25,6 +25,13 @@
|
||||
*/
|
||||
|
||||
//check the permission
|
||||
$is_billing = 0; // by default billing is not used
|
||||
|
||||
if (file_exists("app/billings/root.php")){
|
||||
$is_billing = 1;
|
||||
require_once "app/billings/functions.php";
|
||||
}
|
||||
|
||||
if(defined('STDIN')) {
|
||||
$document_root = str_replace("\\", "/", $_SERVER["PHP_SELF"]);
|
||||
preg_match("/^(.*)\/app\/.*$/", $document_root, $matches);
|
||||
@@ -207,6 +214,11 @@
|
||||
$database->fields['extension_uuid'] = check_str(urldecode($xml->variables->extension_uuid));
|
||||
}
|
||||
|
||||
//billing information
|
||||
if ($is_billing){
|
||||
//
|
||||
}
|
||||
|
||||
//insert xml_cdr into the db
|
||||
if (strlen($start_stamp) > 0) {
|
||||
$database->add();
|
||||
|
||||
Reference in New Issue
Block a user