basitengr

lcr

Dec 11th, 2017
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 9.00 KB | None | 0 0
  1. ======= lcr_rules =======
  2.  
  3.  
  4. /* 1 */
  5. {
  6.     "_id" : ObjectId("5a2eb09122999705a33cfa57"),
  7.     "key" : "*out:cgrates.org:call:1001:*any",
  8.     "value" : {
  9.         "direction" : "*out",
  10.         "tenant" : "cgrates.org",
  11.         "category" : "call",
  12.         "account" : "1001",
  13.         "subject" : "*any",
  14.         "activations" : [
  15.             {
  16.                 "activationtime" : ISODate("2014-01-14T00:00:00.000Z"),
  17.                 "entries" : [
  18.                     {
  19.                         "destinationid" : "DST_1002",
  20.                         "rpcategory" : "lcr_profile1",
  21.                         "strategy" : "*static",
  22.                         "strategyparams" : "suppl2;suppl1",
  23.                         "weight" : 10.0
  24.                     },
  25.                     {
  26.                         "destinationid" : "*any",
  27.                         "rpcategory" : "lcr_profile1",
  28.                         "strategy" : "*static",
  29.                         "strategyparams" : "suppl1;suppl2",
  30.                         "weight" : 10.0
  31.                     }
  32.                 ]
  33.             }
  34.         ]
  35.     }
  36. }
  37.  
  38. /* 2 */
  39. {
  40.     "_id" : ObjectId("5a2eb09122999705a33cfa59"),
  41.     "key" : "*out:cgrates.org:call:1002:*any",
  42.     "value" : {
  43.         "direction" : "*out",
  44.         "tenant" : "cgrates.org",
  45.         "category" : "call",
  46.         "account" : "1002",
  47.         "subject" : "*any",
  48.         "activations" : [
  49.             {
  50.                 "activationtime" : ISODate("2014-01-14T00:00:00.000Z"),
  51.                 "entries" : [
  52.                     {
  53.                         "destinationid" : "DST_1002",
  54.                         "rpcategory" : "lcr_profile1",
  55.                         "strategy" : "*highest_cost",
  56.                         "strategyparams" : "",
  57.                         "weight" : 10.0
  58.                     },
  59.                     {
  60.                         "destinationid" : "*any",
  61.                         "rpcategory" : "lcr_profile1",
  62.                         "strategy" : "*qos",
  63.                         "strategyparams" : "",
  64.                         "weight" : 10.0
  65.                     }
  66.                 ]
  67.             }
  68.         ]
  69.     }
  70. }
  71.  
  72. /* 3 */
  73. {
  74.     "_id" : ObjectId("5a2eb09122999705a33cfa5b"),
  75.     "key" : "*out:cgrates.org:call:1003:*any",
  76.     "value" : {
  77.         "direction" : "*out",
  78.         "tenant" : "cgrates.org",
  79.         "category" : "call",
  80.         "account" : "1003",
  81.         "subject" : "*any",
  82.         "activations" : [
  83.             {
  84.                 "activationtime" : ISODate("2014-01-14T00:00:00.000Z"),
  85.                 "entries" : [
  86.                     {
  87.                         "destinationid" : "DST_1002",
  88.                         "rpcategory" : "lcr_profile1",
  89.                         "strategy" : "*qos_threshold",
  90.                         "strategyparams" : "20;;;;2m;;;;;;;",
  91.                         "weight" : 10.0
  92.                     },
  93.                     {
  94.                         "destinationid" : "*any",
  95.                         "rpcategory" : "lcr_profile1",
  96.                         "strategy" : "*qos_threshold",
  97.                         "strategyparams" : "40;;;;90s;;;;;;;",
  98.                         "weight" : 10.0
  99.                     }
  100.                 ]
  101.             }
  102.         ]
  103.     }
  104. }
  105.  
  106. /* 4 */
  107. {
  108.     "_id" : ObjectId("5a2eb09122999705a33cfa5d"),
  109.     "key" : "*out:cgrates.org:call:1004:*any",
  110.     "value" : {
  111.         "direction" : "*out",
  112.         "tenant" : "cgrates.org",
  113.         "category" : "call",
  114.         "account" : "1004",
  115.         "subject" : "*any",
  116.         "activations" : [
  117.             {
  118.                 "activationtime" : ISODate("2014-01-14T00:00:00.000Z"),
  119.                 "entries" : [
  120.                     {
  121.                         "destinationid" : "DST_1002",
  122.                         "rpcategory" : "lcr_profile1",
  123.                         "strategy" : "*load_distribution",
  124.                         "strategyparams" : "supplier1:5;supplier2:3;*default:1",
  125.                         "weight" : 10.0
  126.                     },
  127.                     {
  128.                         "destinationid" : "*any",
  129.                         "rpcategory" : "lcr_profile1",
  130.                         "strategy" : "*load_distribution",
  131.                         "strategyparams" : "",
  132.                         "weight" : 10.0
  133.                     }
  134.                 ]
  135.             }
  136.         ]
  137.     }
  138. }
  139.  
  140. /* 5 */
  141. {
  142.     "_id" : ObjectId("5a2eb09122999705a33cfa5f"),
  143.     "key" : "*out:cgrates.org:call:*any:*any",
  144.     "value" : {
  145.         "direction" : "*out",
  146.         "tenant" : "cgrates.org",
  147.         "category" : "call",
  148.         "account" : "*any",
  149.         "subject" : "*any",
  150.         "activations" : [
  151.             {
  152.                 "activationtime" : ISODate("2014-01-14T00:00:00.000Z"),
  153.                 "entries" : [
  154.                     {
  155.                         "destinationid" : "DST_1002",
  156.                         "rpcategory" : "lcr_profile2",
  157.                         "strategy" : "*lowest_cost",
  158.                         "strategyparams" : "",
  159.                         "weight" : 10.0
  160.                     },
  161.                     {
  162.                         "destinationid" : "*any",
  163.                         "rpcategory" : "lcr_profile1",
  164.                         "strategy" : "*lowest_cost",
  165.                         "strategyparams" : "",
  166.                         "weight" : 10.0
  167.                     }
  168.                 ]
  169.             }
  170.         ]
  171.     }
  172. }
  173.  
  174. ======== AND rating_profiles =========
  175. /* 1 */
  176. {
  177.     "_id" : ObjectId("5a2eb09122999705a33cfa28"),
  178.     "id" : "*out:cgrates.org:lcr_profile2:suppl1",
  179.     "ratingplanactivations" : [
  180.         {
  181.             "activationtime" : ISODate("2014-01-14T00:00:00.000Z"),
  182.             "ratingplanid" : "RP_RETAIL2",
  183.             "fallbackkeys" : [],
  184.             "cdrstatqueueids" : [
  185.                 "STATS_SUPPL1"
  186.             ]
  187.         }
  188.     ]
  189. }
  190.  
  191. /* 2 */
  192. {
  193.     "_id" : ObjectId("5a2eb09122999705a33cfa2a"),
  194.     "id" : "*out:cgrates.org:call:1001",
  195.     "ratingplanactivations" : [
  196.         {
  197.             "activationtime" : ISODate("2014-01-14T00:00:00.000Z"),
  198.             "ratingplanid" : "RP_RETAIL2",
  199.             "fallbackkeys" : [],
  200.             "cdrstatqueueids" : [
  201.                 ""
  202.             ]
  203.         }
  204.     ]
  205. }
  206.  
  207. /* 3 */
  208. {
  209.     "_id" : ObjectId("5a2eb09122999705a33cfa2c"),
  210.     "id" : "*out:cgrates.org:lcr_profile1:suppl2",
  211.     "ratingplanactivations" : [
  212.         {
  213.             "activationtime" : ISODate("2014-01-14T00:00:00.000Z"),
  214.             "ratingplanid" : "RP_RETAIL2",
  215.             "fallbackkeys" : [],
  216.             "cdrstatqueueids" : [
  217.                 "STATS_SUPPL2"
  218.             ]
  219.         }
  220.     ]
  221. }
  222.  
  223. /* 4 */
  224. {
  225.     "_id" : ObjectId("5a2eb09122999705a33cfa2e"),
  226.     "id" : "*out:cgrates.org:lcr_profile2:suppl2",
  227.     "ratingplanactivations" : [
  228.         {
  229.             "activationtime" : ISODate("2014-01-14T00:00:00.000Z"),
  230.             "ratingplanid" : "RP_RETAIL1",
  231.             "fallbackkeys" : [],
  232.             "cdrstatqueueids" : [
  233.                 "STATS_SUPPL2"
  234.             ]
  235.         }
  236.     ]
  237. }
  238.  
  239. /* 5 */
  240. {
  241.     "_id" : ObjectId("5a2eb09122999705a33cfa30"),
  242.     "id" : "*out:cgrates.org:call:*any",
  243.     "ratingplanactivations" : [
  244.         {
  245.             "activationtime" : ISODate("2014-01-14T00:00:00.000Z"),
  246.             "ratingplanid" : "RP_RETAIL1",
  247.             "fallbackkeys" : [],
  248.             "cdrstatqueueids" : [
  249.                 ""
  250.             ]
  251.         }
  252.     ]
  253. }
  254.  
  255. /* 6 */
  256. {
  257.     "_id" : ObjectId("5a2eb09122999705a33cfa32"),
  258.     "id" : "*out:cgrates.org:lcr_profile1:suppl1",
  259.     "ratingplanactivations" : [
  260.         {
  261.             "activationtime" : ISODate("2014-01-14T00:00:00.000Z"),
  262.             "ratingplanid" : "RP_RETAIL1",
  263.             "fallbackkeys" : [],
  264.             "cdrstatqueueids" : [
  265.                 "STATS_SUPPL1"
  266.             ]
  267.         }
  268.     ]
  269. }
  270.  
  271. /* 7 */
  272. {
  273.     "_id" : ObjectId("5a2eb09122999705a33cfa34"),
  274.     "id" : "*out:cgrates.org:call:SPECIAL_1002",
  275.     "ratingplanactivations" : [
  276.         {
  277.             "activationtime" : ISODate("2014-01-14T00:00:00.000Z"),
  278.             "ratingplanid" : "RP_SPECIAL_1002",
  279.             "fallbackkeys" : [],
  280.             "cdrstatqueueids" : [
  281.                 ""
  282.             ]
  283.         }
  284.     ]
  285. }
  286.  
  287. /* 8 */
  288. {
  289.     "_id" : ObjectId("5a2eb09122999705a33cfa36"),
  290.     "id" : "*out:cgrates.org:lcr_profile2:suppl3",
  291.     "ratingplanactivations" : [
  292.         {
  293.             "activationtime" : ISODate("2014-01-14T00:00:00.000Z"),
  294.             "ratingplanid" : "RP_SPECIAL_1002",
  295.             "fallbackkeys" : [],
  296.             "cdrstatqueueids" : [
  297.                 ""
  298.             ]
  299.         }
  300.     ]
  301. }
  302.  
  303. /* 9 */
  304. {
  305.     "_id" : ObjectId("5a2eb09122999705a33cfa38"),
  306.     "id" : "*out:cgrates.org:generic:*any",
  307.     "ratingplanactivations" : [
  308.         {
  309.             "activationtime" : ISODate("2014-01-14T00:00:00.000Z"),
  310.             "ratingplanid" : "RP_GENERIC",
  311.             "fallbackkeys" : [],
  312.             "cdrstatqueueids" : [
  313.                 ""
  314.             ]
  315.         }
  316.     ]
  317. }
Add Comment
Please, Sign In to add comment