basitengr

[WARNING]Could not get account id: . Skipping!

Dec 11th, 2017
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 15.73 KB | None | 0 0
  1. Data loaded using cgr-loader from "/usr/share/cgrates/tariffplans/tutorial"
  2.  
  3. cgr-loader -datadb_host 127.0.0.1 -datadb_port 27017 -datadb_type mongo -datadb_name 10 -datadb_user cgrdata -datadb_passwd cgrates -verbose
  4.  
  5. where logs of
  6. "cgr-engine -config_dir=/usr/share/cgrates/tutorials/kamevapi/cgrates/etc/cgrates -log_level=7 -logger=*stdout"
  7. are
  8. 2017/12/11 20:46:14 [INFO]<Scheduler> executing task TOPUP_RST_10 on account cgrates.org:1004
  9. 2017/12/11 20:46:14 [INFO]<Scheduler> executing task TOPUP_RST_10 on account cgrates.org:1002
  10. 2017/12/11 20:46:14 [INFO]<Scheduler> executing task TOPUP_RST_10 on account cgrates.org:1003
  11. 2017/12/11 20:46:14 [INFO]<Scheduler> executing task TOPUP_RST_5 on account
  12. 2017/12/11 20:46:14 [WARNING]Could not get account id: . Skipping!
  13. 2017/12/11 20:46:14 [WARNING]Error executing action plan: NOT_FOUND
  14. 2017/12/11 20:46:14 [INFO]<Scheduler> executing task TOPUP_RST_SHARED_5 on account
  15. 2017/12/11 20:46:14 [WARNING]Could not get account id: . Skipping!
  16. 2017/12/11 20:46:14 [WARNING]Error executing action plan: NOT_FOUND
  17. 2017/12/11 20:46:14 [INFO]<Scheduler> executing task SHARED_A_0 on account cgrates.org:1007
  18. 2017/12/11 20:46:14 [INFO]<Scheduler> executing task TOPUP_RST_5 on account cgrates.org:1001
  19. 2017/12/11 20:46:14 [INFO]<Scheduler> executing task TOPUP_RST_SHARED_5 on account cgrates.org:1001
  20. 2017/12/11 20:46:14 [INFO]Threshold hit, Balance: {"ID":"cgrates.org:1007","BalanceMap":{"*monetary":[{"Uuid":"a10d3cb5-4503-49a6-a568-653ef06b0cde","ID":"","Value":0,"Directions":{"*out":true},"ExpirationDate":"0001-01-01T00:00:00Z","Weight":10,"DestinationIDs":{},"RatingSubject":"","Categories":{},"SharedGroups":{"SHARED_A":true},"Timings":[],"TimingIDs":{},"Disabled":false,"Factor":{},"Blocker":false}]},"UnitCounters":{"*monetary":[{"CounterType":"*event","Counters":[{"Value":0,"Filter":{"Uuid":null,"ID":"520d391b-3d06-4c7e-95a9-d7e69217af43","Type":"*monetary","Value":null,"Directions":{"*out":true},"ExpirationDate":null,"Weight":null,"DestinationIDs":{"FS_USERS":true},"RatingSubject":null,"Categories":null,"SharedGroups":null,"TimingIDs":null,"Timings":null,"Disabled":null,"Factor":null,"Blocker":null}}]}]},"ActionTriggers":[{"ID":"STANDARD_TRIGGERS","UniqueID":"863a57a9-7901-4d47-b405-292c21b95e54","ThresholdType":"*min_balance","ThresholdValue":2,"Recurrent":false,"MinSleep":0,"ExpirationDate":"0001-01-01T00:00:00Z","ActivationDate":"0001-01-01T00:00:00Z","Balance":{"Uuid":null,"ID":null,"Type":"*monetary","Value":null,"Directions":{"*out":true},"ExpirationDate":null,"Weight":null,"DestinationIDs":null,"RatingSubject":null,"Categories":null,"SharedGroups":null,"TimingIDs":null,"Timings":[],"Disabled":null,"Factor":null,"Blocker":null},"Weight":10,"ActionsID":"LOG_WARNING","MinQueuedItems":0,"Executed":true,"LastExecutionTime":"2017-12-11T20:46:14.687863878Z"},{"ID":"STANDARD_TRIGGERS","UniqueID":"520d391b-3d06-4c7e-95a9-d7e69217af43","ThresholdType":"*max_event_counter","ThresholdValue":5,"Recurrent":false,"MinSleep":0,"ExpirationDate":"0001-01-01T00:00:00Z","ActivationDate":"0001-01-01T00:00:00Z","Balance":{"Uuid":null,"ID":null,"Type":"*monetary","Value":null,"Directions":{"*out":true},"ExpirationDate":null,"Weight":null,"DestinationIDs":{"FS_USERS":true},"RatingSubject":null,"Categories":null,"SharedGroups":null,"TimingIDs":null,"Timings":[],"Disabled":null,"Factor":null,"Blocker":null},"Weight":10,"ActionsID":"LOG_WARNING","MinQueuedItems":0,"Executed":false,"LastExecutionTime":"0001-01-01T00:00:00Z"},{"ID":"STANDARD_TRIGGERS","UniqueID":"119f4474-c0b7-4d8e-bb44-eac6283ce699","ThresholdType":"*max_balance","ThresholdValue":20,"Recurrent":false,"MinSleep":0,"ExpirationDate":"0001-01-01T00:00:00Z","ActivationDate":"0001-01-01T00:00:00Z","Balance":{"Uuid":null,"ID":null,"Type":"*monetary","Value":null,"Directions":{"*out":true},"ExpirationDate":null,"Weight":null,"DestinationIDs":null,"RatingSubject":null,"Categories":null,"SharedGroups":null,"TimingIDs":null,"Timings":[],"Disabled":null,"Factor":null,"Blocker":null},"Weight":10,"ActionsID":"LOG_WARNING","MinQueuedItems":0,"Executed":false,"LastExecutionTime":"0001-01-01T00:00:00Z"},{"ID":"STANDARD_TRIGGERS","UniqueID":"9d9559cb-562e-477c-bdc5-fb88b74022d5","ThresholdType":"*max_balance","ThresholdValue":100,"Recurrent":false,"MinSleep":0,"ExpirationDate":"0001-01-01T00:00:00Z","ActivationDate":"0001-01-01T00:00:00Z","Balance":{"Uuid":null,"ID":null,"Type":"*monetary","Value":null,"Directions":{"*out":true},"ExpirationDate":null,"Weight":null,"DestinationIDs":null,"RatingSubject":null,"Categories":null,"SharedGroups":null,"TimingIDs":null,"Timings":[],"Disabled":null,"Factor":null,"Blocker":null},"Weight":10,"ActionsID":"DISABLE_AND_LOG","MinQueuedItems":0,"Executed":false,"LastExecutionTime":"0001-01-01T00:00:00Z"}],"AllowNegative":false,"Disabled":false}
  21. 2017/12/11 20:46:14 [INFO]<Scheduler> executing task TOPUP_120_DST1003 on account cgrates.org:1001
  22. 2017/12/11 20:46:14 [INFO]<Scheduler> executing task TOPUP_RST_DATA_100 on account cgrates.org:1001
  23. 2017/12/11 20:46:14 [INFO]<Scheduler> processing 4 action plans
  24. 2017/12/11 20:46:14 [INFO]<Scheduler> queued 0 action plans
  25. 2017/12/11 20:46:14 [INFO]Threshold hit, Balance: {"ID":"cgrates.org:1001","BalanceMap":{"*data":[{"Uuid":"76988717-2d61-41fa-b192-597db2d556ab","ID":"","Value":102400,"Directions":{"*out":true},"ExpirationDate":"0001-01-01T00:00:00Z","Weight":10,"DestinationIDs":{},"RatingSubject":"","Categories":{},"SharedGroups":{},"Timings":[],"TimingIDs":{},"Disabled":false,"Factor":{},"Blocker":false}],"*monetary":[{"Uuid":"9abcb18f-8051-476f-a6b9-6c8ed765ca61","ID":"","Value":5,"Directions":{"*out":true},"ExpirationDate":"0001-01-01T00:00:00Z","Weight":20,"DestinationIDs":{},"RatingSubject":"","Categories":{},"SharedGroups":{},"Timings":[],"TimingIDs":{},"Disabled":false,"Factor":{},"Blocker":false},{"Uuid":"666bb8f0-392c-4927-89a0-6ea8b0f0d05e","ID":"","Value":40,"Directions":{"*out":true},"ExpirationDate":"0001-01-01T00:00:00Z","Weight":10,"DestinationIDs":{},"RatingSubject":"","Categories":{},"SharedGroups":{"SHARED_A":true},"Timings":[],"TimingIDs":{},"Disabled":false,"Factor":{},"Blocker":false}],"*voice":[{"Uuid":"e4a52fc9-f816-4443-baab-6b985cae6023","ID":"","Value":90,"Directions":{"*out":true},"ExpirationDate":"0001-01-01T00:00:00Z","Weight":20,"DestinationIDs":{"DST_1002":true},"RatingSubject":"SPECIAL_1002","Categories":{},"SharedGroups":{},"Timings":[],"TimingIDs":{},"Disabled":false,"Factor":{},"Blocker":false},{"Uuid":"5796a039-b92c-460a-b5a9-89f51226156f","ID":"","Value":120,"Directions":{"*out":true},"ExpirationDate":"0001-01-01T00:00:00Z","Weight":20,"DestinationIDs":{"DST_1003":true},"RatingSubject":"","Categories":{},"SharedGroups":{},"Timings":[],"TimingIDs":{},"Disabled":false,"Factor":{},"Blocker":false}]},"UnitCounters":{"*monetary":[{"CounterType":"*event","Counters":[{"Value":0,"Filter":{"Uuid":null,"ID":"520d391b-3d06-4c7e-95a9-d7e69217af43","Type":"*monetary","Value":null,"Directions":{"*out":true},"ExpirationDate":null,"Weight":null,"DestinationIDs":{"FS_USERS":true},"RatingSubject":null,"Categories":null,"SharedGroups":null,"TimingIDs":null,"Timings":null,"Disabled":null,"Factor":null,"Blocker":null}}]}]},"ActionTriggers":[{"ID":"STANDARD_TRIGGERS","UniqueID":"863a57a9-7901-4d47-b405-292c21b95e54","ThresholdType":"*min_balance","ThresholdValue":2,"Recurrent":false,"MinSleep":0,"ExpirationDate":"0001-01-01T00:00:00Z","ActivationDate":"0001-01-01T00:00:00Z","Balance":{"Uuid":null,"ID":null,"Type":"*monetary","Value":null,"Directions":{"*out":true},"ExpirationDate":null,"Weight":null,"DestinationIDs":null,"RatingSubject":null,"Categories":null,"SharedGroups":null,"TimingIDs":null,"Timings":[],"Disabled":null,"Factor":null,"Blocker":null},"Weight":10,"ActionsID":"LOG_WARNING","MinQueuedItems":0,"Executed":false,"LastExecutionTime":"0001-01-01T00:00:00Z"},{"ID":"STANDARD_TRIGGERS","UniqueID":"520d391b-3d06-4c7e-95a9-d7e69217af43","ThresholdType":"*max_event_counter","ThresholdValue":5,"Recurrent":false,"MinSleep":0,"ExpirationDate":"0001-01-01T00:00:00Z","ActivationDate":"0001-01-01T00:00:00Z","Balance":{"Uuid":null,"ID":"520d391b-3d06-4c7e-95a9-d7e69217af43","Type":"*monetary","Value":null,"Directions":{"*out":true},"ExpirationDate":null,"Weight":null,"DestinationIDs":{"FS_USERS":true},"RatingSubject":null,"Categories":null,"SharedGroups":null,"TimingIDs":null,"Timings":[],"Disabled":null,"Factor":null,"Blocker":null},"Weight":10,"ActionsID":"LOG_WARNING","MinQueuedItems":0,"Executed":false,"LastExecutionTime":"0001-01-01T00:00:00Z"},{"ID":"STANDARD_TRIGGERS","UniqueID":"119f4474-c0b7-4d8e-bb44-eac6283ce699","ThresholdType":"*max_balance","ThresholdValue":20,"Recurrent":false,"MinSleep":0,"ExpirationDate":"0001-01-01T00:00:00Z","ActivationDate":"0001-01-01T00:00:00Z","Balance":{"Uuid":null,"ID":null,"Type":"*monetary","Value":null,"Directions":{"*out":true},"ExpirationDate":null,"Weight":null,"DestinationIDs":null,"RatingSubject":null,"Categories":null,"SharedGroups":null,"TimingIDs":null,"Timings":[],"Disabled":null,"Factor":null,"Blocker":null},"Weight":10,"ActionsID":"LOG_WARNING","MinQueuedItems":0,"Executed":true,"LastExecutionTime":"2017-12-11T20:46:14.691141171Z"},{"ID":"STANDARD_TRIGGERS","UniqueID":"9d9559cb-562e-477c-bdc5-fb88b74022d5","ThresholdType":"*max_balance","ThresholdValue":100,"Recurrent":false,"MinSleep":0,"ExpirationDate":"0001-01-01T00:00:00Z","ActivationDate":"0001-01-01T00:00:00Z","Balance":{"Uuid":null,"ID":null,"Type":"*monetary","Value":null,"Directions":{"*out":true},"ExpirationDate":null,"Weight":null,"DestinationIDs":null,"RatingSubject":null,"Categories":null,"SharedGroups":null,"TimingIDs":null,"Timings":[],"Disabled":null,"Factor":null,"Blocker":null},"Weight":10,"ActionsID":"DISABLE_AND_LOG","MinQueuedItems":0,"Executed":false,"LastExecutionTime":"0001-01-01T00:00:00Z"}],"AllowNegative":false,"Disabled":false}
  26.  
  27. Including default cgrates.json below
  28.  
  29. {
  30.  
  31. // Real-time Charging System for Telecom & ISP environments
  32. // Copyright (C) ITsysCOM GmbH
  33. //
  34. // This file contains the default configuration hardcoded into CGRateS.
  35. // This is what you get when you load CGRateS with an empty configuration file.
  36.  
  37. "general": {
  38.     "log_level": 7,
  39. },
  40.  
  41.  
  42. "data_db": {                                // database used to store runtime data (eg: accounts, cdr stats)
  43.     "db_type": "mongo",                     // data_db type: <redis|mongo>
  44.     "db_host": "127.0.0.1",                 // data_db host address
  45.     "db_port": 27017,                       // data_db port to reach the database redis<6379>, mong <27017>
  46.     "db_name": "10",                        // data_db database name to connect to
  47.     "db_user": "cgrdata",                   // username to use when connecting to data_db
  48.     "db_password": "cgrates",               // password to use when connecting to data_db
  49. //  "load_history_size": 10,                // Number of records in the load history
  50. },
  51.  
  52.  
  53. "stor_db": {                                // database used to store offline tariff plans and CDRs
  54.     "db_type": "mongo",                     // stor database type to use: <mongo|mysql|postgres>
  55.     "db_host": "127.0.0.1",                 // the host to connect to
  56.     "db_port": 27017,                       // the port to reach the stordb
  57.     "db_name": "11",                        // stor database name
  58.     "db_user": "cgrstor",                   // username to use when connecting to stordb
  59.     "db_password": "cgrates",               // password to use when connecting to stordb
  60. //  "max_open_conns": 100,                  // maximum database connections opened, not applying for mongo
  61. //  "max_idle_conns": 10,                   // maximum database connections idle, not applying for mongo
  62. //  "conn_max_lifetime": 0,                 // maximum amount of time in seconds a connection may be reused (0 for unlimited), not applying for mongo
  63.     "cdrs_indexes": [],                     // indexes on cdrs table to speed up queries, used only in case of mongo
  64. },
  65.  
  66. "rals": {
  67.     "enabled": true,
  68.     "cdrstats_conns": [
  69.         {"address": "*internal"}
  70.     ],
  71.     "historys_conns": [
  72.         {"address": "*internal"}
  73.     ],
  74.     "pubsubs_conns": [
  75.         {"address": "*internal"}
  76.     ],
  77.     "users_conns": [
  78.         {"address": "*internal"}
  79.     ],
  80.     "aliases_conns": [
  81.         {"address": "*internal"}
  82.     ],
  83. },
  84.  
  85.  
  86. "scheduler": {
  87.     "enabled": true,
  88. },
  89.  
  90.  
  91. "cdrs": {
  92.     "enabled": true,
  93.     "cdrstats_conns": [
  94.         {"address": "*internal"}
  95.     ],
  96. },
  97.  
  98.  
  99. "cdrstats": {
  100.     "enabled": true,
  101. },
  102.  
  103.  
  104. "cdre": {
  105.     "*default": {
  106.         "cdr_format": "csv",
  107.         "field_separator": ",",
  108.         "data_usage_multiply_factor": 1,
  109.         "sms_usage_multiply_factor": 1,
  110.         "generic_usage_multiply_factor": 1,
  111.         "cost_multiply_factor": 1,
  112.         "cost_rounding_decimals": -1,
  113.         "cost_shift_digits": 0,
  114.         "mask_destination_id": "MASKED_DESTINATIONS",
  115.         "mask_length": 0,
  116.         "export_dir": "/tmp/cgr_kamevapi/cgrates/cdre",
  117.         "header_fields": [],
  118.         "content_fields": [
  119.             {"tag": "CgrId", "type": "*composed", "value": "CGRID"},
  120.             {"tag":"RunId", "type": "*composed", "value": "RunID"},
  121.             {"tag":"Tor", "type": "*composed", "value": "ToR"},
  122.             {"tag":"AccId", "type": "*composed", "value": "OriginID"},
  123.             {"tag":"ReqType", "type": "*composed", "value": "RequestType"},
  124.             {"tag":"Direction", "type": "*composed", "value": "Direction"},
  125.             {"tag":"Tenant", "type": "*composed", "value": "Tenant"},
  126.             {"tag":"Category", "type": "*composed", "value": "Category"},
  127.             {"tag":"Account", "type": "*composed", "value": "Account"},
  128.             {"tag":"Subject", "type": "*composed", "value": "Subject"},
  129.             {"tag":"Destination", "type": "*composed", "value": "Destination"},
  130.             {"tag":"SetupTime", "type": "*datetime", "value": "SetupTime", "layout": "2006-01-02T15:04:05Z07:00"},
  131.             {"tag":"AnswerTime", "type": "*datetime", "value": "AnswerTime", "layout": "2006-01-02T15:04:05Z07:00"},
  132.             {"tag":"Usage", "type": "*composed", "value": "usage"},
  133.             {"tag":"Cost", "type": "*composed", "value": "cost"},
  134.         ],
  135.         "trailer_fields": [],
  136.     },
  137.     "customer_tpl": {
  138.         "cdr_format": "csv",
  139.         "field_separator": ";",
  140.         "data_usage_multiply_factor": 1,
  141.         "sms_usage_multiply_factor": 1,
  142.         "generic_usage_multiply_factor": 1,
  143.         "cost_multiply_factor": 1,
  144.         "cost_rounding_decimals": -1,
  145.         "cost_shift_digits": 0,
  146.         "mask_destination_id": "MASKED_DESTINATIONS",
  147.         "mask_length": 0,
  148.         "export_dir": "/tmp/cgr_kamevapi/cgrates/cdre",
  149.         "header_fields": [],
  150.         "content_fields": [
  151.             {"tag": "CgrId", "type": "*composed", "value": "CGRID"},
  152.             {"tag":"AccId", "type": "*composed", "value": "OriginID"},
  153.             {"tag":"ReqType", "type": "*composed", "value": "RequestType"},
  154.             {"tag":"Tenant", "type": "*composed", "value": "Tenant"},
  155.             {"tag":"Category", "type": "*composed", "value": "Category"},
  156.             {"tag":"Subject", "type": "*composed", "value": "Account"},
  157.             {"tag":"Destination", "type": "*composed", "value": "~Destination:s/^1(\\d+)/+$1/:s/^\\+(\\d+)/00$1/"},
  158.             {"tag":"AnswerTime", "type": "*datetime", "value": "AnswerTime", "layout": "2006-01-02T15:04:05Z07:00"},
  159.             {"tag":"Usage", "type": "*composed", "value": "Usage"},
  160.             {"tag":"Cost", "type": "*composed", "value": "Cost"},
  161.         ],
  162.         "trailer_fields": [],
  163.     }
  164. },
  165.  
  166. "sm_kamailio": {
  167.     "enabled": true,
  168.     "create_cdr": true,
  169. },
  170.  
  171.  
  172. "historys": {
  173.     "enabled": true,
  174.     "history_dir": "/tmp/cgr_kamevapi/cgrates/history",
  175. },
  176.  
  177.  
  178. "pubsubs": {
  179.     "enabled": true,
  180. },
  181.  
  182.  
  183. "aliases": {
  184.     "enabled": true,
  185. },
  186.  
  187.  
  188. "users": {
  189.     "enabled": true,
  190.     "indexes": ["Uuid"],
  191. },
  192.  
  193. }
Add Comment
Please, Sign In to add comment