Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //// BEFORE ///////////////////////////////////////////////////////////////////////////////////////////////////////////////
- root@DebianDev:/usr/local/goapps/bin# cgr-console 'accounts Tenant="cgrates.org" AccountIds=["1001"]'[
- {
- "ID": "cgrates.org:1001",
- "BalanceMap": {
- "*data": [
- {
- "Uuid": "3d22daf6-7cde-4ba3-9859-62f22656f641",
- "ID": "",
- "Value": 102400,
- "Directions": {
- "*out": true
- },
- "ExpirationDate": "0001-01-01T00:00:00Z",
- "Weight": 10,
- "DestinationIDs": {},
- "RatingSubject": "",
- "Categories": {},
- "SharedGroups": {},
- "Timings": null,
- "TimingIDs": {},
- "Disabled": false,
- "Factor": null,
- "Blocker": false
- }
- ],
- "*monetary": [
- {
- "Uuid": "afd02789-6a1a-4971-ade9-5cc015a18623",
- "ID": "",
- "Value": 5,
- "Directions": {
- "*out": true
- },
- "ExpirationDate": "0001-01-01T00:00:00Z",
- "Weight": 20,
- "DestinationIDs": {},
- "RatingSubject": "",
- "Categories": {},
- "SharedGroups": {},
- "Timings": null,
- "TimingIDs": {},
- "Disabled": false,
- "Factor": null,
- "Blocker": false
- },
- {
- "Uuid": "6d5c9c18-9ae5-4c3f-86d9-fe55fc721630",
- "ID": "",
- "Value": 5,
- "Directions": {
- "*out": true
- },
- "ExpirationDate": "0001-01-01T00:00:00Z",
- "Weight": 10,
- "DestinationIDs": {},
- "RatingSubject": "",
- "Categories": {},
- "SharedGroups": {
- "SHARED_A": true
- },
- "Timings": null,
- "TimingIDs": {},
- "Disabled": false,
- "Factor": null,
- "Blocker": false
- }
- ],
- "*voice": [
- {
- "Uuid": "a77eeeed-b54c-45b9-9cba-bcba85f25e08",
- "ID": "",
- "Value": 90,
- "Directions": {
- "*out": true
- },
- "ExpirationDate": "0001-01-01T00:00:00Z",
- "Weight": 20,
- "DestinationIDs": {
- "DST_1002": true
- },
- "RatingSubject": "SPECIAL_1002",
- "Categories": {},
- "SharedGroups": {},
- "Timings": null,
- "TimingIDs": {},
- "Disabled": false,
- "Factor": null,
- "Blocker": false
- },
- {
- "Uuid": "653f38e3-cbfe-4423-8281-cd006ebc88f9",
- "ID": "",
- "Value": 120,
- "Directions": {
- "*out": true
- },
- "ExpirationDate": "0001-01-01T00:00:00Z",
- "Weight": 20,
- "DestinationIDs": {
- "DST_1003": true
- },
- "RatingSubject": "",
- "Categories": {},
- "SharedGroups": {},
- "Timings": null,
- "TimingIDs": {},
- "Disabled": false,
- "Factor": null,
- "Blocker": false
- }
- ]
- },
- "UnitCounters": {
- "*monetary": [
- {
- "CounterType": "*event",
- "Counters": [
- {
- "Value": 0,
- "Filter": {
- "Uuid": null,
- "ID": "fe4a12d1-82ce-4fa9-ba35-d5032fa3bf09",
- "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": "9e8ecd20-27a8-406f-906b-b3c96a41c7ad",
- "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": null,
- "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": "fe4a12d1-82ce-4fa9-ba35-d5032fa3bf09",
- "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": "fe4a12d1-82ce-4fa9-ba35-d5032fa3bf09",
- "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
- },
- "Weight": 10,
- "ActionsID": "LOG_WARNING",
- "MinQueuedItems": 0,
- "Executed": false,
- "LastExecutionTime": "0001-01-01T00:00:00Z"
- },
- {
- "ID": "STANDARD_TRIGGERS",
- "UniqueID": "9ddbe164-cea6-48df-bbd9-d282176f3c8b",
- "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": null,
- "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": "ae2d5591-2311-4d14-81c4-01fbd4f147f3",
- "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": null,
- "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
- }
- ]
- /// AFTER /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
- root@DebianDev:/usr/local/goapps/bin# cgr-console 'accounts Tenant="cgrates.org" AccountIds=["1001"]'
- [
- {
- "ID": "cgrates.org:1001",
- "BalanceMap": {
- "*data": [
- {
- "Uuid": "3d22daf6-7cde-4ba3-9859-62f22656f641",
- "ID": "",
- "Value": 102400,
- "Directions": {
- "*out": true
- },
- "ExpirationDate": "0001-01-01T00:00:00Z",
- "Weight": 10,
- "DestinationIDs": {},
- "RatingSubject": "",
- "Categories": {},
- "SharedGroups": {},
- "Timings": null,
- "TimingIDs": {},
- "Disabled": false,
- "Factor": null,
- "Blocker": false
- }
- ],
- "*monetary": [
- {
- "Uuid": "afd02789-6a1a-4971-ade9-5cc015a18623",
- "ID": "",
- "Value": 5,
- "Directions": {
- "*out": true
- },
- "ExpirationDate": "0001-01-01T00:00:00Z",
- "Weight": 20,
- "DestinationIDs": {},
- "RatingSubject": "",
- "Categories": {},
- "SharedGroups": {},
- "Timings": null,
- "TimingIDs": {},
- "Disabled": false,
- "Factor": null,
- "Blocker": false
- },
- {
- "Uuid": "6d5c9c18-9ae5-4c3f-86d9-fe55fc721630",
- "ID": "",
- "Value": 5,
- "Directions": {
- "*out": true
- },
- "ExpirationDate": "0001-01-01T00:00:00Z",
- "Weight": 10,
- "DestinationIDs": {},
- "RatingSubject": "",
- "Categories": {},
- "SharedGroups": {
- "SHARED_A": true
- },
- "Timings": null,
- "TimingIDs": {},
- "Disabled": false,
- "Factor": null,
- "Blocker": false
- }
- ],
- "*voice": [
- {
- "Uuid": "a77eeeed-b54c-45b9-9cba-bcba85f25e08",
- "ID": "",
- "Value": 90000000000,
- "Directions": {
- "*out": true
- },
- "ExpirationDate": "0001-01-01T00:00:00Z",
- "Weight": 20,
- "DestinationIDs": {
- "DST_1002": true
- },
- "RatingSubject": "SPECIAL_1002",
- "Categories": {},
- "SharedGroups": {},
- "Timings": null,
- "TimingIDs": {},
- "Disabled": false,
- "Factor": null,
- "Blocker": false
- },
- {
- "Uuid": "653f38e3-cbfe-4423-8281-cd006ebc88f9",
- "ID": "",
- "Value": 120000000000,
- "Directions": {
- "*out": true
- },
- "ExpirationDate": "0001-01-01T00:00:00Z",
- "Weight": 20,
- "DestinationIDs": {
- "DST_1003": true
- },
- "RatingSubject": "",
- "Categories": {},
- "SharedGroups": {},
- "Timings": null,
- "TimingIDs": {},
- "Disabled": false,
- "Factor": null,
- "Blocker": false
- }
- ]
- },
- "UnitCounters": {
- "*monetary": [
- {
- "CounterType": "*event",
- "Counters": [
- {
- "Value": 0,
- "Filter": {
- "Uuid": null,
- "ID": "fe4a12d1-82ce-4fa9-ba35-d5032fa3bf09",
- "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": "9e8ecd20-27a8-406f-906b-b3c96a41c7ad",
- "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": null,
- "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": "fe4a12d1-82ce-4fa9-ba35-d5032fa3bf09",
- "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": "fe4a12d1-82ce-4fa9-ba35-d5032fa3bf09",
- "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
- },
- "Weight": 10,
- "ActionsID": "LOG_WARNING",
- "MinQueuedItems": 0,
- "Executed": false,
- "LastExecutionTime": "0001-01-01T00:00:00Z"
- },
- {
- "ID": "STANDARD_TRIGGERS",
- "UniqueID": "9ddbe164-cea6-48df-bbd9-d282176f3c8b",
- "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": null,
- "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": "ae2d5591-2311-4d14-81c4-01fbd4f147f3",
- "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": null,
- "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
- }
- ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement