Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ======= lcr_rules =======
- /* 1 */
- {
- "_id" : ObjectId("5a2eb09122999705a33cfa57"),
- "key" : "*out:cgrates.org:call:1001:*any",
- "value" : {
- "direction" : "*out",
- "tenant" : "cgrates.org",
- "category" : "call",
- "account" : "1001",
- "subject" : "*any",
- "activations" : [
- {
- "activationtime" : ISODate("2014-01-14T00:00:00.000Z"),
- "entries" : [
- {
- "destinationid" : "DST_1002",
- "rpcategory" : "lcr_profile1",
- "strategy" : "*static",
- "strategyparams" : "suppl2;suppl1",
- "weight" : 10.0
- },
- {
- "destinationid" : "*any",
- "rpcategory" : "lcr_profile1",
- "strategy" : "*static",
- "strategyparams" : "suppl1;suppl2",
- "weight" : 10.0
- }
- ]
- }
- ]
- }
- }
- /* 2 */
- {
- "_id" : ObjectId("5a2eb09122999705a33cfa59"),
- "key" : "*out:cgrates.org:call:1002:*any",
- "value" : {
- "direction" : "*out",
- "tenant" : "cgrates.org",
- "category" : "call",
- "account" : "1002",
- "subject" : "*any",
- "activations" : [
- {
- "activationtime" : ISODate("2014-01-14T00:00:00.000Z"),
- "entries" : [
- {
- "destinationid" : "DST_1002",
- "rpcategory" : "lcr_profile1",
- "strategy" : "*highest_cost",
- "strategyparams" : "",
- "weight" : 10.0
- },
- {
- "destinationid" : "*any",
- "rpcategory" : "lcr_profile1",
- "strategy" : "*qos",
- "strategyparams" : "",
- "weight" : 10.0
- }
- ]
- }
- ]
- }
- }
- /* 3 */
- {
- "_id" : ObjectId("5a2eb09122999705a33cfa5b"),
- "key" : "*out:cgrates.org:call:1003:*any",
- "value" : {
- "direction" : "*out",
- "tenant" : "cgrates.org",
- "category" : "call",
- "account" : "1003",
- "subject" : "*any",
- "activations" : [
- {
- "activationtime" : ISODate("2014-01-14T00:00:00.000Z"),
- "entries" : [
- {
- "destinationid" : "DST_1002",
- "rpcategory" : "lcr_profile1",
- "strategy" : "*qos_threshold",
- "strategyparams" : "20;;;;2m;;;;;;;",
- "weight" : 10.0
- },
- {
- "destinationid" : "*any",
- "rpcategory" : "lcr_profile1",
- "strategy" : "*qos_threshold",
- "strategyparams" : "40;;;;90s;;;;;;;",
- "weight" : 10.0
- }
- ]
- }
- ]
- }
- }
- /* 4 */
- {
- "_id" : ObjectId("5a2eb09122999705a33cfa5d"),
- "key" : "*out:cgrates.org:call:1004:*any",
- "value" : {
- "direction" : "*out",
- "tenant" : "cgrates.org",
- "category" : "call",
- "account" : "1004",
- "subject" : "*any",
- "activations" : [
- {
- "activationtime" : ISODate("2014-01-14T00:00:00.000Z"),
- "entries" : [
- {
- "destinationid" : "DST_1002",
- "rpcategory" : "lcr_profile1",
- "strategy" : "*load_distribution",
- "strategyparams" : "supplier1:5;supplier2:3;*default:1",
- "weight" : 10.0
- },
- {
- "destinationid" : "*any",
- "rpcategory" : "lcr_profile1",
- "strategy" : "*load_distribution",
- "strategyparams" : "",
- "weight" : 10.0
- }
- ]
- }
- ]
- }
- }
- /* 5 */
- {
- "_id" : ObjectId("5a2eb09122999705a33cfa5f"),
- "key" : "*out:cgrates.org:call:*any:*any",
- "value" : {
- "direction" : "*out",
- "tenant" : "cgrates.org",
- "category" : "call",
- "account" : "*any",
- "subject" : "*any",
- "activations" : [
- {
- "activationtime" : ISODate("2014-01-14T00:00:00.000Z"),
- "entries" : [
- {
- "destinationid" : "DST_1002",
- "rpcategory" : "lcr_profile2",
- "strategy" : "*lowest_cost",
- "strategyparams" : "",
- "weight" : 10.0
- },
- {
- "destinationid" : "*any",
- "rpcategory" : "lcr_profile1",
- "strategy" : "*lowest_cost",
- "strategyparams" : "",
- "weight" : 10.0
- }
- ]
- }
- ]
- }
- }
- ======== AND rating_profiles =========
- /* 1 */
- {
- "_id" : ObjectId("5a2eb09122999705a33cfa28"),
- "id" : "*out:cgrates.org:lcr_profile2:suppl1",
- "ratingplanactivations" : [
- {
- "activationtime" : ISODate("2014-01-14T00:00:00.000Z"),
- "ratingplanid" : "RP_RETAIL2",
- "fallbackkeys" : [],
- "cdrstatqueueids" : [
- "STATS_SUPPL1"
- ]
- }
- ]
- }
- /* 2 */
- {
- "_id" : ObjectId("5a2eb09122999705a33cfa2a"),
- "id" : "*out:cgrates.org:call:1001",
- "ratingplanactivations" : [
- {
- "activationtime" : ISODate("2014-01-14T00:00:00.000Z"),
- "ratingplanid" : "RP_RETAIL2",
- "fallbackkeys" : [],
- "cdrstatqueueids" : [
- ""
- ]
- }
- ]
- }
- /* 3 */
- {
- "_id" : ObjectId("5a2eb09122999705a33cfa2c"),
- "id" : "*out:cgrates.org:lcr_profile1:suppl2",
- "ratingplanactivations" : [
- {
- "activationtime" : ISODate("2014-01-14T00:00:00.000Z"),
- "ratingplanid" : "RP_RETAIL2",
- "fallbackkeys" : [],
- "cdrstatqueueids" : [
- "STATS_SUPPL2"
- ]
- }
- ]
- }
- /* 4 */
- {
- "_id" : ObjectId("5a2eb09122999705a33cfa2e"),
- "id" : "*out:cgrates.org:lcr_profile2:suppl2",
- "ratingplanactivations" : [
- {
- "activationtime" : ISODate("2014-01-14T00:00:00.000Z"),
- "ratingplanid" : "RP_RETAIL1",
- "fallbackkeys" : [],
- "cdrstatqueueids" : [
- "STATS_SUPPL2"
- ]
- }
- ]
- }
- /* 5 */
- {
- "_id" : ObjectId("5a2eb09122999705a33cfa30"),
- "id" : "*out:cgrates.org:call:*any",
- "ratingplanactivations" : [
- {
- "activationtime" : ISODate("2014-01-14T00:00:00.000Z"),
- "ratingplanid" : "RP_RETAIL1",
- "fallbackkeys" : [],
- "cdrstatqueueids" : [
- ""
- ]
- }
- ]
- }
- /* 6 */
- {
- "_id" : ObjectId("5a2eb09122999705a33cfa32"),
- "id" : "*out:cgrates.org:lcr_profile1:suppl1",
- "ratingplanactivations" : [
- {
- "activationtime" : ISODate("2014-01-14T00:00:00.000Z"),
- "ratingplanid" : "RP_RETAIL1",
- "fallbackkeys" : [],
- "cdrstatqueueids" : [
- "STATS_SUPPL1"
- ]
- }
- ]
- }
- /* 7 */
- {
- "_id" : ObjectId("5a2eb09122999705a33cfa34"),
- "id" : "*out:cgrates.org:call:SPECIAL_1002",
- "ratingplanactivations" : [
- {
- "activationtime" : ISODate("2014-01-14T00:00:00.000Z"),
- "ratingplanid" : "RP_SPECIAL_1002",
- "fallbackkeys" : [],
- "cdrstatqueueids" : [
- ""
- ]
- }
- ]
- }
- /* 8 */
- {
- "_id" : ObjectId("5a2eb09122999705a33cfa36"),
- "id" : "*out:cgrates.org:lcr_profile2:suppl3",
- "ratingplanactivations" : [
- {
- "activationtime" : ISODate("2014-01-14T00:00:00.000Z"),
- "ratingplanid" : "RP_SPECIAL_1002",
- "fallbackkeys" : [],
- "cdrstatqueueids" : [
- ""
- ]
- }
- ]
- }
- /* 9 */
- {
- "_id" : ObjectId("5a2eb09122999705a33cfa38"),
- "id" : "*out:cgrates.org:generic:*any",
- "ratingplanactivations" : [
- {
- "activationtime" : ISODate("2014-01-14T00:00:00.000Z"),
- "ratingplanid" : "RP_GENERIC",
- "fallbackkeys" : [],
- "cdrstatqueueids" : [
- ""
- ]
- }
- ]
- }
Add Comment
Please, Sign In to add comment