Guest User

Untitled

a guest
May 21st, 2025
33
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 18.13 KB | None | 0 0
  1. {
  2.  
  3. // Real-time Charging System for Telecom & ISP environments
  4. // Copyright (C) ITsysCOM GmbH
  5. //
  6.  
  7.  
  8. "general": {
  9. "node_id": "", // identifier of this instance in the cluster, if empty it will be autogenerated
  10. "logger":"*syslog", // controls the destination of logs <*syslog|*stdout>
  11. "log_level": 7, // control the level of messages logged (0-emerg to 7-debug)
  12. "http_skip_tls_verify": true, // if enabled HttpClient will accept any TLS certificate
  13. "rounding_decimals": 5, // system level precision for floats
  14. "dbdata_encoding": "*msgpack", // encoding used to store object data in strings: <*msgpack|*json>
  15. "tpexport_dir": "/var/spool/cgrates/tpe", // path towards export folder for offline TariffPlans
  16. "poster_attempts": 3, // number of attempts before considering post request failed (eg: *http_post, CDR exports)
  17. "failed_posts_dir": "/var/spool/cgrates/failed_posts", // directory path where we store failed requests
  18. "failed_posts_ttl": "5s", // time to wait before writing the failed posts in a single file
  19. "default_request_type": "*prepaid", // default request type to consider when missing from requests: <""|*prepaid|*postpaid|*pseudoprepaid|*rated>
  20. "default_category": "call", // default category to consider when missing from requests
  21. "default_tenant": "cgrates.org", // default tenant to consider when missing from requests
  22. "default_timezone": "Local", // default timezone for timestamps where not specified <""|UTC|Local|$IANA_TZ_DB>
  23. "default_caching":"*reload", // default actions to do when caching items
  24. "connect_attempts": 5, // initial server connect attempts
  25. "reconnects": -1, // number of retries in case of connection lost
  26. "connect_timeout": "1s", // consider connection unsuccessful on timeout, 0 to disable the feature
  27. "reply_timeout": "2s", // consider connection down for replies taking longer than this value
  28. "locking_timeout": "0", // timeout internal locks to avoid deadlocks
  29. "digest_separator": ",", // separator to use in replies containing data digests
  30. "digest_equal": ":", // equal symbol used in case of digests
  31. "rsr_separator": ";", // separator used within RSR fields
  32. "max_parallel_conns": 100, // the maximum number of connection used by the *parallel strategy
  33. "concurrent_requests": 0, // number of active concurrent requests
  34. "concurrent_strategy": "*busy", // strategy for limit active concurrent requests
  35. },
  36.  
  37. "listen": {
  38. "rpc_json": ":2012",
  39. "rpc_gob": ":2013",
  40. "http": ":2080",
  41. },
  42.  
  43. //"data_db": { // database used to store runtime data (eg: accounts)
  44. // "db_type": "*redis", // data_db type: <*redis|*mongo>
  45. // "db_host": "127.0.0.1", // data_db host address
  46. // "db_port": 6379, // data_db port to reach the database
  47. // "db_name": "****", // data_db database name to connect to
  48. // "db_user": "****", // username to use when connecting to data_db
  49. // "db_password": "****", // password to use when connecting to data_db
  50. // "redis_sentinel":"", // the name of sentinel when used
  51. // "query_timeout":"10s",
  52. // "remote_conns":[],
  53. // "replication_conns":[],
  54. // "items":{
  55. // "*accounts":{"remote":false, "replicate":false, "limit": -1, "ttl": "", "static_ttl": false},
  56. // "*reverse_destinations": {"remote":false, "replicate":false, "limit": -1, "ttl": "", "static_ttl": false},
  57. // "*destinations": {"remote":false, "replicate":false, "limit": -1, "ttl": "", "static_ttl": false},
  58. // "*rating_plans": {"remote":false, "replicate":false, "limit": -1, "ttl": "", "static_ttl": false},
  59. // "*rating_profiles":{"remote":false, "replicate":false, "limit": -1, "ttl": "", "static_ttl": false},
  60. // "*actions":{"remote":false, "replicate":false, "limit": -1, "ttl": "", "static_ttl": false},
  61. // "*action_plans": {"remote":false, "replicate":false, "limit": -1, "ttl": "", "static_ttl": false},
  62. // "*account_action_plans":{"remote":false, "replicate":false, "limit": -1, "ttl": "", "static_ttl": false},
  63. // "*action_triggers":{"remote":false, "replicate":false, "limit": -1, "ttl": "", "static_ttl": false},
  64. // "*shared_groups":{"remote":false, "replicate":false, "limit": -1, "ttl": "", "static_ttl": false},
  65. // "*timings": {"remote":false, "replicate":false, "limit": -1, "ttl": "", "static_ttl": false},
  66. // "*resource_profiles":{"remote":false, "replicate":false, "limit": -1, "ttl": "", "static_ttl": false},
  67. // "*resources":{"remote":false, "replicate":false, "limit": -1, "ttl": "", "static_ttl": false},
  68. // "*statqueue_profiles": {"remote":false, "replicate":false, "limit": -1, "ttl": "", "static_ttl": false},
  69. // "*statqueues": {"remote":false, "replicate":false, "limit": -1, "ttl": "", "static_ttl": false},
  70. // "*threshold_profiles": {"remote":false, "replicate":false, "limit": -1, "ttl": "", "static_ttl": false},
  71. // "*thresholds": {"remote":false, "replicate":false, "limit": -1, "ttl": "", "static_ttl": false},
  72. // "*filters": {"remote":false, "replicate":false, "limit": -1, "ttl": "", "static_ttl": false},
  73. // "*supplier_profiles":{"remote":false, "replicate":false, "limit": -1, "ttl": "", "static_ttl": false},
  74. // "*attribute_profiles":{"remote":false, "replicate":false, "limit": -1, "ttl": "", "static_ttl": false},
  75. // "*charger_profiles": {"remote":false, "replicate":false, "limit": -1, "ttl": "", "static_ttl": false},
  76. // "*dispatcher_profiles":{"remote":false, "replicate":false, "limit": -1, "ttl": "", "static_ttl": false},
  77. // "*dispatcher_hosts":{"remote":false, "replicate":false, "limit": -1, "ttl": "", "static_ttl": false},
  78. // "*filter_indexes" :{"remote":false, "replicate":false, "limit": -1, "ttl": "", "static_ttl": false},
  79. // "*load_ids":{"remote":false, "replicate":false, "limit": -1, "ttl": "", "static_ttl": false},
  80. // },
  81. //},
  82.  
  83.  
  84. "stor_db": {
  85. // "db_type": "*mysql", // stor database type to use: <*mongo|*mysql|*postgres|*internal>
  86. // "db_host": "127.0.0.1", // the host to connect to
  87. // "db_port": 3306, // the port to reach the stor_db
  88. // "db_name": "****", // stor database name
  89. // "db_user": "****", // username to use when connecting to stor_db
  90. "db_password": "CGRateS.org", // password to use when connecting to stor_db
  91. // "max_open_conns": 100, // maximum database connections opened, not applying for mongo
  92. // "max_idle_conns": 10, // maximum database connections idle, not applying for mongo
  93. // "conn_max_lifetime": 0, // maximum amount of time in seconds a connection may be reused (0 for unlimited), not applying for mongo
  94. // "string_indexed_fields": [], // indexes on cdrs table to speed up queries, used in case of *mongo and *internal
  95. // "prefix_indexed_fields":[], // prefix indexes on cdrs table to speed up queries, used in case of *internal
  96. // "query_timeout":"10s",
  97. // "sslmode":"disable", // sslmode in case of *postgres
  98. // "items":{
  99. // "session_costs": {"limit": -1, "ttl": "", "static_ttl": false},
  100. // "cdrs": {"limit": -1, "ttl": "", "static_ttl": false},
  101. // "tp_timings":{"limit": -1, "ttl": "", "static_ttl": false},
  102. // "tp_destinations": {"limit": -1, "ttl": "", "static_ttl": false},
  103. // "tp_rates": {"limit": -1, "ttl": "", "static_ttl": false},
  104. // "tp_destination_rates": {"limit": -1, "ttl": "", "static_ttl": false},
  105. // "tp_rating_plans":{"limit": -1, "ttl": "", "static_ttl": false},
  106. // "tp_rating_profiles":{"limit": -1, "ttl": "", "static_ttl": false},
  107. // "tp_shared_groups": {"limit": -1, "ttl": "", "static_ttl": false},
  108. // "tp_actions":{"limit": -1, "ttl": "", "static_ttl": false},
  109. // "tp_action_plans":{"limit": -1, "ttl": "", "static_ttl": false},
  110. // "tp_action_triggers":{"limit": -1, "ttl": "", "static_ttl": false},
  111. // "tp_account_actions": {"limit": -1, "ttl": "", "static_ttl": false},
  112. // "tp_resources":{"limit": -1, "ttl": "", "static_ttl": false},
  113. // "tp_stats":{"limit": -1, "ttl": "", "static_ttl": false},
  114. // "tp_thresholds": {"limit": -1, "ttl": "", "static_ttl": false},
  115. // "tp_filters": {"limit": -1, "ttl": "", "static_ttl": false},
  116. // "tp_suppliers": {"limit": -1, "ttl": "", "static_ttl": false},
  117. // "tp_attributes":{"limit": -1, "ttl": "", "static_ttl": false},
  118. // "tp_chargers":{"limit": -1, "ttl": "", "static_ttl": false},
  119. // "versions": {"limit": -1, "ttl": "", "static_ttl": false},
  120. // "tp_dispatcher_profiles":{"limit": -1, "ttl": "", "static_ttl": false},
  121. // "tp_dispatcher_hosts":{"limit": -1, "ttl": "", "static_ttl": false},
  122. // },
  123. //
  124. //
  125. //
  126. },
  127.  
  128.  
  129. "schedulers": {
  130. "enabled": true,
  131. },
  132.  
  133.  
  134. "rals": {
  135. "enabled": true,
  136. "thresholds_conns": ["*localhost"],
  137. "stats_conns": ["*localhost"],
  138. "attributes_conns": ["*localhost"],
  139. },
  140.  
  141.  
  142. "cdrs": {
  143. "enabled": true,
  144. "store_cdrs": true,
  145. "stats_conns": ["*localhost"],
  146. "chargers_conns": ["*localhost"],
  147. "resources_conns": ["*localhost"],
  148. "rals_conns": ["*localhost"],
  149. // "ees_conns": [""],
  150. // "stor_db
  151. "exporters": ["*default"],
  152. "sessions_cost_retries": 5
  153. // "online_cdr_exports": ["*default"]
  154. },
  155.  
  156. "ers": {
  157. "enabled": true
  158. },
  159.  
  160. "ees": {
  161. "enabled": false,
  162. // "attributes_conns":[], // RPC Connections IDs
  163. // "cache": {
  164. // "*file_csv": {"limit": -1, "ttl": "5s", "static_ttl": false},
  165. // },
  166. "exporters": [
  167. {
  168. "id": "*default", // identifier of the EventReader profile
  169. "type": "*amqp_json_map", // exporter type
  170. "export_path": "amqp://URL", // path where the exported events will be placed
  171. "concurrent_requests": 0, // maximum simultaneous requests to process, 0 for unlimited
  172. "opts": {
  173. // "amqpExchange": "", // Exchange
  174. // "amqpExchangeType": "fanout", // ExchangeType
  175.  
  176. }, // extra options for exporter
  177. // "timezone": "", // timezone for timestamps where not specified <""|UTC|Local|$IANA_TZ_DB>
  178. // "filters": [], // limit parsing based on the filters
  179. // "flags": [], // flags to influence the event processing
  180. // "attribute_ids": [], // select Attribute profiles instead of discovering them
  181. // "attribute_context": "", // context used to discover matching Attribute profiles
  182. // "synchronous": false, // block processing until export has a result
  183. "attempts": 1, // export attempts
  184. // "fields":[
  185. // {"path":"*exp.Account", "type": "*composed", "value": "~*req.Account"},
  186. // {"path": "*exp.CGRID", "type": "*composed", "value": "~*req.CGRID"},
  187. // {"path": "*exp.Source", "type": "*composed", "value": "~*req.source_number"},
  188. // {"path": "*exp.Destination", "type": "*composed", "value": "~*req.Destination"},
  189. // {"path": "*exp.Usage", "type": "*composed", "value": "~*req.Usage"},
  190. // {"path": "*exp.Cost", "type": "*composed", "value": "~*req.Cost", "rounding_decimals": 4},
  191. // {"path": "*exp.SetupTime", "type": "*composed", "value": "~*req.SetupTime"},
  192. // {"path": "*exp.StartTime", "type": "*composed", "value": "~*req.CostDetails:s/StartTime\\\"\\s?\\:\\s?\\\"([^\\\"]*)\\\".*/$1/"},
  193. // {"path": "*exp.AnswerTime", "type": "*composed", "value": "~*req.AnswerTime"},
  194. //
  195. // ],
  196. "failed_posts_dir": "/var/spool/cgrates/failed_posts", // directory path where we store failed requests
  197. },
  198. ],
  199. },
  200.  
  201. "chargers": {
  202. "enabled": true,
  203. "attributes_conns": ["*localhost"],
  204. },
  205.  
  206.  
  207. "sessions": {
  208. "enabled": true,
  209. // "listen_bijson": "127.0.0.1:2014", // address where to listen for bidirectional JSON-RPC requests
  210. "listen_bijson": ":2014",
  211. "chargers_conns": ["*localhost"],
  212. "client_protocol": 1.0,
  213. "rals_conns": ["*localhost"],
  214. "cdrs_conns": ["*localhost"],
  215. "resources_conns": ["*localhost"],
  216. "routes_conns": ["*localhost"],
  217. "attributes_conns": ["*localhost"],
  218. "stats_conns": ["*localhost"],
  219. "thresholds_conns": ["*localhost"],
  220. "debit_interval": "60s",
  221. "channel_sync_interval":"30s",
  222. "alterable_fields": ["DisconnectReason", "HangupSource", "SIPCode"],
  223.  
  224. },
  225.  
  226.  
  227.  
  228. "attributes": {
  229. "enabled": true,
  230. "indexed_selects": true,
  231. "string_indexed_fields": ["*req.Account"],
  232. "prefix_indexed_fields": ["*req.Destination"],
  233. },
  234.  
  235.  
  236. "resources": {
  237. "enabled": true,
  238. "thresholds_conns": ["*localhost"],
  239. "string_indexed_fields": ["*req.Account"],
  240. "store_interval": "-1",
  241. "prefix_indexed_fields": ["*req.Destination"],
  242. },
  243.  
  244.  
  245. "stats": {
  246. "enabled": true,
  247. "thresholds_conns": ["*localhost"],
  248. "string_indexed_fields": ["*req.Account"],
  249. },
  250.  
  251.  
  252. "thresholds": {
  253. "enabled": true,
  254. "string_indexed_fields": ["*req.Account"],
  255. },
  256.  
  257.  
  258. "routes": {
  259. "enabled": false,
  260. "resources_conns": ["*localhost"],
  261. "stats_conns": ["*localhost"],
  262. "string_indexed_fields": ["*req.Account"],
  263. "prefix_indexed_fields": ["*req.Destination"],
  264.  
  265. },
  266.  
  267.  
  268. "filters": { // Filters configuration (*new)
  269. "enabled": true,
  270. // "stats_conns": [], // connections to StatS for <*stats> filters, empty to disable stats functionality: <""|*internal|$rpc_conns_id>
  271. "resources_conns": ["*localhost"], // connections to ResourceS for <*resources> filters, empty to disable stats functionality: <""|*internal|$rpc_conns_id>
  272. "apiers_conns": ["*localhost"], // connections to RALs for <*accounts> filters, empty to disable stats functionality: <""|*internal|$rpc_conns_id>
  273. },
  274.  
  275.  
  276. "apiers": {
  277. "enabled": true,
  278. "scheduler_conns": ["*localhost"],
  279. },
  280.  
  281.  
  282. }
  283.  
Advertisement
Add Comment
Please, Sign In to add comment