Advertisement
Guest User

Untitled

a guest
May 13th, 2021
33
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.73 KB | None | 0 0
  1. "general": {
  2. "logger":"*stdout",
  3. "log_level": 7,
  4. "node_id": "*env:NODE_ID",
  5. },
  6.  
  7. "listen": {
  8. "rpc_json": ":2012",
  9. "rpc_gob": ":2013",
  10. "http": ":2080",
  11. },
  12.  
  13. "data_db": {
  14. "db_type": "*env:DATADB_TYPE",
  15. "db_host": "*env:DATADB_HOST",
  16. "db_port": *env:DATADB_PORT,
  17. "db_name": "*env:DATADB_NAME",
  18. "db_password": "*env:DATADB_PASSWORD",
  19. "items":{
  20. "*accounts":{"remote":false,"replicate":false},
  21. "*reverse_destinations": {"remote":false,"replicate":false},
  22. "*destinations": {"remote":false,"replicate":false},
  23. "*rating_plans": {"remote":false,"replicate":false},
  24. "*rating_profiles":{"remote":false,"replicate":false},
  25. "*actions":{"remote":false,"replicate":false},
  26. "*action_plans": {"remote":false,"replicate":false},
  27. "*account_action_plans":{"remote":false,"replicate":false},
  28. "*action_triggers":{"remote":false,"replicate":false},
  29. "*shared_groups":{"remote":false,"replicate":false},
  30. "*timings": {"remote":false,"replicate":false},
  31. "*resource_profiles":{"remote":false,"replicate":false},
  32. "*resources":{"remote":false,"replicate":false},
  33. "*statqueue_profiles": {"remote":false,"replicate":false},
  34. "*statqueues": {"remote":false,"replicate":false},
  35. "*threshold_profiles": {"remote":false,"replicate":false},
  36. "*thresholds": {"remote":false,"replicate":false},
  37. "*filters": {"remote":false,"replicate":false},
  38. "*supplier_profiles":{"remote":false,"replicate":false},
  39. "*attribute_profiles":{"remote":false,"replicate":false},
  40. "*charger_profiles": {"remote":false,"replicate":false},
  41. "*dispatcher_profiles":{"remote":false,"replicate":false},
  42. "*dispatcher_hosts":{"remote":false,"replicate":false},
  43. "*filter_indexes" :{"remote":false,"replicate":false},
  44. "*load_ids":{"remote":false,"replicate":false}
  45. }
  46. },
  47.  
  48. "stor_db": {
  49. "db_type": "*internal",
  50. },
  51.  
  52. "caches":{
  53. "*dispatcher_routes": {"limit": -1, "ttl": "2s"}
  54. },
  55.  
  56. "rpc_conns": {
  57. "*localhost": {
  58. "conns": [{"address": "127.0.0.1:2012", "transport":"*json"}],
  59. },
  60. "ReplicateSessions": {
  61. "strategy": "*broadcast_sync",
  62. "conns": [{"address": "127.0.0.1:2012", "transport": "*json"}],
  63. },
  64. },
  65.  
  66. "schedulers": {
  67. "enabled": false,
  68. },
  69.  
  70. "cdrs": {
  71. "enabled": true,
  72. "store_cdrs": false,
  73. "chargers_conns":["*internal"],
  74. "rals_conns":["*localhost"],
  75. "attributes_conns": ["*internal"],
  76. "thresholds_conns": ["*internal"],
  77. "stats_conns": ["*internal"],
  78. "online_cdr_exports": ["aws_sqs"]
  79. },
  80.  
  81. "chargers": {
  82. "enabled": true,
  83. "attributes_conns": ["*internal"],
  84. },
  85.  
  86. "resources": {
  87. "enabled": true,
  88. "store_interval": "-1",
  89. },
  90.  
  91. "attributes": {
  92. "enabled": true,
  93. },
  94.  
  95. "thresholds": {
  96. "enabled": true,
  97. "store_interval": "-1",
  98. },
  99.  
  100. "stats": {
  101. "enabled": true,
  102. "store_interval": "-1",
  103. "thresholds_conns": ["*internal"],
  104. },
  105.  
  106. "suppliers": {
  107. "enabled": true,
  108. "indexed_selects":true,
  109. //"string_indexed_fields": [],
  110. "prefix_indexed_fields": [],
  111. "nested_fields": false,
  112. "attributes_conns": ["*internal"],
  113. "resources_conns": ["*internal"],
  114. "stats_conns": ["*internal"],
  115. "rals_conns": ["*localhost"],
  116. //"default_ratio":1
  117. },
  118.  
  119. "sessions": {
  120. "enabled": true,
  121. "listen_bijson": "127.0.0.1:2014",
  122. "chargers_conns": ["*internal"],
  123. "rals_conns": ["*localhost"],
  124. "cdrs_conns": ["*internal"],
  125. "resources_conns": ["*internal"],
  126. "thresholds_conns": ["*internal"],
  127. "stats_conns": ["*internal"],
  128. "suppliers_conns": ["*internal"],
  129. "attributes_conns": ["*internal"],
  130. "debit_interval": "5s",
  131. },
  132.  
  133. "rals": {
  134. "enabled": true,
  135. },
  136.  
  137. "dispatchers":{
  138. "enabled": true
  139. },
  140.  
  141. //TODO add IAM Permissions
  142. "cdre": {
  143. "aws_sqs": {
  144. "export_format": "*sqs_json_map",
  145. "export_path": "http://sqs.eu-central-1.amazonaws.com/?aws_region=eu-central-1&aws_key=XXXXXXXXXX&aws_secret=XXXXXXXXXXXXXXXXXX&queue_id=cdrs-cgrates",
  146. "fields": [
  147. {"path": "*exp.CDRType", "type": "*composed", "value": "~*req.CDRType"},
  148. {"path": "*exp.RunID", "type": "*composed", "value": "~*req.RunID"},
  149. {"path": "*exp.ToR", "type": "*composed", "value": "~*req.ToR"},
  150. {"path": "*exp.OriginID", "type": "*composed", "value": "~*req.OriginID"},
  151. {"path": "*exp.OriginHost", "type": "*composed", "value": "~*req.OriginHost"},
  152. {"path": "*exp.RequestType", "type": "*composed", "value": "~*req.RequestType"},
  153. {"path": "*exp.Tenant", "type": "*composed", "value": "~*req.Tenant"},
  154. {"path": "*exp.Category", "type": "*composed", "value": "~*req.Category"},
  155. {"path": "*exp.Account", "type": "*composed", "value": "~*req.Account"},
  156. {"path": "*exp.Subject", "type": "*composed", "value": "~*req.Subject"},
  157. {"path": "*exp.Destination", "type": "*composed", "value": "~*req.Destination"},
  158. {"path": "*exp.SetupTime", "type": "*composed", "value": "~*req.SetupTime", "layout": "2006-01-02T15:04:05Z"},
  159. {"path": "*exp.AnswerTime", "type": "*composed", "value": "~*req.AnswerTime", "layout": "2006-01-02T15:04:05Z"},
  160. {"path": "*exp.Usage", "type": "*composed", "value": "~*req.Usage"},
  161. {"path": "*exp.UsageSecs", "type": "*composed", "value": "~*req.Usage{*duration_seconds}"},
  162. {"path": "*exp.Cost", "type": "*composed", "value": "~*req.Cost", "rounding_decimals": 3},
  163. {"path": "*exp.OriginCLI", "type": "*composed", "value": "~*req.OriginCLI"},
  164. {"path": "*exp.OriginCLD", "type": "*composed", "value": "~*req.OriginCLD"},
  165. {"path": "*exp.OriginIP", "type": "*composed", "value": "~*req.OriginIP"},
  166. {"path": "*exp.DisconnectCause", "type": "*composed", "value": "~*req.DisconnectCause"},
  167. {"path": "*exp.UserAgent", "type": "*composed", "value": "~*req.UserAgent"},
  168. {
  169. "path": "*exp.ID",
  170. "type": "*composed",
  171. "value": "~*ec.Charges[0].Increments[0].Accounting.Balance.ID"
  172. },
  173. {
  174. "path": "*exp.RatePlanID",
  175. "type": "*composed",
  176. "value": "~*req.CostDetails.RatingFilters:s/RatingPlanID\\\"\\s?\\:\\s?\\\"([^\\\"]*)\\\".*/$1/"
  177. },
  178. {
  179. "path": "*exp.DestinationPrefix",
  180. "type": "*composed",
  181. "value": "~*req.CostDetails.RatingFilters:s/DestinationPrefix\\\"\\s?\\:\\s?\\\"([^\\\"]*)\\\".*/$1/"
  182. },
  183. {
  184. "path": "*exp.DestinationID",
  185. "type": "*composed",
  186. "value": "~*req.CostDetails.RatingFilters:s/DestinationID\\\"\\s?\\:\\s?\\\"([^\\\"]*)\\\".*/$1/"
  187. },
  188. {
  189. "path": "*exp.RPSubject",
  190. "type": "*composed",
  191. "value": "~*req.CostDetails.RatingFilters:s/Subject\\\"\\s?\\:\\s?\\\"([^\\\"]*)\\\".*/$1/"
  192. },
  193. ],
  194. },
  195. },
  196.  
  197.  
  198. "apiers": {
  199. "enabled": true,
  200. //"scheduler_conns": ["*internal"],
  201. },
  202.  
  203. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement