Advertisement
ScrappyCocoJamba

cnmt-3

Apr 6th, 2020
322
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 41.98 KB | None | 0 0
  1. {
  2.     "_id" : ObjectId("5e8aac19ffbf3e00095e292c"),
  3.     "phone" : "89059532363",
  4.     "campaign" : "5e5e56113554309633698211",
  5.     "state" : "PERFORMED",
  6.     "lastCallRequestTimestamp" : NumberLong(1586146330266),
  7.     "callAnsweredTimestamp" : NumberLong(1586146337334),
  8.     "calls" : [],
  9.     "outgoingCalls" : [
  10.         {
  11.             "uuid" : "bb555572-a8d8-4819-82e3-dcc6a94fc93a",
  12.             "request" : {
  13.                 "targetTopic" : "sip-system-originate-request-fs2-release-2-3",
  14.                 "responseTopic" : "calling-system-orig-result-apps10",
  15.                 "scenarioResultTopic" : "scenario_result_sdk_v2_apps10",
  16.                 "scenarioParametersApiHost" : "small-apps10-back",
  17.                 "scenarioParametersApiPort" : "8106",
  18.                 "callUrl" : "sofia/gateway/cnmt-01/89059532363 ext XML outgoing-release-2-6-ms10-cnmt",
  19.                 "createdUtcMs" : NumberLong(1586146330266),
  20.                 "callUuid" : "bb555572-a8d8-4819-82e3-dcc6a94fc93a",
  21.                 "callTaskUuid" : "5e8aac19ffbf3e00095e292c",
  22.                 "client" : "5e5e52dc355430963359fd93",
  23.                 "campaign" : "5e5e56113554309633698211",
  24.                 "originateParameters" : {},
  25.                 "originateTimeoutSec" : 20
  26.             },
  27.             "originateResult" : {
  28.                 "timestamp" : NumberLong(1586146337334),
  29.                 "sipCode" : 200,
  30.                 "fullSipSystemResponse" : "+OK f0488d3a-9305-42d5-a3fb-8befbd7a57c4",
  31.                 "callUuid" : "bb555572-a8d8-4819-82e3-dcc6a94fc93a",
  32.                 "callTaskId" : "5e8aac19ffbf3e00095e292c"
  33.             },
  34.             "cdr" : {
  35.                 "cdr" : {
  36.                     "variables" : {
  37.                         "write_codec" : "PCMA",
  38.                         "sip_to_host" : "109.202.17.156",
  39.                         "hold_accum_usec" : 0,
  40.                         "sip_from_port" : 5060,
  41.                         "bridge_uuid" : "4305cf43-627e-4a36-afb3-f6ac397fe8ca",
  42.                         "start_epoch" : 1586146330,
  43.                         "rtp_2833_send_payload" : 101,
  44.                         "original_read_rate" : 8000,
  45.                         "profile_start_epoch" : 1586146337,
  46.                         "last_bridge_role" : "originator",
  47.                         "transfer_history" : "1586146337%3A75de4bbf-8bf9-44f6-bcbf-f21bfb873dea%3Abl_xfer%3Aext/outgoing-release-2-6-ms10-cnmt/XML",
  48.                         "sip_hangup_phrase" : "OK",
  49.                         "CallingSystemCallUuid" : "bb555572-a8d8-4819-82e3-dcc6a94fc93a",
  50.                         "sofia_profile_url" : "sip%3Amod_sofia%4092.119.230.222%3A5060",
  51.                         "sip_term_cause" : 16,
  52.                         "ignore_early_media" : true,
  53.                         "waitusec" : 61579992,
  54.                         "sip_to_user" : NumberLong(89059532363),
  55.                         "rtp_last_audio_codec_string" : "PCMA%408000h%4020i%401c",
  56.                         "rtp_audio_in_packet_count" : 3613,
  57.                         "rtp_audio_in_jitter_packet_count" : 0,
  58.                         "last_arg" : "lua/sdk/outgoing-release-2.6-cnmt.lua",
  59.                         "end_uepoch" : NumberLong(1586146410450323),
  60.                         "rtp_use_codec_name" : "PCMA",
  61.                         "answer_uepoch" : NumberLong(1586146337310328),
  62.                         "record_seconds" : 72,
  63.                         "start_uepoch" : NumberLong(1586146330270336),
  64.                         "waitsec" : 61,
  65.                         "flow_billsec" : 80,
  66.                         "sip_call_id" : "a0a715e6-f25f-1238-1483-7a0bcb97d606",
  67.                         "sip_full_from" : "%22%22%20%3Csip%3AFreeSWITCH%40109.202.17.156%3A5060%3E%3Btag%3DSFNtFmjr39D1c",
  68.                         "remote_video_media_flow" : "inactive",
  69.                         "remote_text_media_flow" : "inactive",
  70.                         "bridge_stamp" : "2020-04-06%2004%3A13%3A11",
  71.                         "sip_hangup_disposition" : "recv_bye",
  72.                         "read_rate" : 8000,
  73.                         "rtp_audio_in_skip_packet_count" : 40,
  74.                         "switch_r_sdp" : "v%3D0%0D%0Ao%3D-%201149904478%204022681350%20IN%20IP4%20109.202.17.156%0D%0As%3DOktell%0D%0Ac%3DIN%20IP4%20109.202.17.156%0D%0At%3D0%200%0D%0Am%3Daudio%2018138%20RTP/AVP%208%20101%0D%0Aa%3Drtpmap%3A8%20PCMA/8000%0D%0Aa%3Drtpmap%3A101%20telephone-event/8000%0D%0Aa%3Dfmtp%3A101%200-15%0D%0Aa%3Dptime%3A20%0D%0A",
  75.                         "sip_recover_via" : "SIP/2.0/UDP%2092.119.230.222%3A5060%3Bbranch%3Dz9hG4bKX48m5g4ZyBBBm%3Breceived%3D92.119.230.222%3Brport%3D5060",
  76.                         "rtp_audio_rtcp_octet_count" : 0,
  77.                         "sip_reply_host" : "109.202.17.156",
  78.                         "billmsec" : 73140,
  79.                         "record_samples" : 582560,
  80.                         "answer_stamp" : "2020-04-06%2004%3A12%3A17",
  81.                         "session_id" : 9228,
  82.                         "progress_stamp" : "2020-04-06%2004%3A12%3A10",
  83.                         "hold_accum_seconds" : 0,
  84.                         "last_hold_epoch" : 0,
  85.                         "sip_bye_h_X-Ivoice-BridgeDestination" : "sofia/gateway/cnmt-01/499",
  86.                         "progresssec" : 0,
  87.                         "sip_cseq" : 18519373,
  88.                         "current_application" : "lua",
  89.                         "hangup_cause" : "NORMAL_CLEARING",
  90.                         "hangup_cause_q850" : 16,
  91.                         "resurrect_epoch" : 0,
  92.                         "rtp_audio_in_flaw_total" : 69,
  93.                         "advertised_media_ip" : "92.119.230.222",
  94.                         "SleepTime" : 16,
  95.                         "ScenarioResultTopic" : "scenario_result_sdk_v2_apps10",
  96.                         "hold_accum_ms" : 0,
  97.                         "rtp_audio_out_packet_count" : 3636,
  98.                         "sip_contact_user" : NumberLong(89059532363),
  99.                         "start_stamp" : "2020-04-06%2004%3A12%3A10",
  100.                         "rtp_audio_recv_pt" : 8,
  101.                         "progress_media_uepoch" : 0,
  102.                         "rtp_use_codec_string" : "PCMA,PCMU",
  103.                         "progressmsec" : 60,
  104.                         "bridge_hangup_cause" : "NORMAL_CLEARING",
  105.                         "rtp_audio_out_dtmf_packet_count" : 0,
  106.                         "proto_specific_hangup_cause" : "sip%3A200",
  107.                         "rtp_audio_in_mos" : 4.48,
  108.                         "last_sent_callee_id_name" : "Outbound%20Call",
  109.                         "sip_local_network_addr" : "92.119.230.222",
  110.                         "rtp_audio_out_media_bytes" : 625274,
  111.                         "rtp_use_timer_name" : "soft",
  112.                         "Campaign" : "5e5e56113554309633698211",
  113.                         "text_media_flow" : "disabled",
  114.                         "sip_term_status" : 200,
  115.                         "answermsec" : 7040,
  116.                         "sip_profile_name" : "gateway",
  117.                         "sofia_profile_name" : "external",
  118.                         "sip_from_tag" : "SFNtFmjr39D1c",
  119.                         "rtp_audio_in_jitter_burst_rate" : 1.04,
  120.                         "resurrect_uepoch" : 0,
  121.                         "last_bridge_to" : "4305cf43-627e-4a36-afb3-f6ac397fe8ca",
  122.                         "recovery_profile_name" : "external",
  123.                         "sip_bye_h_X-RestComm-CallSid" : "ID11f0bb64e3684c0aa59ac86d15678d8b-CA58ec6bfb7e5e44beaae106910bb764c1",
  124.                         "progress_mediamsec" : 0,
  125.                         "sip_from_user" : "FreeSWITCH",
  126.                         "duration" : 80,
  127.                         "sip_contact_uri" : "89059532363%40109.202.17.156%3A5060",
  128.                         "local_media_port" : 22694,
  129.                         "remote_audio_media_flow" : "sendrecv",
  130.                         "audio_media_flow" : "sendrecv",
  131.                         "flow_billusec" : 80179987,
  132.                         "local_media_ip" : "92.119.230.222",
  133.                         "rtp_audio_in_jitter_loss_rate" : 0.01,
  134.                         "sip_from_uri" : "FreeSWITCH%40109.202.17.156%3A5060",
  135.                         "ScenarioParametersApiHost" : "small-apps10-back",
  136.                         "sip_bye_h_X-Ivoice-MARK" : "drugoy_otvet",
  137.                         "endpoint_disposition" : "ANSWER",
  138.                         "sip_contact_host" : "109.202.17.156",
  139.                         "rtp_audio_in_mean_interval" : 20.12,
  140.                         "sip_reply_port" : 5060,
  141.                         "end_stamp" : "2020-04-06%2004%3A13%3A30",
  142.                         "leg_timeout" : 20,
  143.                         "waitmsec" : 61580,
  144.                         "current_application_data" : "lua/sdk/outgoing-release-2.6-cnmt.lua",
  145.                         "rtp_audio_out_raw_bytes" : 625274,
  146.                         "progress_uepoch" : NumberLong(1586146330330327),
  147.                         "rtp_use_codec_ptime" : 20,
  148.                         "record_file_size" : 2330284,
  149.                         "answersec" : 7,
  150.                         "rtp_audio_in_jitter_max_variance" : 110.5,
  151.                         "sip_full_to" : "%3Csip%3A89059532363%40109.202.17.156%3A5060%3E%3Btag%3Dd2b5dbeb-44180000-5479230c",
  152.                         "max_forwards" : 70,
  153.                         "sip_network_ip" : "109.202.17.156",
  154.                         "sip_from_host" : "109.202.17.156",
  155.                         "rtp_audio_in_dtmf_packet_count" : 0,
  156.                         "remote_media_port" : 18138,
  157.                         "last_sent_callee_id_number" : 499,
  158.                         "sip_network_port" : 5060,
  159.                         "pre_transfer_caller_id_number" : "0000000000",
  160.                         "progress_mediasec" : 0,
  161.                         "sip_recover_contact" : "%3Csip%3A89059532363%40109.202.17.156%3A5060%3Btransport%3DUDP%3E",
  162.                         "rtp_use_codec_channels" : 1,
  163.                         "rtp_local_sdp_str" : "v%3D0%0D%0Ao%3DFreeSWITCH%201586123636%201586123637%20IN%20IP4%2092.119.230.222%0D%0As%3DFreeSWITCH%0D%0Ac%3DIN%20IP4%2092.119.230.222%0D%0At%3D0%200%0D%0Am%3Daudio%2022694%20RTP/AVP%208%200%20101%0D%0Aa%3Drtpmap%3A8%20PCMA/8000%0D%0Aa%3Drtpmap%3A0%20PCMU/8000%0D%0Aa%3Drtpmap%3A101%20telephone-event/8000%0D%0Aa%3Dfmtp%3A101%200-16%0D%0Aa%3Dptime%3A20%0D%0Aa%3Dsendrecv%0D%0A",
  164.                         "record_completion_cause" : "success-silence",
  165.                         "answerusec" : 7039992,
  166.                         "sip_req_uri" : "89059532363%40109.202.17.156%3A5060",
  167.                         "profile_start_uepoch" : NumberLong(1586146337330363),
  168.                         "RECORD_STEREO" : true,
  169.                         "rtp_audio_in_raw_bytes" : 621436,
  170.                         "rtp_audio_rtcp_packet_count" : 0,
  171.                         "bridge_epoch" : 1586146391,
  172.                         "bridge_uepoch" : NumberLong(1586146391850328),
  173.                         "sip_user_agent" : "Oktell%202.15.3%20HCS%202.16.72.231%20Nov%2028%202019",
  174.                         "write_rate" : 8000,
  175.                         "billusec" : 73139995,
  176.                         "answer_epoch" : 1586146337,
  177.                         "call_uuid" : "f0488d3a-9305-42d5-a3fb-8befbd7a57c4",
  178.                         "rtp_audio_out_skip_packet_count" : 0,
  179.                         "sip_full_via" : "SIP/2.0/UDP%2092.119.230.222%3A5060%3Bbranch%3Dz9hG4bKX48m5g4ZyBBBm%3Breceived%3D92.119.230.222%3Brport%3D5060",
  180.                         "channel_name" : "sofia/external/89059532363",
  181.                         "rtp_audio_out_cng_packet_count" : 0,
  182.                         "progress_epoch" : 1586146330,
  183.                         "mduration" : 80180,
  184.                         "last_bridge_hangup_cause" : "NORMAL_CLEARING",
  185.                         "record_ms" : 72820,
  186.                         "remote_media_ip" : "109.202.17.156",
  187.                         "ep_codec_string" : "CORE_PCM_MODULE.PCMA%408000h%4020i%4064000b",
  188.                         "rtp_use_pt" : 8,
  189.                         "rtp_audio_in_largest_jb_size" : 0,
  190.                         "rtp_audio_in_media_bytes" : 620060,
  191.                         "transfer_source" : "1586146337%3A75de4bbf-8bf9-44f6-bcbf-f21bfb873dea%3Abl_xfer%3Aext/outgoing-release-2-6-ms10-cnmt/XML",
  192.                         "rtp_audio_in_cng_packet_count" : 0,
  193.                         "last_hold_uepoch" : 0,
  194.                         "uduration" : 80179987,
  195.                         "rtp_audio_in_quality_percentage" : 98,
  196.                         "rtp_use_codec_rate" : 8000,
  197.                         "ScenarioParametersApiPort" : 8106,
  198.                         "uuid" : "f0488d3a-9305-42d5-a3fb-8befbd7a57c4",
  199.                         "sip_gateway_name" : "cnmt-01",
  200.                         "sip_destination_url" : "sip%3A89059532363%40109.202.17.156%3A5060",
  201.                         "sip_to_uri" : "89059532363%40109.202.17.156%3A5060",
  202.                         "read_codec" : "PCMA",
  203.                         "rtp_use_ssrc" : NumberLong(3465303634),
  204.                         "Client" : "5e5e52dc355430963359fd93",
  205.                         "billsec" : 73,
  206.                         "progress_media_epoch" : 0,
  207.                         "rtp_2833_recv_payload" : 101,
  208.                         "CallTaskId" : "5e8aac19ffbf3e00095e292c",
  209.                         "end_epoch" : 1586146410,
  210.                         "profile_start_stamp" : "2020-04-06%2004%3A12%3A17",
  211.                         "caller_id" : "%22Outbound%20Call%22%20%3C89059532363%3E",
  212.                         "progressusec" : 59991,
  213.                         "originate_early_media" : false,
  214.                         "SipServlet" : "sipservlet_ms10",
  215.                         "sip_outgoing_contact_uri" : "%3Csip%3Agw%2Bcnmt-01%4092.119.230.222%3A5060%3Btransport%3Dudp%3Bgw%3Dcnmt-01%3E",
  216.                         "sip_contact_port" : 5060,
  217.                         "flow_billmsec" : 80180,
  218.                         "bridge_channel" : "sofia/external/499",
  219.                         "dtmf_type" : "rfc2833",
  220.                         "rtp_audio_in_media_packet_count" : 3605,
  221.                         "direction" : "outbound",
  222.                         "video_media_flow" : "disabled",
  223.                         "sip_contact_params" : "transport%3DUDP",
  224.                         "sip_to_tag" : "d2b5dbeb-44180000-5479230c",
  225.                         "sip_to_port" : 5060,
  226.                         "rtp_audio_out_media_packet_count" : 3636,
  227.                         "digits_dialed" : "none",
  228.                         "signal_bond" : "4305cf43-627e-4a36-afb3-f6ac397fe8ca",
  229.                         "progress_mediausec" : 0,
  230.                         "last_app" : "lua",
  231.                         "is_outbound" : true,
  232.                         "rtp_audio_in_jitter_min_variance" : 33.79,
  233.                         "hangup_complete_with_xml" : true,
  234.                         "original_read_codec" : "PCMA",
  235.                         "last_bridge_proto_specific_hangup_cause" : "sip%3A200",
  236.                         "rtp_audio_in_flush_packet_count" : 8
  237.                     },
  238.                     "callflow" : [
  239.                         {
  240.                             "extension" : {
  241.                                 "current_app" : "set_audio_level",
  242.                                 "number" : "ext",
  243.                                 "application" : [
  244.                                     {
  245.                                         "app_name" : "log",
  246.                                         "app_data" : "INFO sip-system passed vars: ClientId=${Client}; CampaignId=${Campaign}; CallTaskId=${CallTaskId}; CallingSystemCallUuid=${CallingSystemCallUuid}; ScenarioResultTopic=${ScenarioResultTopic}; ScenarioParametersApiHost=${ScenarioParametersApiHost}; ScenarioParametersApiPort=${ScenarioParametersApiPort}"
  247.                                     },
  248.                                     {
  249.                                         "app_name" : "wait_for_answer",
  250.                                         "app_data" : ""
  251.                                     },
  252.                                     {
  253.                                         "app_name" : "sched_hangup",
  254.                                         "app_data" : "+600 CHANNEL_HANGUP_COMPLETE"
  255.                                     },
  256.                                     {
  257.                                         "app_name" : "set",
  258.                                         "app_data" : "RECORD_STEREO=true"
  259.                                     },
  260.                                     {
  261.                                         "app_name" : "record_session",
  262.                                         "app_data" : "/var/lib/freeswitch/recordings/${Client}/${Campaign}/${CallTaskId}.wav"
  263.                                     },
  264.                                     {
  265.                                         "app_name" : "set",
  266.                                         "app_data" : "SleepTime=16"
  267.                                     },
  268.                                     {
  269.                                         "app_name" : "sleep",
  270.                                         "app_data" : "${SleepTime}"
  271.                                     },
  272.                                     {
  273.                                         "app_name" : "set",
  274.                                         "app_data" : "SipServlet=sipservlet_ms10"
  275.                                     },
  276.                                     {
  277.                                         "app_name" : "lua",
  278.                                         "app_data" : "lua/sdk/outgoing-release-2.6-cnmt.lua"
  279.                                     },
  280.                                     {
  281.                                         "app_name" : "set_audio_level",
  282.                                         "app_data" : "read 4",
  283.                                         "last_executed" : true
  284.                                     },
  285.                                     {
  286.                                         "app_name" : "set_audio_level",
  287.                                         "app_data" : "write 4"
  288.                                     }
  289.                                 ],
  290.                                 "name" : "ext"
  291.                             },
  292.                             "times" : {
  293.                                 "progress_time" : NumberLong(1586146330330327),
  294.                                 "created_time" : NumberLong(1586146330270336),
  295.                                 "hold_accum_time" : 0,
  296.                                 "resurrect_time" : 0,
  297.                                 "answered_time" : NumberLong(1586146337310328),
  298.                                 "transfer_time" : 0,
  299.                                 "bridged_time" : NumberLong(1586146391850328),
  300.                                 "hangup_time" : NumberLong(1586146410450323),
  301.                                 "progress_media_time" : 0,
  302.                                 "profile_created_time" : NumberLong(1586146337330363),
  303.                                 "last_hold_time" : 0
  304.                             },
  305.                             "profile_index" : 2,
  306.                             "dialplan" : "XML",
  307.                             "clone-of" : "74b7e419-59b2-4c35-bdda-a74d0446c755",
  308.                             "caller_profile" : {
  309.                                 "caller_id_name" : "Outbound Call",
  310.                                 "transfer_source" : "1586146337:75de4bbf-8bf9-44f6-bcbf-f21bfb873dea:bl_xfer:ext/outgoing-release-2-6-ms10-cnmt/XML",
  311.                                 "destination_number" : "ext",
  312.                                 "device_id" : "",
  313.                                 "chan_name" : "sofia/external/89059532363",
  314.                                 "dialplan" : "XML",
  315.                                 "callee_id_number" : 499,
  316.                                 "source" : "src/switch_ivr_originate.c",
  317.                                 "network_addr" : "109.202.17.156",
  318.                                 "uuid" : "f0488d3a-9305-42d5-a3fb-8befbd7a57c4",
  319.                                 "callee_id_name" : "Outbound Call",
  320.                                 "rdnis" : NumberLong(89059532363),
  321.                                 "aniii" : "",
  322.                                 "context" : "outgoing-release-2-6-ms10-cnmt",
  323.                                 "caller_id_number" : NumberLong(89059532363),
  324.                                 "ani" : "0000000000",
  325.                                 "username" : ""
  326.                             },
  327.                             "unique-id" : "75de4bbf-8bf9-44f6-bcbf-f21bfb873dea"
  328.                         },
  329.                         {
  330.                             "times" : {
  331.                                 "progress_time" : NumberLong(1586146330330327),
  332.                                 "created_time" : NumberLong(1586146330270336),
  333.                                 "hold_accum_time" : 0,
  334.                                 "resurrect_time" : 0,
  335.                                 "answered_time" : NumberLong(1586146337310328),
  336.                                 "transfer_time" : NumberLong(1586146337330363),
  337.                                 "bridged_time" : 0,
  338.                                 "hangup_time" : 0,
  339.                                 "progress_media_time" : 0,
  340.                                 "profile_created_time" : NumberLong(1586146330270336),
  341.                                 "last_hold_time" : 0
  342.                             },
  343.                             "profile_index" : 1,
  344.                             "clone-of" : "9ef28280-20aa-4df9-a385-2047ba0d4c7d",
  345.                             "caller_profile" : {
  346.                                 "caller_id_name" : "",
  347.                                 "destination_number" : NumberLong(89059532363),
  348.                                 "device_id" : "",
  349.                                 "chan_name" : "sofia/external/89059532363",
  350.                                 "dialplan" : "",
  351.                                 "callee_id_number" : NumberLong(89059532363),
  352.                                 "source" : "src/switch_ivr_originate.c",
  353.                                 "network_addr" : "109.202.17.156",
  354.                                 "uuid" : "f0488d3a-9305-42d5-a3fb-8befbd7a57c4",
  355.                                 "callee_id_name" : "Outbound Call",
  356.                                 "rdnis" : "",
  357.                                 "aniii" : "",
  358.                                 "context" : "default",
  359.                                 "caller_id_number" : "0000000000",
  360.                                 "ani" : "0000000000",
  361.                                 "username" : ""
  362.                             },
  363.                             "unique-id" : "74b7e419-59b2-4c35-bdda-a74d0446c755"
  364.                         }
  365.                     ],
  366.                     "core-uuid" : "ca997e1a-1db2-4ae8-9a18-df43d40d46b2",
  367.                     "channel_data" : {
  368.                         "state_number" : 11,
  369.                         "flags" : "0=1;1=1;2=1;21=1;38=1;39=1;41=1;44=1;49=2;54=1;61=1;96=1;107=1;113=1;114=1;123=1;160=1;165=1;166=1",
  370.                         "state" : "CS_REPORTING",
  371.                         "direction" : "outbound",
  372.                         "caps" : "1=1;2=1;3=1;4=1;5=1;6=1;8=1;9=1"
  373.                     },
  374.                     "app_log" : {
  375.                         "application" : [
  376.                             {
  377.                                 "app_name" : "log",
  378.                                 "app_stamp" : NumberLong(1586146337332137),
  379.                                 "app_data" : "INFO sip-system passed vars: ClientId=5e5e52dc355430963359fd93; CampaignId=5e5e56113554309633698211; CallTaskId=5e8aac19ffbf3e00095e292c; CallingSystemCallUuid=bb555572-a8d8-4819-82e3-dcc6a94fc93a; ScenarioResultTopic=scenario_result_sdk_v2_apps10; ScenarioParametersApiHost=small-apps10-back; ScenarioParametersApiPort=8106"
  380.                             },
  381.                             {
  382.                                 "app_name" : "wait_for_answer",
  383.                                 "app_stamp" : NumberLong(1586146337332374),
  384.                                 "app_data" : ""
  385.                             },
  386.                             {
  387.                                 "app_name" : "sched_hangup",
  388.                                 "app_stamp" : NumberLong(1586146337332541),
  389.                                 "app_data" : "+600 CHANNEL_HANGUP_COMPLETE"
  390.                             },
  391.                             {
  392.                                 "app_name" : "set",
  393.                                 "app_stamp" : NumberLong(1586146337333066),
  394.                                 "app_data" : "RECORD_STEREO=true"
  395.                             },
  396.                             {
  397.                                 "app_name" : "record_session",
  398.                                 "app_stamp" : NumberLong(1586146337333337),
  399.                                 "app_data" : "/var/lib/freeswitch/recordings/5e5e52dc355430963359fd93/5e5e56113554309633698211/5e8aac19ffbf3e00095e292c.wav"
  400.                             },
  401.                             {
  402.                                 "app_name" : "set",
  403.                                 "app_stamp" : NumberLong(1586146337349077),
  404.                                 "app_data" : "SleepTime=16"
  405.                             },
  406.                             {
  407.                                 "app_name" : "sleep",
  408.                                 "app_stamp" : NumberLong(1586146337349271),
  409.                                 "app_data" : 16
  410.                             },
  411.                             {
  412.                                 "app_name" : "set",
  413.                                 "app_stamp" : NumberLong(1586146337360477),
  414.                                 "app_data" : "SipServlet=sipservlet_ms10"
  415.                             },
  416.                             {
  417.                                 "app_name" : "lua",
  418.                                 "app_stamp" : NumberLong(1586146337360779),
  419.                                 "app_data" : "lua/sdk/outgoing-release-2.6-cnmt.lua"
  420.                             }
  421.                         ]
  422.                     },
  423.                     "switchname" : "fs2",
  424.                     "call-stats" : {
  425.                         "audio" : {
  426.                             "inbound" : {
  427.                                 "media_packet_count" : 3605,
  428.                                 "cng_packet_count" : 0,
  429.                                 "jitter_min_variance" : 33.79,
  430.                                 "skip_packet_count" : 40,
  431.                                 "mean_interval" : 20.12,
  432.                                 "dtmf_packet_count" : 0,
  433.                                 "jitter_loss_rate" : 0.01,
  434.                                 "jitter_burst_rate" : 1.04,
  435.                                 "flaw_total" : 69,
  436.                                 "quality_percentage" : 98,
  437.                                 "mos" : 4.48,
  438.                                 "largest_jb_size" : 0,
  439.                                 "packet_count" : 3613,
  440.                                 "jitter_max_variance" : 110.5,
  441.                                 "media_bytes" : 620060,
  442.                                 "jitter_packet_count" : 0,
  443.                                 "raw_bytes" : 621436,
  444.                                 "flush_packet_count" : 8
  445.                             },
  446.                             "outbound" : {
  447.                                 "media_packet_count" : 3636,
  448.                                 "cng_packet_count" : 0,
  449.                                 "skip_packet_count" : 0,
  450.                                 "dtmf_packet_count" : 0,
  451.                                 "rtcp_packet_count" : 0,
  452.                                 "packet_count" : 3636,
  453.                                 "media_bytes" : 625274,
  454.                                 "rtcp_octet_count" : 0,
  455.                                 "raw_bytes" : 625274
  456.                             },
  457.                             "error-log" : {
  458.                                 "error-period" : [
  459.                                     {
  460.                                         "consecutive-flaws" : 2,
  461.                                         "duration-msec" : 1380,
  462.                                         "stop" : NumberLong(1586146410450323),
  463.                                         "start" : NumberLong(1586146409070323),
  464.                                         "flaws" : 5
  465.                                     },
  466.                                     {
  467.                                         "consecutive-flaws" : 7,
  468.                                         "duration-msec" : 11260,
  469.                                         "stop" : NumberLong(1586146408670370),
  470.                                         "start" : NumberLong(1586146397410327),
  471.                                         "flaws" : 22
  472.                                     },
  473.                                     {
  474.                                         "consecutive-flaws" : 0,
  475.                                         "duration-msec" : 2979,
  476.                                         "stop" : NumberLong(1586146395050351),
  477.                                         "start" : NumberLong(1586146392070378),
  478.                                         "flaws" : 1
  479.                                     },
  480.                                     {
  481.                                         "consecutive-flaws" : 2,
  482.                                         "duration-msec" : 2999,
  483.                                         "stop" : NumberLong(1586146386910323),
  484.                                         "start" : NumberLong(1586146383910364),
  485.                                         "flaws" : 4
  486.                                     },
  487.                                     {
  488.                                         "consecutive-flaws" : 1,
  489.                                         "duration-msec" : 3020,
  490.                                         "stop" : NumberLong(1586146380470355),
  491.                                         "start" : NumberLong(1586146377450328),
  492.                                         "flaws" : 3
  493.                                     },
  494.                                     {
  495.                                         "consecutive-flaws" : 3,
  496.                                         "duration-msec" : 7040,
  497.                                         "stop" : NumberLong(1586146377110364),
  498.                                         "start" : NumberLong(1586146370070341),
  499.                                         "flaws" : 9
  500.                                     },
  501.                                     {
  502.                                         "consecutive-flaws" : 7,
  503.                                         "duration-msec" : 7099,
  504.                                         "stop" : NumberLong(1586146354690324),
  505.                                         "start" : NumberLong(1586146347590357),
  506.                                         "flaws" : 21
  507.                                     },
  508.                                     {
  509.                                         "consecutive-flaws" : 1,
  510.                                         "duration-msec" : 2999,
  511.                                         "stop" : NumberLong(1586146344690357),
  512.                                         "start" : NumberLong(1586146341690364),
  513.                                         "flaws" : 3
  514.                                     }
  515.                                 ]
  516.                             }
  517.                         }
  518.                     }
  519.                 },
  520.                 "callUuid" : "bb555572-a8d8-4819-82e3-dcc6a94fc93a",
  521.                 "callTaskId" : "5e8aac19ffbf3e00095e292c"
  522.             }
  523.         }
  524.     ],
  525.     "parameters" : {
  526.         "date" : "08.04.2020",
  527.         "clientName" : "Анна Ивановна",
  528.         "phone" : "89059532363",
  529.         "preparationTexts" : [
  530.             "115"
  531.         ],
  532.         "records" : [
  533.             {
  534.                 "address" : "Пирогова, 25/4",
  535.                 "doctor" : "Авд+еева Ольга Евгеньевна",
  536.                 "time" : "09:00",
  537.                 "type" : "Первичный прием трихолога, включая трихоскопию"
  538.             },
  539.             {
  540.                 "address" : "проспект Академика Коптюга, 13",
  541.                 "doctor" : "Маус Мария Сергеевна",
  542.                 "time" : "09:00",
  543.                 "type" : "Повторный прием гематолога- гемостазиолога, д.м.н."
  544.             }
  545.         ],
  546.         "age" : "37"
  547.     },
  548.     "nextAttemptTimestamp" : NumberLong(1586138400),
  549.     "results" : {},
  550.     "ringingMillis" : NumberLong(0),
  551.     "talkMillis" : NumberLong(73140),
  552.     "reportParameters" : {
  553.         "date" : "08.04.2020",
  554.         "clientName" : "Анна Ивановна",
  555.         "phone" : "89059532363",
  556.         "age" : "37"
  557.     },
  558.     "created" : NumberLong(1586146329),
  559.     "reported" : false,
  560.     "testing" : false,
  561.     "performedTimestamp" : NumberLong(1586146410),
  562.     "sumConsume" : 0.0,
  563.     "processingEvents" : [
  564.         {
  565.             "timestampSecUtc" : NumberLong(1586146330),
  566.             "dateTimeFormatted" : "06.04.20 04:12",
  567.             "author" : "calling-system",
  568.             "event" : "call initiated: OutgoingCall(uuid=bb555572-a8d8-4819-82e3-dcc6a94fc93a, request=RequestOutgoingCall(targetTopic=sip-system-originate-request-fs2-release-2-3, responseTopic=calling-system-orig-result-apps10, scenarioResultTopic=scenario_result_sdk_v2_apps10, scenarioParametersApiHost=small-apps10-back, scenarioParametersApiPort=8106, callUrl=sofia/gateway/cnmt-01/89059532363 ext XML outgoing-release-2-6-ms10-cnmt, createdUtcMs=1586146330266, callUuid=bb555572-a8d8-4819-82e3-dcc6a94fc93a, callTaskUuid=5e8aac19ffbf3e00095e292c, client=5e5e52dc355430963359fd93, campaign=5e5e56113554309633698211, originateParameters={}, originateTimeoutSec=20), originateResult=null, systemError=null, cdr=null); message to kafka to call task is about to be sent"
  569.         },
  570.         {
  571.             "timestampSecUtc" : NumberLong(1586146337),
  572.             "dateTimeFormatted" : "06.04.20 04:12",
  573.             "author" : "tech.ivoice.calls.taskproc.service.CallOriginateResultService",
  574.             "event" : "transition to ONGOING on call answered"
  575.         },
  576.         {
  577.             "timestampSecUtc" : NumberLong(1586146410488),
  578.             "dateTimeFormatted" : "06.04.20 04:13",
  579.             "author" : "tech.ivoice.platform.ctservice.service.CdrService",
  580.             "event" : "CDR_RECEIVED",
  581.             "parameters" : {
  582.                 "nextState" : "PERFORMED",
  583.                 "talkMillis" : NumberLong(73140)
  584.             }
  585.         }
  586.     ],
  587.     "fullCost" : NumberLong(0),
  588.     "fullBilling" : false,
  589.     "_class" : "tech.ivoice.common.model.calls.CallTask",
  590.     "scenarioResult" : {
  591.         "time" : ISODate("2020-04-06T04:13:11.724Z"),
  592.         "items" : [
  593.             {
  594.                 "time" : ISODate("2020-04-06T04:12:17.528Z"),
  595.                 "name" : "params",
  596.                 "value" : "reminder",
  597.                 "details" : {
  598.                     "date" : "08.04.2020",
  599.                     "sleepBeforeScenarioMs" : "16",
  600.                     "phone" : "89059532363",
  601.                     "clientName" : "Анна Ивановна",
  602.                     "preparationTexts" : [
  603.                         "115"
  604.                     ],
  605.                     "records" : [
  606.                         {
  607.                             "address" : "Пирогова, 25/4",
  608.                             "doctor" : "Авд+еева Ольга Евгеньевна",
  609.                             "time" : "09:00",
  610.                             "type" : "Первичный прием трихолога, включая трихоскопию"
  611.                         },
  612.                         {
  613.                             "address" : "проспект Академика Коптюга, 13",
  614.                             "doctor" : "Маус Мария Сергеевна",
  615.                             "time" : "09:00",
  616.                             "type" : "Повторный прием гематолога- гемостазиолога, д.м.н."
  617.                         }
  618.                     ],
  619.                     "campaignId" : "5e5e56113554309633698211",
  620.                     "callTaskId" : "5e8aac19ffbf3e00095e292c",
  621.                     "solutionName" : "reminder",
  622.                     "scenarioId" : "5e5e77d03554309633eadbb9",
  623.                     "age" : "37",
  624.                     "callUuid" : "bb555572-a8d8-4819-82e3-dcc6a94fc93a"
  625.                 }
  626.             },
  627.             {
  628.                 "time" : ISODate("2020-04-06T04:12:59.150Z"),
  629.                 "name" : "вы придете на прием",
  630.                 "value" : "да",
  631.                 "details" : {}
  632.             },
  633.             {
  634.                 "time" : ISODate("2020-04-06T04:13:07.008Z"),
  635.                 "name" : "напомнить подготовку",
  636.                 "value" : "да",
  637.                 "details" : {}
  638.             },
  639.             {
  640.                 "time" : ISODate("2020-04-06T04:13:08.394Z"),
  641.                 "name" : "остались вопросы",
  642.                 "value" : "молчание",
  643.                 "details" : {}
  644.             },
  645.             {
  646.                 "time" : ISODate("2020-04-06T04:13:11.723Z"),
  647.                 "name" : "hangup",
  648.                 "value" : "bridge",
  649.                 "details" : {
  650.                     "destination" : "sofia/gateway/cnmt-01/499",
  651.                     "X-Ivoice-MARK" : "drugoy_otvet"
  652.                 }
  653.             }
  654.         ],
  655.         "log" : [
  656.             {
  657.                 "time" : ISODate("2020-04-06T04:12:17.531Z"),
  658.                 "text" : "start requesting option (no, yes)",
  659.                 "context" : {
  660.                     "sid" : "234f26bf-2e2a-4e00-a6b5-35798e82a0e8",
  661.                     "question" : "вы придете на прием"
  662.                 }
  663.             },
  664.             {
  665.                 "time" : ISODate("2020-04-06T04:12:59.146Z"),
  666.                 "text" : "recognise option(yes) on asr",
  667.                 "context" : {
  668.                     "sid" : "234f26bf-2e2a-4e00-a6b5-35798e82a0e8",
  669.                     "question" : "вы придете на прием",
  670.                     "recognition" : [
  671.                         {
  672.                             "text" : "да",
  673.                             "confidence" : 0.0
  674.                         }
  675.                     ]
  676.                 }
  677.             },
  678.             {
  679.                 "time" : ISODate("2020-04-06T04:12:59.150Z"),
  680.                 "text" : "start requesting option (yes, no)",
  681.                 "context" : {
  682.                     "sid" : "f9aa90dd-161e-42be-b8fa-5b6809a37af9",
  683.                     "question" : "напомнить подготовку"
  684.                 }
  685.             },
  686.             {
  687.                 "time" : ISODate("2020-04-06T04:13:07.004Z"),
  688.                 "text" : "recognise option(yes) on asr",
  689.                 "context" : {
  690.                     "sid" : "f9aa90dd-161e-42be-b8fa-5b6809a37af9",
  691.                     "question" : "напомнить подготовку",
  692.                     "recognition" : [
  693.                         {
  694.                             "text" : "да",
  695.                             "confidence" : 0.0
  696.                         }
  697.                     ]
  698.                 }
  699.             },
  700.             {
  701.                 "time" : ISODate("2020-04-06T04:13:08.353Z"),
  702.                 "text" : "start requesting option (yes, no)",
  703.                 "context" : {
  704.                     "sid" : "bf18439d-f646-4797-852e-9e00be20050e",
  705.                     "question" : "напомнить подготовку"
  706.                 }
  707.             },
  708.             {
  709.                 "time" : ISODate("2020-04-06T04:13:08.393Z"),
  710.                 "text" : "recognise on asr failed",
  711.                 "context" : {
  712.                     "sid" : "bf18439d-f646-4797-852e-9e00be20050e",
  713.                     "question" : "напомнить подготовку",
  714.                     "cause" : "silence"
  715.                 }
  716.             }
  717.         ],
  718.         "callId" : "bb555572-a8d8-4819-82e3-dcc6a94fc93a",
  719.         "taskId" : "5e8aac19ffbf3e00095e292c",
  720.         "resourceSpentEvents" : [
  721.             {
  722.                 "vendor" : "YANDEX_TTS",
  723.                 "amount" : {
  724.                     "SYNTHESIS_CHAR_COUNT" : NumberLong(347)
  725.                 }
  726.             },
  727.             {
  728.                 "vendor" : "GOOGLE_ASR",
  729.                 "amount" : {
  730.                     "SPEECH_TIME" : NumberLong(4137),
  731.                     "SPEECH_CHAR_COUNT" : NumberLong(2),
  732.                     "SPEECH_DTMF_DIGIT_COUNT" : NumberLong(0)
  733.                 }
  734.             },
  735.             {
  736.                 "vendor" : "YANDEX_TTS",
  737.                 "amount" : {
  738.                     "SYNTHESIS_CHAR_COUNT" : NumberLong(0)
  739.                 }
  740.             },
  741.             {
  742.                 "vendor" : "GOOGLE_ASR",
  743.                 "amount" : {
  744.                     "SPEECH_TIME" : NumberLong(6850),
  745.                     "SPEECH_CHAR_COUNT" : NumberLong(2),
  746.                     "SPEECH_DTMF_DIGIT_COUNT" : NumberLong(0)
  747.                 }
  748.             },
  749.             {
  750.                 "vendor" : "YANDEX_TTS",
  751.                 "amount" : {
  752.                     "SYNTHESIS_CHAR_COUNT" : NumberLong(0)
  753.                 }
  754.             },
  755.             {
  756.                 "vendor" : "YANDEX_TTS",
  757.                 "amount" : {
  758.                     "SYNTHESIS_CHAR_COUNT" : NumberLong(0)
  759.                 }
  760.             },
  761.             {
  762.                 "vendor" : "YANDEX_TTS",
  763.                 "amount" : {
  764.                     "SYNTHESIS_CHAR_COUNT" : NumberLong(0)
  765.                 }
  766.             },
  767.             {
  768.                 "vendor" : "GOOGLE_ASR",
  769.                 "amount" : {
  770.                     "SPEECH_TIME" : NumberLong(12),
  771.                     "SPEECH_CHAR_COUNT" : NumberLong(0),
  772.                     "SPEECH_DTMF_DIGIT_COUNT" : NumberLong(0)
  773.                 }
  774.             },
  775.             {
  776.                 "vendor" : "YANDEX_TTS",
  777.                 "amount" : {
  778.                     "SYNTHESIS_CHAR_COUNT" : NumberLong(0)
  779.                 }
  780.             }
  781.         ]
  782.     }
  783. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement