Advertisement
ScrappyCocoJamba

arsmed-yandex

Apr 15th, 2020
20,972
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 35.38 KB | None | 0 0
  1. {
  2.     "_id" : ObjectId("5e97ca6fbd7eb9000716de6b"),
  3.     "phone" : "89955979744",
  4.     "campaign" : "5e96f7e57494c806a781d256",
  5.     "state" : "PERFORMED",
  6.     "lastCallRequestTimestamp" : NumberLong(1587006064941),
  7.     "callAnsweredTimestamp" : NumberLong(1587006079381),
  8.     "calls" : [],
  9.     "outgoingCalls" : [
  10.         {
  11.             "uuid" : "299a12b9-295a-4f0d-a40e-be4c04b9e6f0",
  12.             "request" : {
  13.                 "targetTopic" : "sip-system-originate-request-fs1-release-2-3",
  14.                 "responseTopic" : "calling-system-orig-result-apps9",
  15.                 "scenarioResultTopic" : "scenario_result_sdk_v2_apps9",
  16.                 "scenarioParametersApiHost" : "small-apps9-back",
  17.                 "scenarioParametersApiPort" : "8101",
  18.                 "callUrl" : "sofia/gateway/ars-medika-01/89955979744 ext XML outgoing-release-2-6-arsmedika-ms14",
  19.                 "createdUtcMs" : NumberLong(1587006064941),
  20.                 "callUuid" : "299a12b9-295a-4f0d-a40e-be4c04b9e6f0",
  21.                 "callTaskUuid" : "5e97ca6fbd7eb9000716de6b",
  22.                 "client" : "5d9cfcf83563935855038f70",
  23.                 "campaign" : "5e96f7e57494c806a781d256",
  24.                 "originateParameters" : {},
  25.                 "originateTimeoutSec" : 40
  26.             },
  27.             "originateResult" : {
  28.                 "timestamp" : NumberLong(1587006079381),
  29.                 "sipCode" : 200,
  30.                 "fullSipSystemResponse" : "+OK 0c25185a-dd5c-4f5a-bd7c-435fed5e4a0e",
  31.                 "callUuid" : "299a12b9-295a-4f0d-a40e-be4c04b9e6f0",
  32.                 "callTaskId" : "5e97ca6fbd7eb9000716de6b"
  33.             },
  34.             "cdr" : {
  35.                 "cdr" : {
  36.                     "variables" : {
  37.                         "write_codec" : "PCMA",
  38.                         "sip_to_host" : "83.219.150.111",
  39.                         "hold_accum_usec" : 0,
  40.                         "bridge_uuid" : "7c7b3a63-585e-4aca-8a48-edee3e9ee394",
  41.                         "start_epoch" : 1587006064,
  42.                         "rtp_2833_send_payload" : 101,
  43.                         "original_read_rate" : 8000,
  44.                         "profile_start_epoch" : 1587006079,
  45.                         "last_bridge_role" : "originator",
  46.                         "transfer_history" : "1587006079%3Aaffb46e3-6343-44eb-bfd4-d7a37f91aff2%3Abl_xfer%3Aext/outgoing-release-2-6-arsmedika-ms14/XML",
  47.                         "sip_hangup_phrase" : "OK",
  48.                         "sip_bye_h_X-Asterisk-HangupCauseCode" : 16,
  49.                         "CallingSystemCallUuid" : "299a12b9-295a-4f0d-a40e-be4c04b9e6f0",
  50.                         "sofia_profile_url" : "sip%3Amod_sofia%4092.119.230.210%3A5060",
  51.                         "sip_term_cause" : 16,
  52.                         "ignore_early_media" : true,
  53.                         "waitusec" : 57560041,
  54.                         "sip_to_user" : NumberLong(89955979744),
  55.                         "rtp_last_audio_codec_string" : "PCMA%408000h%4020i%401c",
  56.                         "rtp_audio_in_packet_count" : 2247,
  57.                         "rtp_audio_in_jitter_packet_count" : 0,
  58.                         "last_arg" : "lua/sdk/outgoing-release-2.6-arsmedika.lua",
  59.                         "end_uepoch" : NumberLong(1587006122542698),
  60.                         "rtp_use_codec_name" : "PCMA",
  61.                         "answer_uepoch" : NumberLong(1587006079342675),
  62.                         "start_uepoch" : NumberLong(1587006064942685),
  63.                         "waitsec" : 58,
  64.                         "flow_billsec" : 58,
  65.                         "sip_call_id" : "5a743d47-fa31-1238-43a9-7e81c4218fd3",
  66.                         "remote_video_media_flow" : "inactive",
  67.                         "sip_full_from" : "%22%22%20%3Csip%3Aivoice%4083.219.150.111%3E%3Btag%3DZeZge54e3rUvp",
  68.                         "remote_text_media_flow" : "inactive",
  69.                         "bridge_stamp" : "2020-04-16%2003%3A02%3A02",
  70.                         "sip_hangup_disposition" : "recv_bye",
  71.                         "read_rate" : 8000,
  72.                         "rtp_audio_in_skip_packet_count" : 11,
  73.                         "switch_r_sdp" : "v%3D0%0D%0Ao%3Droot%201879001135%201879001135%20IN%20IP4%2083.219.150.111%0D%0As%3DAsterisk%20PBX%2013.24.1%0D%0Ac%3DIN%20IP4%2083.219.150.111%0D%0At%3D0%200%0D%0Am%3Daudio%2012578%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%3Dmaxptime%3A150%0D%0A",
  74.                         "sip_recover_via" : "SIP/2.0/UDP%2092.119.230.210%3Bbranch%3Dz9hG4bKrN6jtgeD47ptg%3Breceived%3D92.119.230.210%3Brport%3D5060",
  75.                         "rtp_audio_rtcp_octet_count" : 0,
  76.                         "sip_reply_host" : "83.219.150.111",
  77.                         "billmsec" : 43200,
  78.                         "answer_stamp" : "2020-04-16%2003%3A01%3A19",
  79.                         "session_id" : 58816,
  80.                         "hold_accum_seconds" : 0,
  81.                         "last_hold_epoch" : 0,
  82.                         "sip_bye_h_X-Ivoice-BridgeDestination" : "sofia/gateway/ars-medika-01/550",
  83.                         "progresssec" : 0,
  84.                         "sip_cseq" : 18949241,
  85.                         "current_application" : "lua",
  86.                         "hangup_cause" : "NORMAL_CLEARING",
  87.                         "hangup_cause_q850" : 16,
  88.                         "resurrect_epoch" : 0,
  89.                         "rtp_audio_in_flaw_total" : 10,
  90.                         "advertised_media_ip" : "92.119.230.210",
  91.                         "SleepTime" : 1000,
  92.                         "ScenarioResultTopic" : "scenario_result_sdk_v2_apps9",
  93.                         "hold_accum_ms" : 0,
  94.                         "rtp_audio_out_packet_count" : 2094,
  95.                         "sip_contact_user" : NumberLong(89955979744),
  96.                         "start_stamp" : "2020-04-16%2003%3A01%3A04",
  97.                         "rtp_audio_recv_pt" : 8,
  98.                         "progress_media_uepoch" : NumberLong(1587006065062721),
  99.                         "rtp_use_codec_string" : "PCMA,PCMU",
  100.                         "progressmsec" : 0,
  101.                         "bridge_hangup_cause" : "NORMAL_CLEARING",
  102.                         "rtp_audio_out_dtmf_packet_count" : 0,
  103.                         "proto_specific_hangup_cause" : "sip%3A200",
  104.                         "rtp_audio_in_mos" : 4.49,
  105.                         "last_sent_callee_id_name" : "Outbound%20Call",
  106.                         "sip_local_network_addr" : "92.119.230.210",
  107.                         "rtp_audio_out_media_bytes" : 360168,
  108.                         "rtp_use_timer_name" : "soft",
  109.                         "Campaign" : "5e96f7e57494c806a781d256",
  110.                         "text_media_flow" : "disabled",
  111.                         "sip_term_status" : 200,
  112.                         "answermsec" : 14400,
  113.                         "sip_profile_name" : "gateway",
  114.                         "sofia_profile_name" : "external",
  115.                         "sip_from_tag" : "ZeZge54e3rUvp",
  116.                         "rtp_audio_in_jitter_burst_rate" : 1,
  117.                         "resurrect_uepoch" : 0,
  118.                         "last_bridge_to" : "7c7b3a63-585e-4aca-8a48-edee3e9ee394",
  119.                         "recovery_profile_name" : "external",
  120.                         "sip_bye_h_X-RestComm-CallSid" : "ID11f0bb64e3684c0aa59ac86d15678d8b-CA3e8223150f464272b5672258d7808506",
  121.                         "progress_mediamsec" : 120,
  122.                         "sip_from_user" : "ivoice",
  123.                         "duration" : 58,
  124.                         "sip_contact_uri" : "89955979744%4083.219.150.111%3A5060",
  125.                         "local_media_port" : 18662,
  126.                         "remote_audio_media_flow" : "sendrecv",
  127.                         "audio_media_flow" : "sendrecv",
  128.                         "flow_billusec" : 57600013,
  129.                         "local_media_ip" : "92.119.230.210",
  130.                         "rtp_audio_in_jitter_loss_rate" : 0,
  131.                         "sip_from_uri" : "ivoice%4083.219.150.111",
  132.                         "ScenarioParametersApiHost" : "small-apps9-back",
  133.                         "endpoint_disposition" : "ANSWER",
  134.                         "sip_contact_host" : "83.219.150.111",
  135.                         "rtp_audio_in_mean_interval" : 20.03,
  136.                         "sip_reply_port" : 5060,
  137.                         "end_stamp" : "2020-04-16%2003%3A02%3A02",
  138.                         "leg_timeout" : 40,
  139.                         "waitmsec" : 57560,
  140.                         "current_application_data" : "lua/sdk/outgoing-release-2.6-arsmedika.lua",
  141.                         "rtp_audio_out_raw_bytes" : 360168,
  142.                         "progress_uepoch" : 0,
  143.                         "progress_media_stamp" : "2020-04-16%2003%3A01%3A05",
  144.                         "rtp_use_codec_ptime" : 20,
  145.                         "answersec" : 15,
  146.                         "rtp_audio_in_jitter_max_variance" : 12.1,
  147.                         "sip_full_to" : "%3Csip%3A89955979744%4083.219.150.111%3E%3Btag%3Das328b08ad",
  148.                         "max_forwards" : 70,
  149.                         "sip_network_ip" : "83.219.150.111",
  150.                         "sip_from_host" : "83.219.150.111",
  151.                         "rtp_audio_in_dtmf_packet_count" : 0,
  152.                         "remote_media_port" : 12578,
  153.                         "last_sent_callee_id_number" : 550,
  154.                         "sip_network_port" : 5060,
  155.                         "pre_transfer_caller_id_number" : "0000000000",
  156.                         "progress_mediasec" : 1,
  157.                         "rtp_use_codec_channels" : 1,
  158.                         "sip_recover_contact" : "%3Csip%3A89955979744%4083.219.150.111%3A5060%3E",
  159.                         "rtp_local_sdp_str" : "v%3D0%0D%0Ao%3DFreeSWITCH%201586987402%201586987403%20IN%20IP4%2092.119.230.210%0D%0As%3DFreeSWITCH%0D%0Ac%3DIN%20IP4%2092.119.230.210%0D%0At%3D0%200%0D%0Am%3Daudio%2018662%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",
  160.                         "answerusec" : 14399990,
  161.                         "sip_req_uri" : "89955979744%4083.219.150.111",
  162.                         "profile_start_uepoch" : NumberLong(1587006079362719),
  163.                         "rtp_audio_in_raw_bytes" : 386484,
  164.                         "rtp_audio_rtcp_packet_count" : 0,
  165.                         "bridge_epoch" : 1587006122,
  166.                         "bridge_uepoch" : NumberLong(1587006122502726),
  167.                         "sip_user_agent" : "FPBX-13.0.197(13.24.1)",
  168.                         "write_rate" : 8000,
  169.                         "billusec" : 43200023,
  170.                         "answer_epoch" : 1587006079,
  171.                         "call_uuid" : "0c25185a-dd5c-4f5a-bd7c-435fed5e4a0e",
  172.                         "rtp_audio_out_skip_packet_count" : 0,
  173.                         "sip_invite_domain" : "83.219.150.111",
  174.                         "sip_full_via" : "SIP/2.0/UDP%2092.119.230.210%3Bbranch%3Dz9hG4bKrN6jtgeD47ptg%3Breceived%3D92.119.230.210%3Brport%3D5060",
  175.                         "channel_name" : "sofia/external/89955979744",
  176.                         "rtp_audio_out_cng_packet_count" : 0,
  177.                         "progress_epoch" : 0,
  178.                         "mduration" : 57600,
  179.                         "last_bridge_hangup_cause" : "NORMAL_CLEARING",
  180.                         "remote_media_ip" : "83.219.150.111",
  181.                         "sip_bye_h_X-Asterisk-HangupCause" : "Normal%20Clearing",
  182.                         "ep_codec_string" : "CORE_PCM_MODULE.PCMA%408000h%4020i%4064000b,CORE_PCM_MODULE.PCMU%408000h%4020i%4064000b",
  183.                         "rtp_use_pt" : 8,
  184.                         "rtp_audio_in_largest_jb_size" : 0,
  185.                         "rtp_audio_in_media_bytes" : 368596,
  186.                         "transfer_source" : "1587006079%3Aaffb46e3-6343-44eb-bfd4-d7a37f91aff2%3Abl_xfer%3Aext/outgoing-release-2-6-arsmedika-ms14/XML",
  187.                         "rtp_audio_in_cng_packet_count" : 0,
  188.                         "last_hold_uepoch" : 0,
  189.                         "uduration" : 57600013,
  190.                         "rtp_audio_in_quality_percentage" : 99,
  191.                         "rtp_use_codec_rate" : 8000,
  192.                         "ScenarioParametersApiPort" : 8101,
  193.                         "uuid" : "0c25185a-dd5c-4f5a-bd7c-435fed5e4a0e",
  194.                         "sip_gateway_name" : "ars-medika-01",
  195.                         "sip_destination_url" : "sip%3A89955979744%4083.219.150.111",
  196.                         "sip_to_uri" : "89955979744%4083.219.150.111",
  197.                         "read_codec" : "PCMA",
  198.                         "rtp_use_ssrc" : 513371544,
  199.                         "Client" : "5d9cfcf83563935855038f70",
  200.                         "billsec" : 43,
  201.                         "progress_media_epoch" : 1587006065,
  202.                         "rtp_2833_recv_payload" : 101,
  203.                         "CallTaskId" : "5e97ca6fbd7eb9000716de6b",
  204.                         "end_epoch" : 1587006122,
  205.                         "profile_start_stamp" : "2020-04-16%2003%3A01%3A19",
  206.                         "caller_id" : "%22Outbound%20Call%22%20%3C89955979744%3E",
  207.                         "progressusec" : 0,
  208.                         "originate_early_media" : false,
  209.                         "SipServlet" : "sipservlet_ms14",
  210.                         "sip_outgoing_contact_uri" : "%3Csip%3Agw%2Bars-medika-01%4092.119.230.210%3A5060%3Btransport%3Dudp%3Bgw%3Dars-medika-01%3E",
  211.                         "sip_contact_port" : 5060,
  212.                         "flow_billmsec" : 57600,
  213.                         "bridge_channel" : "sofia/external/550",
  214.                         "dtmf_type" : "rfc2833",
  215.                         "sip_allow" : "INVITE,%20ACK,%20CANCEL,%20OPTIONS,%20BYE,%20REFER,%20SUBSCRIBE,%20NOTIFY,%20INFO,%20PUBLISH,%20MESSAGE",
  216.                         "rtp_audio_in_media_packet_count" : 2143,
  217.                         "direction" : "outbound",
  218.                         "video_media_flow" : "disabled",
  219.                         "sip_to_tag" : "as328b08ad",
  220.                         "rtp_audio_out_media_packet_count" : 2094,
  221.                         "digits_dialed" : "none",
  222.                         "signal_bond" : "7c7b3a63-585e-4aca-8a48-edee3e9ee394",
  223.                         "progress_mediausec" : 120036,
  224.                         "last_app" : "lua",
  225.                         "is_outbound" : true,
  226.                         "rtp_audio_in_jitter_min_variance" : 0.53,
  227.                         "hangup_complete_with_xml" : true,
  228.                         "original_read_codec" : "PCMA",
  229.                         "last_bridge_proto_specific_hangup_cause" : "sip%3A200",
  230.                         "rtp_audio_in_flush_packet_count" : 104
  231.                     },
  232.                     "callflow" : [
  233.                         {
  234.                             "extension" : {
  235.                                 "number" : "ext",
  236.                                 "application" : [
  237.                                     {
  238.                                         "app_name" : "log",
  239.                                         "app_data" : "INFO sip-system passed vars: ClientId=${Client}; CampaignId=${Campaign}; CallTaskId=${CallTaskId}; CallingSystemCallUuid=${CallingSystemCallUuid}; ScenarioResultTopic=${ScenarioResultTopic}; ScenarioParametersApiHost=${ScenarioParametersApiHost}; ScenarioParametersApiPort=${ScenarioParametersApiPort}"
  240.                                     },
  241.                                     {
  242.                                         "app_name" : "wait_for_answer",
  243.                                         "app_data" : ""
  244.                                     },
  245.                                     {
  246.                                         "app_name" : "sched_hangup",
  247.                                         "app_data" : "+600 CHANNEL_HANGUP_COMPLETE"
  248.                                     },
  249.                                     {
  250.                                         "app_name" : "set",
  251.                                         "app_data" : "SleepTime=1000"
  252.                                     },
  253.                                     {
  254.                                         "app_name" : "sleep",
  255.                                         "app_data" : "${SleepTime}"
  256.                                     },
  257.                                     {
  258.                                         "app_name" : "set",
  259.                                         "app_data" : "SipServlet=sipservlet_ms14"
  260.                                     },
  261.                                     {
  262.                                         "app_name" : "set_audio_level",
  263.                                         "app_data" : "read 4"
  264.                                     },
  265.                                     {
  266.                                         "app_name" : "set_audio_level",
  267.                                         "app_data" : "write 4"
  268.                                     },
  269.                                     {
  270.                                         "app_name" : "lua",
  271.                                         "app_data" : "lua/sdk/outgoing-release-2.6-arsmedika.lua"
  272.                                     }
  273.                                 ],
  274.                                 "name" : "ext"
  275.                             },
  276.                             "times" : {
  277.                                 "progress_time" : 0,
  278.                                 "created_time" : NumberLong(1587006064942685),
  279.                                 "hold_accum_time" : 0,
  280.                                 "resurrect_time" : 0,
  281.                                 "answered_time" : NumberLong(1587006079342675),
  282.                                 "transfer_time" : 0,
  283.                                 "bridged_time" : NumberLong(1587006122502726),
  284.                                 "hangup_time" : NumberLong(1587006122542698),
  285.                                 "progress_media_time" : NumberLong(1587006065062721),
  286.                                 "profile_created_time" : NumberLong(1587006079362719),
  287.                                 "last_hold_time" : 0
  288.                             },
  289.                             "profile_index" : 2,
  290.                             "dialplan" : "XML",
  291.                             "clone-of" : "1f7da94f-d8fe-49c3-8ce7-1979c462daf2",
  292.                             "caller_profile" : {
  293.                                 "caller_id_name" : "Outbound Call",
  294.                                 "transfer_source" : "1587006079:affb46e3-6343-44eb-bfd4-d7a37f91aff2:bl_xfer:ext/outgoing-release-2-6-arsmedika-ms14/XML",
  295.                                 "destination_number" : "ext",
  296.                                 "device_id" : "",
  297.                                 "chan_name" : "sofia/external/89955979744",
  298.                                 "dialplan" : "XML",
  299.                                 "callee_id_number" : 550,
  300.                                 "source" : "src/switch_ivr_originate.c",
  301.                                 "network_addr" : "83.219.150.111",
  302.                                 "uuid" : "0c25185a-dd5c-4f5a-bd7c-435fed5e4a0e",
  303.                                 "callee_id_name" : "Outbound Call",
  304.                                 "rdnis" : NumberLong(89955979744),
  305.                                 "aniii" : "",
  306.                                 "context" : "outgoing-release-2-6-arsmedika-ms14",
  307.                                 "caller_id_number" : NumberLong(89955979744),
  308.                                 "ani" : "0000000000",
  309.                                 "username" : ""
  310.                             },
  311.                             "unique-id" : "affb46e3-6343-44eb-bfd4-d7a37f91aff2"
  312.                         },
  313.                         {
  314.                             "times" : {
  315.                                 "progress_time" : 0,
  316.                                 "created_time" : NumberLong(1587006064942685),
  317.                                 "hold_accum_time" : 0,
  318.                                 "resurrect_time" : 0,
  319.                                 "answered_time" : NumberLong(1587006079342675),
  320.                                 "transfer_time" : NumberLong(1587006079362719),
  321.                                 "bridged_time" : 0,
  322.                                 "hangup_time" : 0,
  323.                                 "progress_media_time" : NumberLong(1587006065062721),
  324.                                 "profile_created_time" : NumberLong(1587006064942685),
  325.                                 "last_hold_time" : 0
  326.                             },
  327.                             "profile_index" : 1,
  328.                             "clone-of" : "a8a28c4b-49be-4ed3-9572-bf8de558bd8b",
  329.                             "caller_profile" : {
  330.                                 "caller_id_name" : "",
  331.                                 "destination_number" : NumberLong(89955979744),
  332.                                 "device_id" : "",
  333.                                 "chan_name" : "sofia/external/89955979744",
  334.                                 "dialplan" : "",
  335.                                 "callee_id_number" : NumberLong(89955979744),
  336.                                 "source" : "src/switch_ivr_originate.c",
  337.                                 "network_addr" : "83.219.150.111",
  338.                                 "uuid" : "0c25185a-dd5c-4f5a-bd7c-435fed5e4a0e",
  339.                                 "callee_id_name" : "Outbound Call",
  340.                                 "rdnis" : "",
  341.                                 "aniii" : "",
  342.                                 "context" : "default",
  343.                                 "caller_id_number" : "0000000000",
  344.                                 "ani" : "0000000000",
  345.                                 "username" : ""
  346.                             },
  347.                             "unique-id" : "1f7da94f-d8fe-49c3-8ce7-1979c462daf2"
  348.                         }
  349.                     ],
  350.                     "core-uuid" : "6c326b0a-e305-4b09-a447-789bf6b0bd43",
  351.                     "channel_data" : {
  352.                         "state_number" : 11,
  353.                         "flags" : "0=1;1=1;2=1;3=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",
  354.                         "state" : "CS_REPORTING",
  355.                         "direction" : "outbound",
  356.                         "caps" : "1=1;2=1;3=1;4=1;5=1;6=1;8=1;9=1"
  357.                     },
  358.                     "app_log" : {
  359.                         "application" : [
  360.                             {
  361.                                 "app_name" : "log",
  362.                                 "app_stamp" : NumberLong(1587006079364765),
  363.                                 "app_data" : "INFO sip-system passed vars: ClientId=5d9cfcf83563935855038f70; CampaignId=5e96f7e57494c806a781d256; CallTaskId=5e97ca6fbd7eb9000716de6b; CallingSystemCallUuid=299a12b9-295a-4f0d-a40e-be4c04b9e6f0; ScenarioResultTopic=scenario_result_sdk_v2_apps9; ScenarioParametersApiHost=small-apps9-back; ScenarioParametersApiPort=8101"
  364.                             },
  365.                             {
  366.                                 "app_name" : "wait_for_answer",
  367.                                 "app_stamp" : NumberLong(1587006079365084),
  368.                                 "app_data" : ""
  369.                             },
  370.                             {
  371.                                 "app_name" : "sched_hangup",
  372.                                 "app_stamp" : NumberLong(1587006079365396),
  373.                                 "app_data" : "+600 CHANNEL_HANGUP_COMPLETE"
  374.                             },
  375.                             {
  376.                                 "app_name" : "set",
  377.                                 "app_stamp" : NumberLong(1587006079365730),
  378.                                 "app_data" : "SleepTime=1000"
  379.                             },
  380.                             {
  381.                                 "app_name" : "sleep",
  382.                                 "app_stamp" : NumberLong(1587006079366039),
  383.                                 "app_data" : 1000
  384.                             },
  385.                             {
  386.                                 "app_name" : "set",
  387.                                 "app_stamp" : NumberLong(1587006080372758),
  388.                                 "app_data" : "SipServlet=sipservlet_ms14"
  389.                             },
  390.                             {
  391.                                 "app_name" : "set_audio_level",
  392.                                 "app_stamp" : NumberLong(1587006080373108),
  393.                                 "app_data" : "read 4"
  394.                             },
  395.                             {
  396.                                 "app_name" : "set_audio_level",
  397.                                 "app_stamp" : NumberLong(1587006080373598),
  398.                                 "app_data" : "write 4"
  399.                             },
  400.                             {
  401.                                 "app_name" : "lua",
  402.                                 "app_stamp" : NumberLong(1587006080373866),
  403.                                 "app_data" : "lua/sdk/outgoing-release-2.6-arsmedika.lua"
  404.                             }
  405.                         ]
  406.                     },
  407.                     "switchname" : "fs-1",
  408.                     "call-stats" : {
  409.                         "audio" : {
  410.                             "inbound" : {
  411.                                 "media_packet_count" : 2143,
  412.                                 "cng_packet_count" : 0,
  413.                                 "jitter_min_variance" : 0.53,
  414.                                 "skip_packet_count" : 11,
  415.                                 "mean_interval" : 20.03,
  416.                                 "dtmf_packet_count" : 0,
  417.                                 "jitter_loss_rate" : 0,
  418.                                 "jitter_burst_rate" : 1,
  419.                                 "flaw_total" : 10,
  420.                                 "quality_percentage" : 99,
  421.                                 "mos" : 4.49,
  422.                                 "largest_jb_size" : 0,
  423.                                 "packet_count" : 2247,
  424.                                 "jitter_max_variance" : 12.1,
  425.                                 "media_bytes" : 368596,
  426.                                 "jitter_packet_count" : 0,
  427.                                 "raw_bytes" : 386484,
  428.                                 "flush_packet_count" : 104
  429.                             },
  430.                             "outbound" : {
  431.                                 "media_packet_count" : 2094,
  432.                                 "cng_packet_count" : 0,
  433.                                 "skip_packet_count" : 0,
  434.                                 "dtmf_packet_count" : 0,
  435.                                 "rtcp_packet_count" : 0,
  436.                                 "packet_count" : 2094,
  437.                                 "media_bytes" : 360168,
  438.                                 "rtcp_octet_count" : 0,
  439.                                 "raw_bytes" : 360168
  440.                             },
  441.                             "error-log" : {
  442.                                 "error-period" : [
  443.                                     {
  444.                                         "consecutive-flaws" : 2,
  445.                                         "duration-msec" : 3000,
  446.                                         "stop" : NumberLong(1587006099902696),
  447.                                         "start" : NumberLong(1587006096902673),
  448.                                         "flaws" : 4
  449.                                     },
  450.                                     {
  451.                                         "consecutive-flaws" : 2,
  452.                                         "duration-msec" : 3420,
  453.                                         "stop" : NumberLong(1587006083722715),
  454.                                         "start" : NumberLong(1587006080302673),
  455.                                         "flaws" : 5
  456.                                     }
  457.                                 ]
  458.                             }
  459.                         }
  460.                     }
  461.                 },
  462.                 "callUuid" : "299a12b9-295a-4f0d-a40e-be4c04b9e6f0",
  463.                 "callTaskId" : "5e97ca6fbd7eb9000716de6b"
  464.             }
  465.         }
  466.     ],
  467.     "parameters" : {
  468.         "date" : "2019-12-19 17:00",
  469.         "doctor" : " Антон",
  470.         "specialty" : "африканский шаман",
  471.         "address" : "236006, Калининградская обл., г. Калининград, пр. Московский, 50.",
  472.         "visitID" : "2308171",
  473.         "name" : "Константин",
  474.         "room" : ""
  475.     },
  476.     "nextAttemptTimestamp" : NumberLong(0),
  477.     "results" : {},
  478.     "ringingMillis" : NumberLong(0),
  479.     "talkMillis" : NumberLong(43200),
  480.     "reportParameters" : {
  481.         "date" : "2019-12-19 17:00",
  482.         "doctor" : " Антон",
  483.         "specialty" : "африканский шаман",
  484.         "address" : "236006, Калининградская обл., г. Калининград, пр. Московский, 50.",
  485.         "visitID" : "2308171",
  486.         "name" : "Константин",
  487.         "room" : ""
  488.     },
  489.     "created" : NumberLong(1587006063),
  490.     "reported" : false,
  491.     "testing" : false,
  492.     "performedTimestamp" : NumberLong(1587006122),
  493.     "sumConsume" : 0.0,
  494.     "processingEvents" : [
  495.         {
  496.             "timestampSecUtc" : NumberLong(1587006064),
  497.             "dateTimeFormatted" : "16.04.20 03:01",
  498.             "author" : "calling-system",
  499.             "event" : "call initiated: OutgoingCall(uuid=299a12b9-295a-4f0d-a40e-be4c04b9e6f0, request=RequestOutgoingCall(targetTopic=sip-system-originate-request-fs1-release-2-3, responseTopic=calling-system-orig-result-apps9, scenarioResultTopic=scenario_result_sdk_v2_apps9, scenarioParametersApiHost=small-apps9-back, scenarioParametersApiPort=8101, callUrl=sofia/gateway/ars-medika-01/89955979744 ext XML outgoing-release-2-6-arsmedika-ms14, createdUtcMs=1587006064941, callUuid=299a12b9-295a-4f0d-a40e-be4c04b9e6f0, callTaskUuid=5e97ca6fbd7eb9000716de6b, client=5d9cfcf83563935855038f70, campaign=5e96f7e57494c806a781d256, originateParameters={}, originateTimeoutSec=40), originateResult=null, systemError=null, cdr=null); message to kafka to call task is about to be sent"
  500.         },
  501.         {
  502.             "timestampSecUtc" : NumberLong(1587006079),
  503.             "dateTimeFormatted" : "16.04.20 03:01",
  504.             "author" : "tech.ivoice.calls.taskproc.service.CallOriginateResultService",
  505.             "event" : "transition to ONGOING on call answered"
  506.         },
  507.         {
  508.             "timestampSecUtc" : NumberLong(1587006122575),
  509.             "dateTimeFormatted" : "16.04.20 03:02",
  510.             "author" : "tech.ivoice.platform.ctservice.service.CdrService",
  511.             "event" : "CDR_RECEIVED",
  512.             "parameters" : {
  513.                 "nextState" : "PERFORMED",
  514.                 "talkMillis" : NumberLong(43200)
  515.             }
  516.         }
  517.     ],
  518.     "fullCost" : NumberLong(0),
  519.     "fullBilling" : false,
  520.     "_class" : "tech.ivoice.common.model.calls.CallTask",
  521.     "scenarioResult" : {
  522.         "time" : ISODate("2020-04-16T03:02:02.420Z"),
  523.         "items" : [
  524.             {
  525.                 "time" : ISODate("2020-04-16T03:01:20.565Z"),
  526.                 "name" : "params",
  527.                 "value" : "medika_visit",
  528.                 "details" : {
  529.                     "date" : "2019-12-19 17:00",
  530.                     "sleepBeforeScenarioMs" : "1000",
  531.                     "specialty" : "африканский шаман",
  532.                     "address" : "236006, Калининградская обл., г. Калининград, пр. Московский, 50.",
  533.                     "campaignId" : "5e96f7e57494c806a781d256",
  534.                     "callTaskId" : "5e97ca6fbd7eb9000716de6b",
  535.                     "solutionName" : "medika_visit",
  536.                     "room" : "",
  537.                     "callUuid" : "299a12b9-295a-4f0d-a40e-be4c04b9e6f0",
  538.                     "doctor" : " Антон",
  539.                     "visitID" : "2308171",
  540.                     "phone" : "89955979744",
  541.                     "name" : "Константин",
  542.                     "scenarioId" : "5d9cfcc4356393585502eb13"
  543.                 }
  544.             },
  545.             {
  546.                 "time" : ISODate("2020-04-16T03:01:58.722Z"),
  547.                 "name" : "прием подтвержден",
  548.                 "value" : "undefined",
  549.                 "details" : {}
  550.             },
  551.             {
  552.                 "time" : ISODate("2020-04-16T03:02:02.419Z"),
  553.                 "name" : "hangup",
  554.                 "value" : "bridge",
  555.                 "details" : {
  556.                     "destination" : "sofia/gateway/ars-medika-01/550"
  557.                 }
  558.             }
  559.         ],
  560.         "log" : [
  561.             {
  562.                 "time" : ISODate("2020-04-16T03:01:20.567Z"),
  563.                 "text" : "start requesting option (no, yes)",
  564.                 "context" : {
  565.                     "sid" : "bf96739e-d529-4fba-a1ae-395d3395c40c",
  566.                     "question" : "прием подтвержден"
  567.                 }
  568.             },
  569.             {
  570.                 "time" : ISODate("2020-04-16T03:01:46.642Z"),
  571.                 "text" : "recognise on asr failed",
  572.                 "context" : {
  573.                     "sid" : "bf96739e-d529-4fba-a1ae-395d3395c40c",
  574.                     "question" : "прием подтвержден",
  575.                     "cause" : "silence"
  576.                 }
  577.             },
  578.             {
  579.                 "time" : ISODate("2020-04-16T03:01:46.643Z"),
  580.                 "text" : "retry requesting option (no, yes)",
  581.                 "context" : {
  582.                     "sid" : "f745a23d-647d-4b13-a526-32f2c00de1a5",
  583.                     "question" : "прием подтвержден"
  584.                 }
  585.             },
  586.             {
  587.                 "time" : ISODate("2020-04-16T03:01:58.721Z"),
  588.                 "text" : "recognise on asr failed",
  589.                 "context" : {
  590.                     "sid" : "f745a23d-647d-4b13-a526-32f2c00de1a5",
  591.                     "question" : "прием подтвержден",
  592.                     "cause" : "silence"
  593.                 }
  594.             }
  595.         ],
  596.         "callId" : "299a12b9-295a-4f0d-a40e-be4c04b9e6f0",
  597.         "taskId" : "5e97ca6fbd7eb9000716de6b",
  598.         "resourceSpentEvents" : [
  599.             {
  600.                 "vendor" : "YANDEX_TTS",
  601.                 "amount" : {
  602.                     "SYNTHESIS_CHAR_COUNT" : NumberLong(62)
  603.                 }
  604.             },
  605.             {
  606.                 "vendor" : "YANDEX_ASR",
  607.                 "amount" : {
  608.                     "SPEECH_TIME" : NumberLong(11727),
  609.                     "SPEECH_CHAR_COUNT" : NumberLong(0),
  610.                     "SPEECH_DTMF_DIGIT_COUNT" : NumberLong(0),
  611.                     "SPEECH_DTMF_DIGIT_TIME" : NumberLong(11727)
  612.                 }
  613.             },
  614.             {
  615.                 "vendor" : "YANDEX_TTS",
  616.                 "amount" : {
  617.                     "SYNTHESIS_CHAR_COUNT" : NumberLong(0)
  618.                 }
  619.             },
  620.             {
  621.                 "vendor" : "YANDEX_ASR",
  622.                 "amount" : {
  623.                     "SPEECH_TIME" : NumberLong(8067),
  624.                     "SPEECH_CHAR_COUNT" : NumberLong(0),
  625.                     "SPEECH_DTMF_DIGIT_COUNT" : NumberLong(0),
  626.                     "SPEECH_DTMF_DIGIT_TIME" : NumberLong(8067)
  627.                 }
  628.             },
  629.             {
  630.                 "vendor" : "YANDEX_TTS",
  631.                 "amount" : {
  632.                     "SYNTHESIS_CHAR_COUNT" : NumberLong(0)
  633.                 }
  634.             }
  635.         ]
  636.     }
  637. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement