Advertisement
ScrappyCocoJamba

arsm-rom

Jan 16th, 2020
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 37.82 KB | None | 0 0
  1. {
  2.     "_id" : ObjectId("5e2034273561d30007ce2374"),
  3.     "phone" : "79062136704",
  4.     "campaign" : "5d9cfd56356393585504b46a",
  5.     "state" : "PERFORMED",
  6.     "lastCallRequestTimestamp" : NumberLong(1579169366002),
  7.     "callAnsweredTimestamp" : NumberLong(1579169377771),
  8.     "calls" : [],
  9.     "outgoingCalls" : [
  10.         {
  11.             "uuid" : "2dd411e6-9e41-412a-a6e1-8c5e4c85fd26",
  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/79062136704 ext XML outgoing-release-2-6-ms3-sleep0",
  19.                 "createdUtcMs" : NumberLong(1579169366002),
  20.                 "callUuid" : "2dd411e6-9e41-412a-a6e1-8c5e4c85fd26",
  21.                 "callTaskUuid" : "5e2034273561d30007ce2374",
  22.                 "client" : "5d9cfcf83563935855038f70",
  23.                 "campaign" : "5d9cfd56356393585504b46a",
  24.                 "originateParameters" : {},
  25.                 "originateTimeoutSec" : 40
  26.             },
  27.             "originateResult" : {
  28.                 "timestamp" : NumberLong(1579169377771),
  29.                 "sipCode" : 200,
  30.                 "fullSipSystemResponse" : "+OK 2a0b0eea-b5ab-4153-92c3-601086c388d6",
  31.                 "callUuid" : "2dd411e6-9e41-412a-a6e1-8c5e4c85fd26",
  32.                 "callTaskId" : "5e2034273561d30007ce2374"
  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" : "3964d106-ac86-40c8-9ac9-7c8d1c096714",
  41.                         "start_epoch" : 1579169366,
  42.                         "rtp_2833_send_payload" : 101,
  43.                         "original_read_rate" : 8000,
  44.                         "profile_start_epoch" : 1579169377,
  45.                         "transfer_history" : "1579169377%3Abe79ded5-1a0e-4ecc-9717-749562cf003f%3Abl_xfer%3Aext/outgoing-release-2-6-ms3-sleep0/XML",
  46.                         "sip_hangup_phrase" : "OK",
  47.                         "CallingSystemCallUuid" : "2dd411e6-9e41-412a-a6e1-8c5e4c85fd26",
  48.                         "sofia_profile_url" : "sip%3Amod_sofia%4092.119.230.210%3A5060",
  49.                         "ignore_early_media" : true,
  50.                         "waitusec" : 11900015,
  51.                         "sip_to_user" : NumberLong(79062136704),
  52.                         "rtp_last_audio_codec_string" : "PCMA%408000h%4020i%401c",
  53.                         "rtp_audio_in_packet_count" : 2622,
  54.                         "rtp_audio_in_jitter_packet_count" : 0,
  55.                         "last_arg" : "lua/sdk/outgoing-release-2.6-arsmedika.lua",
  56.                         "end_uepoch" : NumberLong(1579169428531083),
  57.                         "rtp_use_codec_name" : "PCMA",
  58.                         "answer_uepoch" : NumberLong(1579169377731114),
  59.                         "record_seconds" : 50,
  60.                         "start_uepoch" : NumberLong(1579169366011113),
  61.                         "waitsec" : 11,
  62.                         "flow_billsec" : 62,
  63.                         "sip_call_id" : "1de321ca-b2eb-1238-798e-7e81c4218fd3",
  64.                         "remote_video_media_flow" : "inactive",
  65.                         "sip_full_from" : "%22%22%20%3Csip%3Aivoice%4083.219.150.111%3E%3Btag%3D8BpcmF8BXZe8m",
  66.                         "remote_text_media_flow" : "inactive",
  67.                         "bridge_stamp" : "2020-01-16%2010%3A09%3A37",
  68.                         "sip_hangup_disposition" : "send_bye",
  69.                         "read_rate" : 8000,
  70.                         "rtp_audio_in_skip_packet_count" : 7,
  71.                         "switch_r_sdp" : "v%3D0%0D%0Ao%3Droot%2056193370%2056193370%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%2015014%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",
  72.                         "sip_recover_via" : "SIP/2.0/UDP%2092.119.230.210%3Bbranch%3Dz9hG4bKpc4NvySQm1pUB%3Breceived%3D92.119.230.210%3Brport%3D5060",
  73.                         "rtp_audio_rtcp_octet_count" : 0,
  74.                         "sip_reply_host" : "83.219.150.111",
  75.                         "billmsec" : 50800,
  76.                         "record_samples" : 405760,
  77.                         "answer_stamp" : "2020-01-16%2010%3A09%3A37",
  78.                         "session_id" : 59466,
  79.                         "hold_accum_seconds" : 0,
  80.                         "last_hold_epoch" : 0,
  81.                         "progresssec" : 0,
  82.                         "sip_cseq" : 15030892,
  83.                         "current_application" : "lua",
  84.                         "hangup_cause" : "NORMAL_CLEARING",
  85.                         "hangup_cause_q850" : 16,
  86.                         "resurrect_epoch" : 0,
  87.                         "rtp_audio_in_flaw_total" : 8,
  88.                         "advertised_media_ip" : "92.119.230.210",
  89.                         "SleepTime" : 0,
  90.                         "ScenarioResultTopic" : "scenario_result_sdk_v2_apps9",
  91.                         "hold_accum_ms" : 0,
  92.                         "rtp_audio_out_packet_count" : 2530,
  93.                         "sip_contact_user" : NumberLong(79062136704),
  94.                         "start_stamp" : "2020-01-16%2010%3A09%3A26",
  95.                         "rtp_audio_recv_pt" : 8,
  96.                         "progress_media_uepoch" : NumberLong(1579169366111085),
  97.                         "rtp_use_codec_string" : "PCMA,PCMU",
  98.                         "progressmsec" : 0,
  99.                         "bridge_hangup_cause" : "NORMAL_CLEARING",
  100.                         "rtp_audio_out_dtmf_packet_count" : 0,
  101.                         "rtp_audio_in_mos" : 4.49,
  102.                         "last_sent_callee_id_name" : "Outbound%20Call",
  103.                         "sip_local_network_addr" : "92.119.230.210",
  104.                         "rtp_audio_out_media_bytes" : 435160,
  105.                         "rtp_use_timer_name" : "soft",
  106.                         "Campaign" : "5d9cfd56356393585504b46a",
  107.                         "text_media_flow" : "disabled",
  108.                         "answermsec" : 11720,
  109.                         "sip_profile_name" : "gateway",
  110.                         "sofia_profile_name" : "external",
  111.                         "sip_from_tag" : "8BpcmF8BXZe8m",
  112.                         "rtp_audio_in_jitter_burst_rate" : 0,
  113.                         "resurrect_uepoch" : 0,
  114.                         "last_bridge_to" : "3964d106-ac86-40c8-9ac9-7c8d1c096714",
  115.                         "recovery_profile_name" : "external",
  116.                         "sip_bye_h_X-RestComm-CallSid" : "ID11f0bb64e3684c0aa59ac86d15678d8b-CAd5e6204503c945608a7879b1e3823d2b",
  117.                         "progress_mediamsec" : 100,
  118.                         "sip_from_user" : "ivoice",
  119.                         "duration" : 62,
  120.                         "sip_contact_uri" : "79062136704%4083.219.150.111%3A5060",
  121.                         "local_media_port" : 20856,
  122.                         "remote_audio_media_flow" : "sendrecv",
  123.                         "audio_media_flow" : "sendrecv",
  124.                         "flow_billusec" : 62519970,
  125.                         "local_media_ip" : "92.119.230.210",
  126.                         "rtp_audio_in_jitter_loss_rate" : 0,
  127.                         "sip_from_uri" : "ivoice%4083.219.150.111",
  128.                         "ScenarioParametersApiHost" : "small-apps9-back",
  129.                         "endpoint_disposition" : "ANSWER",
  130.                         "sip_contact_host" : "83.219.150.111",
  131.                         "rtp_audio_in_mean_interval" : 20.02,
  132.                         "sip_reply_port" : 5060,
  133.                         "end_stamp" : "2020-01-16%2010%3A10%3A28",
  134.                         "leg_timeout" : 40,
  135.                         "waitmsec" : 11900,
  136.                         "current_application_data" : "lua/sdk/outgoing-release-2.6-arsmedika.lua",
  137.                         "rtp_audio_out_raw_bytes" : 435160,
  138.                         "progress_uepoch" : 0,
  139.                         "progress_media_stamp" : "2020-01-16%2010%3A09%3A26",
  140.                         "rtp_use_codec_ptime" : 20,
  141.                         "record_file_size" : 1623084,
  142.                         "answersec" : 11,
  143.                         "rtp_audio_in_jitter_max_variance" : 4.97,
  144.                         "sip_full_to" : "%3Csip%3A79062136704%4083.219.150.111%3E%3Btag%3Das6b622acb",
  145.                         "max_forwards" : 70,
  146.                         "sip_network_ip" : "83.219.150.111",
  147.                         "sip_from_host" : "83.219.150.111",
  148.                         "rtp_audio_in_dtmf_packet_count" : 0,
  149.                         "remote_media_port" : 15014,
  150.                         "last_sent_callee_id_number" : "outgoingSolution%3FtaskId%3D5e2034273561d30007ce2374%26callUuid%3D2dd411e6-9e41-412a-a6e1-8c5e4c85fd26%26callTaskServiceHost%3Dsmall-apps9-back%26callTaskServicePort%3D8101%26scenarioResultTopic%3Dscenario_result_sdk_v2_apps9%26sleepBeforeScenarioMs%3D0",
  151.                         "sip_network_port" : 5060,
  152.                         "pre_transfer_caller_id_number" : "0000000000",
  153.                         "progress_mediasec" : 0,
  154.                         "rtp_use_codec_channels" : 1,
  155.                         "sip_recover_contact" : "%3Csip%3A79062136704%4083.219.150.111%3A5060%3E",
  156.                         "rtp_local_sdp_str" : "v%3D0%0D%0Ao%3DFreeSWITCH%201579148510%201579148511%20IN%20IP4%2092.119.230.210%0D%0As%3DFreeSWITCH%0D%0Ac%3DIN%20IP4%2092.119.230.210%0D%0At%3D0%200%0D%0Am%3Daudio%2020856%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",
  157.                         "record_completion_cause" : "success-silence",
  158.                         "answerusec" : 11720001,
  159.                         "sip_req_uri" : "79062136704%4083.219.150.111",
  160.                         "profile_start_uepoch" : NumberLong(1579169377731114),
  161.                         "RECORD_STEREO" : true,
  162.                         "rtp_audio_in_raw_bytes" : 450984,
  163.                         "rtp_audio_rtcp_packet_count" : 0,
  164.                         "bridge_epoch" : 1579169377,
  165.                         "bridge_uepoch" : NumberLong(1579169377911128),
  166.                         "sip_user_agent" : "FPBX-13.0.197(13.24.1)",
  167.                         "write_rate" : 8000,
  168.                         "billusec" : 50799969,
  169.                         "answer_epoch" : 1579169377,
  170.                         "call_uuid" : "2a0b0eea-b5ab-4153-92c3-601086c388d6",
  171.                         "rtp_audio_out_skip_packet_count" : 0,
  172.                         "sip_invite_domain" : "83.219.150.111",
  173.                         "sip_full_via" : "SIP/2.0/UDP%2092.119.230.210%3Bbranch%3Dz9hG4bKpc4NvySQm1pUB%3Breceived%3D92.119.230.210%3Brport%3D5060",
  174.                         "channel_name" : "sofia/external/79062136704",
  175.                         "rtp_audio_out_cng_packet_count" : 0,
  176.                         "progress_epoch" : 0,
  177.                         "mduration" : 62520,
  178.                         "last_bridge_hangup_cause" : "NORMAL_CLEARING",
  179.                         "record_ms" : 50720,
  180.                         "remote_media_ip" : "83.219.150.111",
  181.                         "ep_codec_string" : "CORE_PCM_MODULE.PCMA%408000h%4020i%4064000b,CORE_PCM_MODULE.PCMU%408000h%4020i%4064000b",
  182.                         "rtp_use_pt" : 8,
  183.                         "rtp_audio_in_largest_jb_size" : 0,
  184.                         "rtp_audio_in_media_bytes" : 435160,
  185.                         "transfer_source" : "1579169377%3Abe79ded5-1a0e-4ecc-9717-749562cf003f%3Abl_xfer%3Aext/outgoing-release-2-6-ms3-sleep0/XML",
  186.                         "rtp_audio_in_cng_packet_count" : 0,
  187.                         "last_hold_uepoch" : 0,
  188.                         "uduration" : 62519970,
  189.                         "rtp_audio_in_quality_percentage" : 99,
  190.                         "rtp_use_codec_rate" : 8000,
  191.                         "ScenarioParametersApiPort" : 8101,
  192.                         "uuid" : "2a0b0eea-b5ab-4153-92c3-601086c388d6",
  193.                         "sip_gateway_name" : "ars-medika-01",
  194.                         "sip_destination_url" : "sip%3A79062136704%4083.219.150.111",
  195.                         "sip_to_uri" : "79062136704%4083.219.150.111",
  196.                         "read_codec" : "PCMA",
  197.                         "rtp_use_ssrc" : 1982108894,
  198.                         "Client" : "5d9cfcf83563935855038f70",
  199.                         "billsec" : 51,
  200.                         "progress_media_epoch" : 1579169366,
  201.                         "rtp_2833_recv_payload" : 101,
  202.                         "CallTaskId" : "5e2034273561d30007ce2374",
  203.                         "end_epoch" : 1579169428,
  204.                         "profile_start_stamp" : "2020-01-16%2010%3A09%3A37",
  205.                         "caller_id" : "%22Outbound%20Call%22%20%3C79062136704%3E",
  206.                         "progressusec" : 0,
  207.                         "originate_early_media" : false,
  208.                         "SipServlet" : "sipservlet_ms3",
  209.                         "sip_outgoing_contact_uri" : "%3Csip%3Agw%2Bars-medika-01%4092.119.230.210%3A5060%3Btransport%3Dudp%3Bgw%3Dars-medika-01%3E",
  210.                         "sip_contact_port" : 5060,
  211.                         "flow_billmsec" : 62520,
  212.                         "bridge_channel" : "sofia/external/outgoingSolution%3FtaskId%3D5e2034273561d30007ce2374%26callUuid%3D2dd411e6-9e41-412a-a6e1-8c5e4c85fd26%26callTaskServiceHost%3Dsmall-apps9-back%26callTaskServicePort%3D8101%26scenarioResultTopic%3Dscenario_result_sdk_v2_apps9%26sleepBeforeScenarioMs%3D0",
  213.                         "dtmf_type" : "rfc2833",
  214.                         "sip_allow" : "INVITE,%20ACK,%20CANCEL,%20OPTIONS,%20BYE,%20REFER,%20SUBSCRIBE,%20NOTIFY,%20INFO,%20PUBLISH,%20MESSAGE",
  215.                         "rtp_audio_in_media_packet_count" : 2530,
  216.                         "direction" : "outbound",
  217.                         "video_media_flow" : "disabled",
  218.                         "sip_to_tag" : "as6b622acb",
  219.                         "rtp_audio_out_media_packet_count" : 2530,
  220.                         "digits_dialed" : "none",
  221.                         "signal_bond" : "3964d106-ac86-40c8-9ac9-7c8d1c096714",
  222.                         "progress_mediausec" : 99972,
  223.                         "last_app" : "lua",
  224.                         "is_outbound" : true,
  225.                         "rtp_audio_in_jitter_min_variance" : 0.71,
  226.                         "hangup_complete_with_xml" : true,
  227.                         "original_read_codec" : "PCMA",
  228.                         "last_bridge_proto_specific_hangup_cause" : "sip%3A200",
  229.                         "rtp_audio_in_flush_packet_count" : 92
  230.                     },
  231.                     "callflow" : [
  232.                         {
  233.                             "extension" : {
  234.                                 "number" : "ext",
  235.                                 "application" : [
  236.                                     {
  237.                                         "app_name" : "log",
  238.                                         "app_data" : "INFO sip-system passed vars: ClientId=${Client}; CampaignId=${Campaign}; CallTaskId=${CallTaskId}; CallingSystemCallUuid=${CallingSystemCallUuid}; ScenarioResultTopic=${ScenarioResultTopic}; ScenarioParametersApiHost=${ScenarioParametersApiHost}; ScenarioParametersApiPort=${ScenarioParametersApiPort}"
  239.                                     },
  240.                                     {
  241.                                         "app_name" : "wait_for_answer",
  242.                                         "app_data" : ""
  243.                                     },
  244.                                     {
  245.                                         "app_name" : "sched_hangup",
  246.                                         "app_data" : "+600 CHANNEL_HANGUP_COMPLETE"
  247.                                     },
  248.                                     {
  249.                                         "app_name" : "set",
  250.                                         "app_data" : "RECORD_STEREO=true"
  251.                                     },
  252.                                     {
  253.                                         "app_name" : "record_session",
  254.                                         "app_data" : "/var/lib/freeswitch/recordings/${Client}/${Campaign}/${CallTaskId}.wav"
  255.                                     },
  256.                                     {
  257.                                         "app_name" : "set",
  258.                                         "app_data" : "SleepTime=0"
  259.                                     },
  260.                                     {
  261.                                         "app_name" : "sleep",
  262.                                         "app_data" : "${SleepTime}"
  263.                                     },
  264.                                     {
  265.                                         "app_name" : "set",
  266.                                         "app_data" : "SipServlet=sipservlet_ms3"
  267.                                     },
  268.                                     {
  269.                                         "app_name" : "lua",
  270.                                         "app_data" : "lua/sdk/outgoing-release-2.6-arsmedika.lua"
  271.                                     }
  272.                                 ],
  273.                                 "name" : "ext"
  274.                             },
  275.                             "times" : {
  276.                                 "progress_time" : 0,
  277.                                 "created_time" : NumberLong(1579169366011113),
  278.                                 "hold_accum_time" : 0,
  279.                                 "resurrect_time" : 0,
  280.                                 "answered_time" : NumberLong(1579169377731114),
  281.                                 "transfer_time" : 0,
  282.                                 "bridged_time" : NumberLong(1579169377911128),
  283.                                 "hangup_time" : NumberLong(1579169428531083),
  284.                                 "progress_media_time" : NumberLong(1579169366111085),
  285.                                 "profile_created_time" : NumberLong(1579169377731114),
  286.                                 "last_hold_time" : 0
  287.                             },
  288.                             "profile_index" : 2,
  289.                             "dialplan" : "XML",
  290.                             "clone-of" : "b8b48e3b-f621-4747-a050-d0e8ee5b405b",
  291.                             "caller_profile" : {
  292.                                 "caller_id_name" : "Outbound Call",
  293.                                 "transfer_source" : "1579169377:be79ded5-1a0e-4ecc-9717-749562cf003f:bl_xfer:ext/outgoing-release-2-6-ms3-sleep0/XML",
  294.                                 "destination_number" : "ext",
  295.                                 "device_id" : "",
  296.                                 "chan_name" : "sofia/external/79062136704",
  297.                                 "dialplan" : "XML",
  298.                                 "callee_id_number" : "outgoingSolution?taskId=5e2034273561d30007ce2374&callUuid=2dd411e6-9e41-412a-a6e1-8c5e4c85fd26&callTaskServiceHost=small-apps9-back&callTaskServicePort=8101&scenarioResultTopic=scenario_result_sdk_v2_apps9&sleepBeforeScenarioMs=0",
  299.                                 "source" : "src/switch_ivr_originate.c",
  300.                                 "network_addr" : "83.219.150.111",
  301.                                 "uuid" : "2a0b0eea-b5ab-4153-92c3-601086c388d6",
  302.                                 "callee_id_name" : "Outbound Call",
  303.                                 "rdnis" : NumberLong(79062136704),
  304.                                 "aniii" : "",
  305.                                 "context" : "outgoing-release-2-6-ms3-sleep0",
  306.                                 "caller_id_number" : NumberLong(79062136704),
  307.                                 "ani" : "0000000000",
  308.                                 "username" : ""
  309.                             },
  310.                             "unique-id" : "be79ded5-1a0e-4ecc-9717-749562cf003f"
  311.                         },
  312.                         {
  313.                             "times" : {
  314.                                 "progress_time" : 0,
  315.                                 "created_time" : NumberLong(1579169366011113),
  316.                                 "hold_accum_time" : 0,
  317.                                 "resurrect_time" : 0,
  318.                                 "answered_time" : NumberLong(1579169377731114),
  319.                                 "transfer_time" : NumberLong(1579169377731114),
  320.                                 "bridged_time" : 0,
  321.                                 "hangup_time" : 0,
  322.                                 "progress_media_time" : NumberLong(1579169366111085),
  323.                                 "profile_created_time" : NumberLong(1579169366011113),
  324.                                 "last_hold_time" : 0
  325.                             },
  326.                             "profile_index" : 1,
  327.                             "clone-of" : "04915d63-2acf-4588-b806-d7f3c7bb11ba",
  328.                             "caller_profile" : {
  329.                                 "caller_id_name" : "",
  330.                                 "destination_number" : NumberLong(79062136704),
  331.                                 "device_id" : "",
  332.                                 "chan_name" : "sofia/external/79062136704",
  333.                                 "dialplan" : "",
  334.                                 "callee_id_number" : NumberLong(79062136704),
  335.                                 "source" : "src/switch_ivr_originate.c",
  336.                                 "network_addr" : "83.219.150.111",
  337.                                 "uuid" : "2a0b0eea-b5ab-4153-92c3-601086c388d6",
  338.                                 "callee_id_name" : "Outbound Call",
  339.                                 "rdnis" : "",
  340.                                 "aniii" : "",
  341.                                 "context" : "default",
  342.                                 "caller_id_number" : "0000000000",
  343.                                 "ani" : "0000000000",
  344.                                 "username" : ""
  345.                             },
  346.                             "unique-id" : "b8b48e3b-f621-4747-a050-d0e8ee5b405b"
  347.                         }
  348.                     ],
  349.                     "core-uuid" : "5cb4740b-6801-4ab7-9c8f-a555e8e98372",
  350.                     "channel_data" : {
  351.                         "state_number" : 11,
  352.                         "flags" : "0=1;1=1;2=1;3=1;38=1;39=1;41=1;44=1;49=1;54=1;61=1;96=1;113=1;114=1;123=1;160=1;166=1",
  353.                         "state" : "CS_REPORTING",
  354.                         "direction" : "outbound",
  355.                         "caps" : "1=1;2=1;3=1;4=1;5=1;6=1;8=1;9=1"
  356.                     },
  357.                     "app_log" : {
  358.                         "application" : [
  359.                             {
  360.                                 "app_name" : "log",
  361.                                 "app_stamp" : NumberLong(1579169377751612),
  362.                                 "app_data" : "INFO sip-system passed vars: ClientId=5d9cfcf83563935855038f70; CampaignId=5d9cfd56356393585504b46a; CallTaskId=5e2034273561d30007ce2374; CallingSystemCallUuid=2dd411e6-9e41-412a-a6e1-8c5e4c85fd26; ScenarioResultTopic=scenario_result_sdk_v2_apps9; ScenarioParametersApiHost=small-apps9-back; ScenarioParametersApiPort=8101"
  363.                             },
  364.                             {
  365.                                 "app_name" : "wait_for_answer",
  366.                                 "app_stamp" : NumberLong(1579169377751796),
  367.                                 "app_data" : ""
  368.                             },
  369.                             {
  370.                                 "app_name" : "sched_hangup",
  371.                                 "app_stamp" : NumberLong(1579169377752003),
  372.                                 "app_data" : "+600 CHANNEL_HANGUP_COMPLETE"
  373.                             },
  374.                             {
  375.                                 "app_name" : "set",
  376.                                 "app_stamp" : NumberLong(1579169377752203),
  377.                                 "app_data" : "RECORD_STEREO=true"
  378.                             },
  379.                             {
  380.                                 "app_name" : "record_session",
  381.                                 "app_stamp" : NumberLong(1579169377752390),
  382.                                 "app_data" : "/var/lib/freeswitch/recordings/5d9cfcf83563935855038f70/5d9cfd56356393585504b46a/5e2034273561d30007ce2374.wav"
  383.                             },
  384.                             {
  385.                                 "app_name" : "set",
  386.                                 "app_stamp" : NumberLong(1579169377765672),
  387.                                 "app_data" : "SleepTime=0"
  388.                             },
  389.                             {
  390.                                 "app_name" : "sleep",
  391.                                 "app_stamp" : NumberLong(1579169377765861),
  392.                                 "app_data" : 0
  393.                             },
  394.                             {
  395.                                 "app_name" : "set",
  396.                                 "app_stamp" : NumberLong(1579169377766050),
  397.                                 "app_data" : "SipServlet=sipservlet_ms3"
  398.                             },
  399.                             {
  400.                                 "app_name" : "lua",
  401.                                 "app_stamp" : NumberLong(1579169377766271),
  402.                                 "app_data" : "lua/sdk/outgoing-release-2.6-arsmedika.lua"
  403.                             }
  404.                         ]
  405.                     },
  406.                     "switchname" : "fs-1",
  407.                     "call-stats" : {
  408.                         "audio" : {
  409.                             "inbound" : {
  410.                                 "media_packet_count" : 2530,
  411.                                 "cng_packet_count" : 0,
  412.                                 "jitter_min_variance" : 0.71,
  413.                                 "skip_packet_count" : 7,
  414.                                 "mean_interval" : 20.02,
  415.                                 "dtmf_packet_count" : 0,
  416.                                 "jitter_loss_rate" : 0,
  417.                                 "jitter_burst_rate" : 0,
  418.                                 "flaw_total" : 8,
  419.                                 "quality_percentage" : 99,
  420.                                 "mos" : 4.49,
  421.                                 "largest_jb_size" : 0,
  422.                                 "packet_count" : 2622,
  423.                                 "jitter_max_variance" : 4.97,
  424.                                 "media_bytes" : 435160,
  425.                                 "jitter_packet_count" : 0,
  426.                                 "raw_bytes" : 450984,
  427.                                 "flush_packet_count" : 92
  428.                             },
  429.                             "outbound" : {
  430.                                 "media_packet_count" : 2530,
  431.                                 "cng_packet_count" : 0,
  432.                                 "skip_packet_count" : 0,
  433.                                 "dtmf_packet_count" : 0,
  434.                                 "rtcp_packet_count" : 0,
  435.                                 "packet_count" : 2530,
  436.                                 "media_bytes" : 435160,
  437.                                 "rtcp_octet_count" : 0,
  438.                                 "raw_bytes" : 435160
  439.                             },
  440.                             "error-log" : {
  441.                                 "error-period" : {
  442.                                     "consecutive-flaws" : 3,
  443.                                     "duration-msec" : 3200,
  444.                                     "stop" : NumberLong(1579169416591119),
  445.                                     "start" : NumberLong(1579169413391109),
  446.                                     "flaws" : 7
  447.                                 }
  448.                             }
  449.                         }
  450.                     }
  451.                 },
  452.                 "callUuid" : "2dd411e6-9e41-412a-a6e1-8c5e4c85fd26",
  453.                 "callTaskId" : "5e2034273561d30007ce2374"
  454.             }
  455.         }
  456.     ],
  457.     "parameters" : {
  458.         "date" : "2020-01-17 12:30",
  459.         "doctor" : "Острякова Е. В. ",
  460.         "specialty" : "Ревматолог",
  461.         "address" : "236006, Калининградская обл., г. Калининград, пр. Московский, 50.",
  462.         "visitID" : "2360117",
  463.         "name" : "Романько Татьяна Ивановна",
  464.         "room" : ""
  465.     },
  466.     "nextAttemptTimestamp" : NumberLong(0),
  467.     "results" : {},
  468.     "ringingMillis" : NumberLong(0),
  469.     "talkMillis" : NumberLong(50800),
  470.     "reportParameters" : {},
  471.     "created" : NumberLong(1579168807),
  472.     "reported" : false,
  473.     "testing" : false,
  474.     "performedTimestamp" : NumberLong(1579169428),
  475.     "sumConsume" : 0.0,
  476.     "processingEvents" : [
  477.         {
  478.             "timestampSecUtc" : NumberLong(1579169366),
  479.             "dateTimeFormatted" : "16.01.20 10:09",
  480.             "author" : "calling-system",
  481.             "event" : "call initiated: OutgoingCall(uuid=2dd411e6-9e41-412a-a6e1-8c5e4c85fd26, 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/79062136704 ext XML outgoing-release-2-6-ms3-sleep0, createdUtcMs=1579169366002, callUuid=2dd411e6-9e41-412a-a6e1-8c5e4c85fd26, callTaskUuid=5e2034273561d30007ce2374, client=5d9cfcf83563935855038f70, campaign=5d9cfd56356393585504b46a, originateParameters={}, originateTimeoutSec=40), originateResult=null, systemError=null, cdr=null); message to kafka to call task is about to be sent"
  482.         },
  483.         {
  484.             "timestampSecUtc" : NumberLong(1579169377),
  485.             "dateTimeFormatted" : "16.01.20 10:09",
  486.             "author" : "tech.ivoice.calls.taskproc.service.CallOriginateResultService",
  487.             "event" : "transition to ONGOING on call answered"
  488.         },
  489.         {
  490.             "timestampSecUtc" : NumberLong(1579169428590),
  491.             "dateTimeFormatted" : "16.01.20 10:10",
  492.             "author" : "tech.ivoice.platform.ctservice.service.CdrService",
  493.             "event" : "CDR_RECEIVED",
  494.             "parameters" : {
  495.                 "nextState" : "PERFORMED",
  496.                 "talkMillis" : NumberLong(50800)
  497.             }
  498.         }
  499.     ],
  500.     "fullCost" : NumberLong(0),
  501.     "fullBilling" : false,
  502.     "_class" : "tech.ivoice.common.model.calls.CallTask",
  503.     "scenarioResult" : {
  504.         "time" : ISODate("2020-01-16T10:10:28.522Z"),
  505.         "items" : [
  506.             {
  507.                 "time" : ISODate("2020-01-16T10:09:37.915Z"),
  508.                 "name" : "params",
  509.                 "value" : "medika_visit",
  510.                 "details" : {
  511.                     "date" : "2020-01-17 12:30",
  512.                     "sleepBeforeScenarioMs" : "0",
  513.                     "specialty" : "Ревматолог",
  514.                     "address" : "236006, Калининградская обл., г. Калининград, пр. Московский, 50.",
  515.                     "campaignId" : "5d9cfd56356393585504b46a",
  516.                     "callTaskId" : "5e2034273561d30007ce2374",
  517.                     "solutionName" : "medika_visit",
  518.                     "room" : "",
  519.                     "callUuid" : "2dd411e6-9e41-412a-a6e1-8c5e4c85fd26",
  520.                     "doctor" : "Острякова Е. В. ",
  521.                     "visitID" : "2360117",
  522.                     "phone" : "79062136704",
  523.                     "name" : "Романько Татьяна Ивановна",
  524.                     "scenarioId" : "5d9cfcc4356393585502eb13"
  525.                 }
  526.             },
  527.             {
  528.                 "time" : ISODate("2020-01-16T10:10:03.963Z"),
  529.                 "name" : "прием подтвержден",
  530.                 "value" : "denied",
  531.                 "details" : {}
  532.             },
  533.             {
  534.                 "time" : ISODate("2020-01-16T10:10:24.884Z"),
  535.                 "name" : "перенести прием",
  536.                 "value" : "denied",
  537.                 "details" : {}
  538.             },
  539.             {
  540.                 "time" : ISODate("2020-01-16T10:10:28.521Z"),
  541.                 "name" : "hangup",
  542.                 "value" : "solution",
  543.                 "details" : {}
  544.             }
  545.         ],
  546.         "log" : [
  547.             {
  548.                 "time" : ISODate("2020-01-16T10:09:57.478Z"),
  549.                 "text" : "start requesting option (yes, no)",
  550.                 "context" : {
  551.                     "sid" : "b5e1edf6-0221-4f8f-a75b-13a4a0bf1480",
  552.                     "question" : ""
  553.                 }
  554.             },
  555.             {
  556.                 "time" : ISODate("2020-01-16T10:10:03.959Z"),
  557.                 "text" : "recognise option(no) on asr",
  558.                 "context" : {
  559.                     "sid" : "b5e1edf6-0221-4f8f-a75b-13a4a0bf1480",
  560.                     "question" : "",
  561.                     "recognition" : [
  562.                         {
  563.                             "text" : "я не",
  564.                             "confidence" : 0.0
  565.                         }
  566.                     ]
  567.                 }
  568.             },
  569.             {
  570.                 "time" : ISODate("2020-01-16T10:10:04.028Z"),
  571.                 "text" : "start requesting option (yes, no)",
  572.                 "context" : {
  573.                     "sid" : "264e21e1-cbcb-42f4-bd5e-55dd8aa9d63f",
  574.                     "question" : ""
  575.                 }
  576.             },
  577.             {
  578.                 "time" : ISODate("2020-01-16T10:10:16.020Z"),
  579.                 "text" : "recognise on asr failed",
  580.                 "context" : {
  581.                     "sid" : "264e21e1-cbcb-42f4-bd5e-55dd8aa9d63f",
  582.                     "question" : "",
  583.                     "cause" : "silence"
  584.                 }
  585.             },
  586.             {
  587.                 "time" : ISODate("2020-01-16T10:10:16.020Z"),
  588.                 "text" : "retry requesting option (yes, no)",
  589.                 "context" : {
  590.                     "sid" : "1cd171aa-c370-4485-a4a6-a477453ab5a2",
  591.                     "question" : ""
  592.                 }
  593.             },
  594.             {
  595.                 "time" : ISODate("2020-01-16T10:10:24.880Z"),
  596.                 "text" : "recognise option(no) on asr",
  597.                 "context" : {
  598.                     "sid" : "1cd171aa-c370-4485-a4a6-a477453ab5a2",
  599.                     "question" : "",
  600.                     "recognition" : [
  601.                         {
  602.                             "text" : "не",
  603.                             "confidence" : 0.0
  604.                         }
  605.                     ]
  606.                 }
  607.             }
  608.         ],
  609.         "callId" : "2dd411e6-9e41-412a-a6e1-8c5e4c85fd26",
  610.         "taskId" : "5e2034273561d30007ce2374",
  611.         "resourceSpentEvents" : [
  612.             {
  613.                 "vendor" : "YANDEX_TTS",
  614.                 "amount" : {
  615.                     "SYNTHESIS_CHAR_COUNT" : NumberLong(0)
  616.                 }
  617.             },
  618.             {
  619.                 "vendor" : "YANDEX_TTS",
  620.                 "amount" : {
  621.                     "SYNTHESIS_CHAR_COUNT" : NumberLong(25)
  622.                 }
  623.             },
  624.             {
  625.                 "vendor" : "YANDEX_TTS",
  626.                 "amount" : {
  627.                     "SYNTHESIS_CHAR_COUNT" : NumberLong(0)
  628.                 }
  629.             },
  630.             {
  631.                 "vendor" : "YANDEX_TTS",
  632.                 "amount" : {
  633.                     "SYNTHESIS_CHAR_COUNT" : NumberLong(28)
  634.                 }
  635.             },
  636.             {
  637.                 "vendor" : "YANDEX_TTS",
  638.                 "amount" : {
  639.                     "SYNTHESIS_CHAR_COUNT" : NumberLong(0)
  640.                 }
  641.             },
  642.             {
  643.                 "vendor" : "YANDEX_TTS",
  644.                 "amount" : {
  645.                     "SYNTHESIS_CHAR_COUNT" : NumberLong(27)
  646.                 }
  647.             },
  648.             {
  649.                 "vendor" : "YANDEX_TTS",
  650.                 "amount" : {
  651.                     "SYNTHESIS_CHAR_COUNT" : NumberLong(0)
  652.                 }
  653.             },
  654.             {
  655.                 "vendor" : "GOOGLE_ASR",
  656.                 "amount" : {
  657.                     "SPEECH_TIME" : NumberLong(6485),
  658.                     "SPEECH_CHAR_COUNT" : NumberLong(4),
  659.                     "SPEECH_DTMF_DIGIT_COUNT" : NumberLong(0),
  660.                     "SPEECH_DTMF_DIGIT_TIME" : NumberLong(6485)
  661.                 }
  662.             },
  663.             {
  664.                 "vendor" : "YANDEX_TTS",
  665.                 "amount" : {
  666.                     "SYNTHESIS_CHAR_COUNT" : NumberLong(0)
  667.                 }
  668.             },
  669.             {
  670.                 "vendor" : "GOOGLE_ASR",
  671.                 "amount" : {
  672.                     "SPEECH_TIME" : NumberLong(6985),
  673.                     "SPEECH_CHAR_COUNT" : NumberLong(0),
  674.                     "SPEECH_DTMF_DIGIT_COUNT" : NumberLong(0),
  675.                     "SPEECH_DTMF_DIGIT_TIME" : NumberLong(6985)
  676.                 }
  677.             },
  678.             {
  679.                 "vendor" : "YANDEX_TTS",
  680.                 "amount" : {
  681.                     "SYNTHESIS_CHAR_COUNT" : NumberLong(0)
  682.                 }
  683.             },
  684.             {
  685.                 "vendor" : "GOOGLE_ASR",
  686.                 "amount" : {
  687.                     "SPEECH_TIME" : NumberLong(3857),
  688.                     "SPEECH_CHAR_COUNT" : NumberLong(3),
  689.                     "SPEECH_DTMF_DIGIT_COUNT" : NumberLong(0),
  690.                     "SPEECH_DTMF_DIGIT_TIME" : NumberLong(3857)
  691.                 }
  692.             },
  693.             {
  694.                 "vendor" : "YANDEX_TTS",
  695.                 "amount" : {
  696.                     "SYNTHESIS_CHAR_COUNT" : NumberLong(0)
  697.                 }
  698.             }
  699.         ]
  700.     }
  701. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement