basitengr

cgr_rc9

Nov 9th, 2017
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 5.27 KB | None | 0 0
  1. {
  2.  
  3. // Real-time Charging System for Telecom & ISP environments
  4. // Copyright (C) ITsysCOM GmbH
  5. //
  6. // This file contains the default configuration hardcoded into CGRateS.
  7. // This is what you get when you load CGRateS with an empty configuration file.
  8.  
  9. //"general": {
  10. //    "log_level": 7,
  11. //},
  12.  
  13. //"stor_db": {                              // database used to store offline tariff plans and CDRs
  14. //  "db_password": "CGRateS.org",           // password to use when connecting to stordb
  15. //},
  16.  
  17. "listen": {
  18.     "rpc_json": ":2012",                // RPC JSON listening address
  19.     "rpc_gob": ":2013",                 // RPC GOB listening address
  20.     "http": ":2080",                    // HTTP listening address
  21. },
  22.  
  23.  
  24. "stor_db": {
  25.     "db_type": "postgres",                  // stor database type to use: <mysql|postgres>
  26.     "db_port": 5432,                        // the port to reach the stordb
  27.     "db_password": "CGRateS.org",
  28. },
  29.  
  30.  
  31. "rals": {
  32.     "enabled": true,
  33.     "cdrstats_conns": [
  34.         {"address": "*internal"}
  35.     ],
  36.     "historys_conns": [
  37.         {"address": "*internal"}
  38.     ],
  39.     "pubsubs_conns": [
  40.         {"address": "*internal"}
  41.     ],
  42.     "users_conns": [
  43.         {"address": "*internal"}
  44.     ],
  45.     "aliases_conns": [
  46.         {"address": "*internal"}
  47.     ],
  48. },
  49.  
  50.  
  51. "scheduler": {
  52.     "enabled": true,
  53. },
  54.  
  55.  
  56. "cdrs": {
  57.     "enabled": true,
  58.     "cdrstats_conns": [
  59.         {"address": "*internal"}
  60.     ],
  61. },
  62.  
  63.  
  64. "cdrstats": {
  65.     "enabled": true,
  66. },
  67.  
  68.  
  69. "cdre": {
  70.     "*default": {
  71.         "cdr_format": "csv",
  72.         "field_separator": ",",
  73.         "data_usage_multiply_factor": 1,
  74.         "sms_usage_multiply_factor": 1,
  75.         "generic_usage_multiply_factor": 1,
  76.         "cost_multiply_factor": 1,
  77.         "cost_rounding_decimals": -1,
  78.         "cost_shift_digits": 0,
  79.         "mask_destination_id": "MASKED_DESTINATIONS",
  80.         "mask_length": 0,
  81.         "export_dir": "/tmp/cgr_kamevapi/cgrates/cdre",
  82.         "header_fields": [],
  83.         "content_fields": [
  84.             {"tag": "CgrId", "type": "*composed", "value": "CGRID"},
  85.             {"tag":"RunId", "type": "*composed", "value": "RunID"},
  86.             {"tag":"Tor", "type": "*composed", "value": "ToR"},
  87.             {"tag":"AccId", "type": "*composed", "value": "OriginID"},
  88.             {"tag":"ReqType", "type": "*composed", "value": "RequestType"},
  89.             {"tag":"Direction", "type": "*composed", "value": "Direction"},
  90.             {"tag":"Tenant", "type": "*composed", "value": "Tenant"},
  91.             {"tag":"Category", "type": "*composed", "value": "Category"},
  92.             {"tag":"Account", "type": "*composed", "value": "Account"},
  93.             {"tag":"Subject", "type": "*composed", "value": "Subject"},
  94.             {"tag":"Destination", "type": "*composed", "value": "Destination"},
  95.             {"tag":"SetupTime", "type": "*datetime", "value": "SetupTime", "layout": "2006-01-02T15:04:05Z07:00"},
  96.             {"tag":"AnswerTime", "type": "*datetime", "value": "AnswerTime", "layout": "2006-01-02T15:04:05Z07:00"},
  97.             {"tag":"Usage", "type": "*composed", "value": "usage"},
  98.             {"tag":"Cost", "type": "*composed", "value": "cost"},
  99.         ],
  100.         "trailer_fields": [],
  101.     },
  102.     "customer_tpl": {
  103.         "cdr_format": "csv",
  104.         "field_separator": ";",
  105.         "data_usage_multiply_factor": 1,
  106.         "sms_usage_multiply_factor": 1,
  107.         "generic_usage_multiply_factor": 1,
  108.         "cost_multiply_factor": 1,
  109.         "cost_rounding_decimals": -1,
  110.         "cost_shift_digits": 0,
  111.         "mask_destination_id": "MASKED_DESTINATIONS",
  112.         "mask_length": 0,
  113.         "export_dir": "/tmp/cgr_kamevapi/cgrates/cdre",
  114.         "header_fields": [],
  115.         "content_fields": [
  116.             {"tag": "CgrId", "type": "*composed", "value": "CGRID"},
  117.             {"tag":"AccId", "type": "*composed", "value": "OriginID"},
  118.             {"tag":"ReqType", "type": "*composed", "value": "RequestType"},
  119.             {"tag":"Tenant", "type": "*composed", "value": "Tenant"},
  120.             {"tag":"Category", "type": "*composed", "value": "Category"},
  121.             {"tag":"Subject", "type": "*composed", "value": "Account"},
  122.             {"tag":"Destination", "type": "*composed", "value": "~Destination:s/^1(\\d+)/+$1/:s/^\\+(\\d+)/00$1/"},
  123.             {"tag":"AnswerTime", "type": "*datetime", "value": "AnswerTime", "layout": "2006-01-02T15:04:05Z07:00"},
  124.             {"tag":"Usage", "type": "*composed", "value": "Usage"},
  125.             {"tag":"Cost", "type": "*composed", "value": "Cost"},
  126.         ],
  127.         "trailer_fields": [],
  128.     }
  129. },
  130.  
  131. "sm_generic": {
  132.     "enabled": true,
  133. },
  134.  
  135. //"sm_kamailio": {
  136. //  "enabled": true,
  137. //  "create_cdr": true,
  138. //},
  139.  
  140. "historys": {
  141.     "enabled": true,
  142.     "history_dir": "/tmp/cgr_kamevapi/cgrates/history",
  143. },
  144.  
  145.  
  146. "pubsubs": {
  147.     "enabled": true,
  148. },
  149.  
  150.  
  151. "aliases": {
  152.     "enabled": true,
  153. },
  154.  
  155.  
  156. "users": {
  157.     "enabled": true,
  158.     "indexes": ["Uuid"],
  159. },
  160.  
  161. "resources": {
  162.     "enabled": true,
  163.     "store_interval": "1s",
  164.     "thresholds_conns": [
  165.         {"address": "*internal"}
  166.     ],
  167. },
  168.  
  169.  
  170. "stats": {
  171.     "enabled": true,
  172.     "store_interval": "1s",
  173.     "thresholds_conns": [
  174.         {"address": "*internal"}
  175.     ],
  176. },
  177.  
  178. "thresholds": {
  179.     "enabled": true,
  180.     "store_interval": "1s",
  181. },
  182.  
  183. }
Add Comment
Please, Sign In to add comment