basitengr

call 1002-1003

Dec 7th, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 7.65 KB | None | 0 0
  1. ngrep Call trace from User 1002 to 1003
  2.  
  3. T 2017/12/07 21:04:15.040062 127.0.0.1:8448 -> 127.0.0.1:51169 [AP]
  4. 247:{"event":"CGR_AUTH_REQUEST",
  5. .."tr_index":"36746",
  6. .."tr_label":"1617032884",
  7. .."cgr_reqtype":"*postpaid",
  8. .."cgr_tenant":"cgrates.org",
  9. .."cgr_account":"1002",
  10. .."cgr_destination":"1003",
  11. .."cgr_setuptime":"1512680655",
  12. .."cgr_computelcr":"true"},
  13. ##
  14. T 2017/12/07 21:04:15.092227 127.0.0.1:51169 -> 127.0.0.1:8448 [AP]
  15. 188:{"Event":"CGR_AUTH_REPLY","TransactionIndex":36746,"TransactionLabel":1617032884,"MaxSessionTime":-1,"Suppliers":"suppl2,suppl1","ResourceAllocated":true,"AllocationMessage":"","Error":""},
  16. ##
  17. T 2017/12/07 21:04:17.494932 127.0.0.1:8448 -> 127.0.0.1:51169 [AP]
  18. 285:{"event":"CGR_CALL_START",
  19. .."callid":"XEP~wBI5Ro",
  20. .."from_tag":"2WshLT~N~",
  21. .."h_entry":"2827",
  22. .."h_id":"5183",
  23. .."cgr_reqtype":"*postpaid",
  24. .."cgr_tenant":"cgrates.org",
  25. .."cgr_account":"1002",
  26. .."cgr_destination":"1003",
  27. .."cgr_answertime":"1512680657",
  28. .."cgr_supplier":"suppl2"},
  29. ##
  30. ##
  31. T 2017/12/07 21:04:27.319707 127.0.0.1:8448 -> 127.0.0.1:51169 [AP]
  32. 299:{"event":"CGR_CALL_END",
  33. .."callid":"XEP~wBI5Ro",
  34. .."from_tag":"2WshLT~N~",
  35. .."cgr_reqtype":"*postpaid",
  36. .."cgr_tenant":"cgrates.org",
  37. .."cgr_account":"1002",
  38. .."cgr_destination":"1003",
  39. .."cgr_answertime":"1512680657",
  40. .."cgr_duration":"10",
  41. .."cgr_supplier":"suppl2",
  42. .."cgr_disconnectcause":"0"},
  43. #
  44.  
  45. Resulting CDRs in mongo stordb
  46. db.cdrs.find({"originid":"XEP~wBI5Ro;2WshLT~N~"})
  47.  
  48. /* 1 */
  49. {
  50.     "_id" : ObjectId("5a29acdb6ca97563a9aba95d"),
  51.     "cgrid" : "023f5fa987ebf729c22aef33dabf51de5ba2a5ef",
  52.     "runid" : "*raw",
  53.     "orderid" : NumberLong(1512679888381637369),
  54.     "originhost" : "127.0.0.1",
  55.     "source" : "KAMAILIO_CGR_CALL_END",
  56.     "originid" : "XEP~wBI5Ro;2WshLT~N~",
  57.     "tor" : "*voice",
  58.     "requesttype" : "*postpaid",
  59.     "direction" : "*out",
  60.     "tenant" : "cgrates.org",
  61.     "category" : "call",
  62.     "account" : "1002",
  63.     "subject" : "1002",
  64.     "destination" : "1003",
  65.     "setuptime" : ISODate("2017-12-07T21:04:17.000Z"),
  66.     "pdd" : NumberLong(0),
  67.     "answertime" : ISODate("2017-12-07T21:04:17.000Z"),
  68.     "usage" : NumberLong(10000000000),
  69.     "supplier" : "suppl2",
  70.     "disconnectcause" : "0",
  71.     "extrafields" : {},
  72.     "costsource" : "",
  73.     "cost" : -1.0,
  74.     "costdetails" : null,
  75.     "accountsummary" : null,
  76.     "extrainfo" : "",
  77.     "rated" : false,
  78.     "partial" : false
  79. }
  80.  
  81. /* 2 */
  82. {
  83.     "_id" : ObjectId("5a29acdb6ca97563a9aba962"),
  84.     "cgrid" : "023f5fa987ebf729c22aef33dabf51de5ba2a5ef",
  85.     "runid" : "*default",
  86.     "orderid" : NumberLong(1512679888381637369),
  87.     "originhost" : "127.0.0.1",
  88.     "source" : "KAMAILIO_CGR_CALL_END",
  89.     "originid" : "XEP~wBI5Ro;2WshLT~N~",
  90.     "tor" : "*voice",
  91.     "requesttype" : "*postpaid",
  92.     "direction" : "*out",
  93.     "tenant" : "cgrates.org",
  94.     "category" : "call",
  95.     "account" : "1002",
  96.     "subject" : "1002",
  97.     "destination" : "1003",
  98.     "setuptime" : ISODate("2017-12-07T21:04:17.000Z"),
  99.     "pdd" : NumberLong(0),
  100.     "answertime" : ISODate("2017-12-07T21:04:17.000Z"),
  101.     "usage" : NumberLong(10000000000),
  102.     "supplier" : "suppl2",
  103.     "disconnectcause" : "0",
  104.     "extrafields" : {},
  105.     "costsource" : "CDRS",
  106.     "cost" : 0.3,
  107.     "costdetails" : {
  108.         "direction" : "*out",
  109.         "category" : "call",
  110.         "tenant" : "cgrates.org",
  111.         "subject" : "1002",
  112.         "account" : "1002",
  113.         "destination" : "1003",
  114.         "tor" : "*voice",
  115.         "cost" : 0.3,
  116.         "timespans" : [
  117.             {
  118.                 "timestart" : ISODate("2017-12-07T21:04:17.000Z"),
  119.                 "timeend" : ISODate("2017-12-07T21:05:17.000Z"),
  120.                 "cost" : 0.3,
  121.                 "rateinterval" : {
  122.                     "timing" : {
  123.                         "years" : [],
  124.                         "months" : [],
  125.                         "monthdays" : [],
  126.                         "weekdays" : [
  127.                             1,
  128.                             2,
  129.                             3,
  130.                             4,
  131.                             5
  132.                         ],
  133.                         "starttime" : "19:00:00",
  134.                         "endtime" : ""
  135.                     },
  136.                     "rating" : {
  137.                         "connectfee" : 0.2,
  138.                         "roundingmethod" : "*up",
  139.                         "roundingdecimals" : 4,
  140.                         "maxcost" : 0.0,
  141.                         "maxcoststrategy" : "",
  142.                         "rates" : [
  143.                             {
  144.                                 "groupintervalstart" : NumberLong(0),
  145.                                 "value" : 0.1,
  146.                                 "rateincrement" : NumberLong(60000000000),
  147.                                 "rateunit" : NumberLong(60000000000)
  148.                             },
  149.                             {
  150.                                 "groupintervalstart" : NumberLong(60000000000),
  151.                                 "value" : 0.05,
  152.                                 "rateincrement" : NumberLong(1000000000),
  153.                                 "rateunit" : NumberLong(60000000000)
  154.                             }
  155.                         ]
  156.                     },
  157.                     "weight" : 10.0
  158.                 },
  159.                 "durationindex" : NumberLong(60000000000),
  160.                 "increments" : [
  161.                     {
  162.                         "duration" : NumberLong(0),
  163.                         "cost" : 0.2,
  164.                         "balanceinfo" : {
  165.                             "unit" : null,
  166.                             "monetary" : {
  167.                                 "uuid" : "8bd9649d-1026-4305-a976-98e64c1c0552",
  168.                                 "id" : "",
  169.                                 "value" : 8.9,
  170.                                 "rateinterval" : null
  171.                             },
  172.                             "accountid" : "cgrates.org:1002"
  173.                         },
  174.                         "compressfactor" : 1
  175.                     },
  176.                     {
  177.                         "duration" : NumberLong(60000000000),
  178.                         "cost" : 0.1,
  179.                         "balanceinfo" : {
  180.                             "unit" : null,
  181.                             "monetary" : {
  182.                                 "uuid" : "8bd9649d-1026-4305-a976-98e64c1c0552",
  183.                                 "id" : "",
  184.                                 "value" : 8.8,
  185.                                 "rateinterval" : null
  186.                             },
  187.                             "accountid" : "cgrates.org:1002"
  188.                         },
  189.                         "compressfactor" : 1
  190.                     }
  191.                 ],
  192.                 "roundincrement" : null,
  193.                 "matchedsubject" : "*out:cgrates.org:call:*any",
  194.                 "matchedprefix" : "10",
  195.                 "matcheddestid" : "DST_FS",
  196.                 "ratingplanid" : "RP_RETAIL1",
  197.                 "compressfactor" : 1
  198.             }
  199.         ],
  200.         "ratedusage" : 60.0,
  201.         "accountsummary" : {
  202.             "tenant" : "cgrates.org",
  203.             "id" : "1002",
  204.             "balancesummaries" : [
  205.                 {
  206.                     "uuid" : "8bd9649d-1026-4305-a976-98e64c1c0552",
  207.                     "id" : "8bd9649d-1026-4305-a976-98e64c1c0552",
  208.                     "type" : "*monetary",
  209.                     "value" : 8.8,
  210.                     "disabled" : false
  211.                 }
  212.             ],
  213.             "allownegative" : false,
  214.             "disabled" : false
  215.         }
  216.     },
  217.     "accountsummary" : null,
  218.     "extrainfo" : "",
  219.     "rated" : false,
  220.     "partial" : false
  221. }
Add Comment
Please, Sign In to add comment