1
|
|
|
<?php |
2
|
|
|
############################################################################### |
3
|
|
|
# ASTPP - Open Source VoIP Billing Solution |
4
|
|
|
# |
5
|
|
|
# Copyright (C) 2016 iNextrix Technologies Pvt. Ltd. |
6
|
|
|
# Samir Doshi <[email protected]> |
7
|
|
|
# ASTPP Version 3.0 and above |
8
|
|
|
# License https://www.gnu.org/licenses/agpl-3.0.html |
9
|
|
|
# |
10
|
|
|
# This program is free software: you can redistribute it and/or modify |
11
|
|
|
# it under the terms of the GNU Affero General Public License as |
12
|
|
|
# published by the Free Software Foundation, either version 3 of the |
13
|
|
|
# License, or (at your option) any later version. |
14
|
|
|
# |
15
|
|
|
# This program is distributed in the hope that it will be useful, |
16
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
17
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
18
|
|
|
# GNU Affero General Public License for more details. |
19
|
|
|
# |
20
|
|
|
# You should have received a copy of the GNU Affero General Public License |
21
|
|
|
# along with this program. If not, see <http://www.gnu.org/licenses/>. |
22
|
|
|
############################################################################### |
23
|
|
|
|
24
|
|
|
//Define user rates array for parsing |
25
|
|
|
$CONST_USER_RATE = array( |
26
|
|
|
'RID' => 'id', |
27
|
|
|
'RCD' => 'code', |
28
|
|
|
'RDS' => 'destination', |
29
|
|
|
'RCC' => 'connectioncost', |
30
|
|
|
'RFS' => 'freeseconds', |
31
|
|
|
'RCO' => 'cost', |
32
|
|
|
'RIB' => 'initial_billing_block', |
33
|
|
|
'RBB' => 'billing_block', |
34
|
|
|
'UID' => 'user_id', |
35
|
|
|
'RTI' => 'ratecard_id' |
36
|
|
|
); |
37
|
|
|
|
38
|
|
|
//Define carrier rates array for parsing |
39
|
|
|
$CONST_CARRIER_RATE = array( |
40
|
|
|
'CID' => 'id', |
41
|
|
|
'CCD' => 'code', |
42
|
|
|
'CDS' => 'destination', |
43
|
|
|
'CCC' => 'connectioncost', |
44
|
|
|
'CFS' => 'freeseconds', |
45
|
|
|
'CCO' => 'cost', |
46
|
|
|
'CIB' => 'initial_billing_block', |
47
|
|
|
'CBB' => 'billing_block' |
48
|
|
|
); |
49
|
|
|
|
50
|
|
|
define("tbl_configuration", "system"); |
51
|
|
|
?> |
|
|
|
|
52
|
|
|
|
Using a closing tag in PHP files that only contain PHP code is not recommended as you might accidentally add whitespace after the closing tag which would then be output by PHP. This can cause severe problems, for example headers cannot be sent anymore.
A simple precaution is to leave off the closing tag as it is not required, and it also has no negative effects whatsoever.