Advertisement
Bobrovozka

Untitled

Oct 12th, 2021
1,166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 37.93 KB | None | 0 0
  1. {
  2.     "_id" : ObjectId("61648009cbe63700084f8086"),
  3.     "phone" : "+77750527949",
  4.     "campaign" : "5e4e3a0f1755e0b8c4c91269",
  5.     "state" : "PERFORMED",
  6.     "lastCallRequestTimestamp" : NumberLong(1634026253009),
  7.     "callAnsweredTimestamp" : NumberLong(1634026259234),
  8.     "calls" : [],
  9.     "outgoingCalls" : [
  10.         {
  11.             "uuid" : "f9bd065d-fa31-43b5-bb3d-bf7cf21cee05",
  12.             "request" : {
  13.                 "targetTopic" : "sip-system-originate-request-fsivoice-release-2-3",
  14.                 "responseTopic" : "calling-system-orig-result-foreign-apps",
  15.                 "scenarioResultTopic" : "scenario_result_sdk_v2_foreign-apps",
  16.                 "scenarioParametersApiHost" : "small-apps7-back",
  17.                 "scenarioParametersApiPort" : "8109",
  18.                 "callUrl" : "sofia/gateway/cirp_npp/+77750527949 ext XML outgoing-release-2.9.0",
  19.                 "createdUtcMs" : NumberLong(1634026253009),
  20.                 "callUuid" : "f9bd065d-fa31-43b5-bb3d-bf7cf21cee05",
  21.                 "callTaskUuid" : "61648009cbe63700084f8086",
  22.                 "client" : "5e4e36f51755e0b8c4b660b9",
  23.                 "campaign" : "5e4e3a0f1755e0b8c4c91269",
  24.                 "originateParameters" : {
  25.                     "origination_caller_id_number" : "003"
  26.                 },
  27.                 "originateTimeoutSec" : 20,
  28.                 "sipServletHost" : "sipservlet_ms10"
  29.             },
  30.             "talkMillis" : NumberLong(0),
  31.             "hangupByAmd" : false,
  32.             "originateResult" : {
  33.                 "timestamp" : NumberLong(1634026259234),
  34.                 "sipCode" : 200,
  35.                 "fullSipSystemResponse" : "+OK 1905b020-22c2-44ef-9f72-620772f3d1f7",
  36.                 "callUuid" : "f9bd065d-fa31-43b5-bb3d-bf7cf21cee05",
  37.                 "callTaskId" : "61648009cbe63700084f8086"
  38.             },
  39.             "cdr" : {
  40.                 "cdr" : {
  41.                     "variables" : {
  42.                         "write_codec" : "PCMA",
  43.                         "sip_to_host" : "5.104.236.93",
  44.                         "hold_accum_usec" : 0,
  45.                         "sip_from_port" : 5060,
  46.                         "bridge_uuid" : "0eddd007-e57f-4f67-9700-b9e4a7eebb4c",
  47.                         "start_epoch" : 1634026252,
  48.                         "rtp_2833_send_payload" : 101,
  49.                         "original_read_rate" : 8000,
  50.                         "profile_start_epoch" : 1634026259,
  51.                         "transfer_history" : "1634026259%3A406d58c4-cda7-4e64-b343-3fb6afb3684d%3Abl_xfer%3Aext/outgoing-release-2.9.0/XML",
  52.                         "sip_hangup_phrase" : "OK",
  53.                         "CallingSystemCallUuid" : "f9bd065d-fa31-43b5-bb3d-bf7cf21cee05",
  54.                         "sofia_profile_url" : "sip%3Amod_sofia%4092.119.230.229%3A5060",
  55.                         "ignore_early_media" : true,
  56.                         "waitusec" : 8280008,
  57.                         "sip_to_user" : "%2B77750527949",
  58.                         "rtp_last_audio_codec_string" : "PCMA%408000h%4020i%401c",
  59.                         "rtp_audio_in_packet_count" : 2364,
  60.                         "rtp_audio_in_jitter_packet_count" : 0,
  61.                         "last_arg" : "lua/sdk/outgoing-release-2.9.0.lua",
  62.                         "end_uepoch" : NumberLong(1634026308577522),
  63.                         "rtp_use_codec_name" : "PCMA",
  64.                         "answer_uepoch" : NumberLong(1634026259197471),
  65.                         "record_seconds" : 48,
  66.                         "start_uepoch" : NumberLong(1634026252997474),
  67.                         "waitsec" : 9,
  68.                         "flow_billsec" : 56,
  69.                         "sip_call_id" : "c28546ec-a5d6-123a-4cbe-4a57f11dbc1a",
  70.                         "remote_video_media_flow" : "inactive",
  71.                         "sip_full_from" : "%22%22%20%3Csip%3A003%405.104.236.93%3A5060%3E%3Btag%3D5taNDZ2DKKQpm",
  72.                         "remote_text_media_flow" : "inactive",
  73.                         "bridge_stamp" : "2021-10-12%2008%3A11%3A01",
  74.                         "sip_hangup_disposition" : "send_bye",
  75.                         "read_rate" : 8000,
  76.                         "rtp_audio_in_skip_packet_count" : 133,
  77.                         "switch_r_sdp" : "v%3D0%0D%0Ao%3Dvoipnotes%20376190346%20376190346%20IN%20IP4%205.104.236.93%0D%0As%3DVoipNotes%0D%0Ac%3DIN%20IP4%205.104.236.93%0D%0At%3D0%200%0D%0Am%3Daudio%2013114%20RTP/AVP%208%20101%0D%0Aa%3Drtpmap%3A8%20PCMA/8000%0D%0Aa%3Drtpmap%3A101%20telephone-event/8000%0D%0Aa%3Dfmtp%3A101%200-16%0D%0Aa%3Dptime%3A20%0D%0Aa%3Dmaxptime%3A150%0D%0A",
  78.                         "sip_recover_via" : "SIP/2.0/UDP%2092.119.230.229%3Bbranch%3Dz9hG4bKecgeeQF0yejvj%3Breceived%3D92.119.230.229%3Brport%3D5060",
  79.                         "rtp_audio_rtcp_octet_count" : 0,
  80.                         "sip_reply_host" : "5.104.236.93",
  81.                         "billmsec" : 49380,
  82.                         "bridge_generate_comfort_noise" : true,
  83.                         "record_samples" : 391200,
  84.                         "answer_stamp" : "2021-10-12%2008%3A10%3A59",
  85.                         "session_id" : 298,
  86.                         "hold_accum_seconds" : 0,
  87.                         "last_hold_epoch" : 0,
  88.                         "progresssec" : 0,
  89.                         "sip_cseq" : 42459334,
  90.                         "current_application" : "lua",
  91.                         "hangup_cause" : "NORMAL_CLEARING",
  92.                         "hangup_cause_q850" : 16,
  93.                         "resurrect_epoch" : 0,
  94.                         "rtp_audio_in_flaw_total" : 5,
  95.                         "advertised_media_ip" : "92.119.230.229",
  96.                         "SleepTime" : 2000,
  97.                         "ScenarioResultTopic" : "scenario_result_sdk_v2_foreign-apps",
  98.                         "hold_accum_ms" : 0,
  99.                         "rtp_audio_out_packet_count" : 2364,
  100.                         "sip_contact_user" : "%2B77750527949",
  101.                         "start_stamp" : "2021-10-12%2008%3A10%3A52",
  102.                         "rtp_audio_recv_pt" : 8,
  103.                         "progress_media_uepoch" : NumberLong(1634026256457472),
  104.                         "rtp_use_codec_string" : "PCMU,PCMA",
  105.                         "progressmsec" : 0,
  106.                         "bridge_hangup_cause" : "NORMAL_CLEARING",
  107.                         "rtp_audio_out_dtmf_packet_count" : 0,
  108.                         "rtp_audio_in_mos" : 4.49,
  109.                         "last_sent_callee_id_name" : "Outbound%20Call",
  110.                         "sip_local_network_addr" : "92.119.230.229",
  111.                         "rtp_audio_out_media_bytes" : 406608,
  112.                         "rtp_use_timer_name" : "soft",
  113.                         "Campaign" : "5e4e3a0f1755e0b8c4c91269",
  114.                         "text_media_flow" : "disabled",
  115.                         "answermsec" : 6200,
  116.                         "sip_profile_name" : "gateway",
  117.                         "sofia_profile_name" : "external",
  118.                         "sip_from_tag" : "5taNDZ2DKKQpm",
  119.                         "rtp_audio_in_jitter_burst_rate" : 0,
  120.                         "resurrect_uepoch" : 0,
  121.                         "last_bridge_to" : "0eddd007-e57f-4f67-9700-b9e4a7eebb4c",
  122.                         "recovery_profile_name" : "external",
  123.                         "sip_bye_h_X-RestComm-CallSid" : "ID11f0bb64e3684c0aa59ac86d15678d8b-CAc43b02d553ef49f386adf753870c0da7",
  124.                         "progress_mediamsec" : 3460,
  125.                         "sip_from_user" : "003",
  126.                         "duration" : 56,
  127.                         "sip_contact_uri" : "%2B77750527949%405.104.236.93%3A5060",
  128.                         "local_media_port" : 21918,
  129.                         "remote_audio_media_flow" : "sendrecv",
  130.                         "audio_media_flow" : "sendrecv",
  131.                         "flow_billusec" : 55580048,
  132.                         "local_media_ip" : "92.119.230.229",
  133.                         "rtp_audio_in_jitter_loss_rate" : 0,
  134.                         "sip_from_uri" : "003%405.104.236.93%3A5060",
  135.                         "ScenarioParametersApiHost" : "small-apps7-back",
  136.                         "endpoint_disposition" : "ANSWER",
  137.                         "sip_contact_host" : "5.104.236.93",
  138.                         "rtp_audio_in_mean_interval" : 20,
  139.                         "sip_reply_port" : 5060,
  140.                         "end_stamp" : "2021-10-12%2008%3A11%3A48",
  141.                         "leg_timeout" : 20,
  142.                         "waitmsec" : 8280,
  143.                         "current_application_data" : "lua/sdk/outgoing-release-2.9.0.lua",
  144.                         "rtp_audio_out_raw_bytes" : 406608,
  145.                         "progress_uepoch" : 0,
  146.                         "progress_media_stamp" : "2021-10-12%2008%3A10%3A56",
  147.                         "rtp_use_codec_ptime" : 20,
  148.                         "record_file_size" : 1564844,
  149.                         "answersec" : 7,
  150.                         "rtp_audio_in_jitter_max_variance" : 1.61,
  151.                         "sip_full_to" : "%3Csip%3A%2B77750527949%405.104.236.93%3A5060%3E%3Btag%3Das570ccfe6",
  152.                         "max_forwards" : 70,
  153.                         "sip_network_ip" : "5.104.236.93",
  154.                         "sip_from_host" : "5.104.236.93",
  155.                         "rtp_audio_in_dtmf_packet_count" : 26,
  156.                         "remote_media_port" : 13114,
  157.                         "send_silence_when_idle" : true,
  158.                         "last_sent_callee_id_number" : "outgoingSolution%3FtaskId%3D61648009cbe63700084f8086%26amdEnabled%3Dfalse%26callUuid%3Df9bd065d-fa31-43b5-bb3d-bf7cf21cee05%26callTaskServiceHost%3Dsmall-apps7-back%26callTaskServicePort%3D8109%26scenarioResultTopic%3Dscenario_result_sdk_v2_foreign-apps%26sleepBeforeScenarioMs%3D2000",
  159.                         "sip_network_port" : 5060,
  160.                         "pre_transfer_caller_id_number" : "003",
  161.                         "progress_mediasec" : 4,
  162.                         "rtp_use_codec_channels" : 1,
  163.                         "sip_recover_contact" : "%3Csip%3A%2B77750527949%405.104.236.93%3A5060%3E",
  164.                         "rtp_local_sdp_str" : "v%3D0%0D%0Ao%3DFreeSWITCH%201634004334%201634004335%20IN%20IP4%2092.119.230.229%0D%0As%3DFreeSWITCH%0D%0Ac%3DIN%20IP4%2092.119.230.229%0D%0At%3D0%200%0D%0Am%3Daudio%2021918%20RTP/AVP%200%208%20101%0D%0Aa%3Drtpmap%3A0%20PCMU/8000%0D%0Aa%3Drtpmap%3A8%20PCMA/8000%0D%0Aa%3Drtpmap%3A101%20telephone-event/8000%0D%0Aa%3Dfmtp%3A101%200-16%0D%0Aa%3Dptime%3A20%0D%0Aa%3Dsendrecv%0D%0A",
  165.                         "record_completion_cause" : "success-silence",
  166.                         "answerusec" : 6199997,
  167.                         "sip_req_uri" : "%2B77750527949%405.104.236.93",
  168.                         "profile_start_uepoch" : NumberLong(1634026259217473),
  169.                         "RECORD_STEREO" : true,
  170.                         "rtp_audio_in_raw_bytes" : 402552,
  171.                         "rtp_audio_rtcp_packet_count" : 0,
  172.                         "bridge_epoch" : 1634026261,
  173.                         "bridge_uepoch" : NumberLong(1634026261277482),
  174.                         "sip_user_agent" : "VoipNotes",
  175.                         "write_rate" : 8000,
  176.                         "billusec" : 49380051,
  177.                         "answer_epoch" : 1634026259,
  178.                         "call_uuid" : "1905b020-22c2-44ef-9f72-620772f3d1f7",
  179.                         "rtp_audio_out_skip_packet_count" : 0,
  180.                         "sip_full_via" : "SIP/2.0/UDP%2092.119.230.229%3Bbranch%3Dz9hG4bKecgeeQF0yejvj%3Breceived%3D92.119.230.229%3Brport%3D5060",
  181.                         "channel_name" : "sofia/external/%2B77750527949",
  182.                         "rtp_audio_out_cng_packet_count" : 0,
  183.                         "progress_epoch" : 0,
  184.                         "mduration" : 55580,
  185.                         "last_bridge_hangup_cause" : "NORMAL_CLEARING",
  186.                         "record_ms" : 48900,
  187.                         "remote_media_ip" : "5.104.236.93",
  188.                         "ep_codec_string" : "CORE_PCM_MODULE.PCMA%408000h%4020i%4064000b",
  189.                         "origination_caller_id_number" : "003",
  190.                         "rtp_use_pt" : 8,
  191.                         "rtp_audio_in_largest_jb_size" : 0,
  192.                         "rtp_audio_in_media_bytes" : 402136,
  193.                         "transfer_source" : "1634026259%3A406d58c4-cda7-4e64-b343-3fb6afb3684d%3Abl_xfer%3Aext/outgoing-release-2.9.0/XML",
  194.                         "rtp_audio_in_cng_packet_count" : 0,
  195.                         "last_hold_uepoch" : 0,
  196.                         "uduration" : 55580048,
  197.                         "rtp_audio_in_quality_percentage" : 99,
  198.                         "rtp_use_codec_rate" : 8000,
  199.                         "ScenarioParametersApiPort" : 8109,
  200.                         "uuid" : "1905b020-22c2-44ef-9f72-620772f3d1f7",
  201.                         "sip_gateway_name" : "cirp_npp",
  202.                         "sip_destination_url" : "sip%3A%2B77750527949%405.104.236.93",
  203.                         "sip_to_uri" : "%2B77750527949%405.104.236.93%3A5060",
  204.                         "read_codec" : "PCMA",
  205.                         "rtp_use_ssrc" : NumberLong(3378941093),
  206.                         "Client" : "5e4e36f51755e0b8c4b660b9",
  207.                         "billsec" : 49,
  208.                         "progress_media_epoch" : 1634026256,
  209.                         "rtp_2833_recv_payload" : 101,
  210.                         "CallTaskId" : "61648009cbe63700084f8086",
  211.                         "end_epoch" : 1634026308,
  212.                         "profile_start_stamp" : "2021-10-12%2008%3A10%3A59",
  213.                         "caller_id" : "%22Outbound%20Call%22%20%3C%2B77750527949%3E",
  214.                         "progressusec" : 0,
  215.                         "originate_early_media" : false,
  216.                         "SipServlet" : "sipservlet_ms10",
  217.                         "sip_outgoing_contact_uri" : "%3Csip%3Agw%2Bcirp_npp%4092.119.230.229%3A5060%3Btransport%3Dudp%3Bgw%3Dcirp_npp%3E",
  218.                         "sip_contact_port" : 5060,
  219.                         "flow_billmsec" : 55580,
  220.                         "bridge_channel" : "sofia/external/outgoingSolution%3FtaskId%3D61648009cbe63700084f8086%26amdEnabled%3Dfalse%26callUuid%3Df9bd065d-fa31-43b5-bb3d-bf7cf21cee05%26callTaskServiceHost%3Dsmall-apps7-back%26callTaskServicePort%3D8109%26scenarioResultTopic%3Dscenario_result_sdk_v2_foreign-apps%26sleepBefor",
  221.                         "dtmf_type" : "rfc2833",
  222.                         "sip_allow" : "INVITE,%20ACK,%20CANCEL,%20OPTIONS,%20BYE,%20REFER,%20SUBSCRIBE,%20NOTIFY,%20INFO,%20PUBLISH,%20MESSAGE",
  223.                         "rtp_audio_in_media_packet_count" : 2338,
  224.                         "direction" : "outbound",
  225.                         "video_media_flow" : "disabled",
  226.                         "sip_to_tag" : "as570ccfe6",
  227.                         "sip_to_port" : 5060,
  228.                         "rtp_audio_out_media_packet_count" : 2364,
  229.                         "digits_dialed" : 5,
  230.                         "signal_bond" : "0eddd007-e57f-4f67-9700-b9e4a7eebb4c",
  231.                         "progress_mediausec" : 3459998,
  232.                         "last_app" : "lua",
  233.                         "is_outbound" : true,
  234.                         "rtp_audio_in_jitter_min_variance" : 0.39,
  235.                         "hangup_complete_with_xml" : true,
  236.                         "original_read_codec" : "PCMA",
  237.                         "last_bridge_proto_specific_hangup_cause" : "sip%3A200",
  238.                         "rtp_audio_in_flush_packet_count" : 0
  239.                     },
  240.                     "callflow" : [
  241.                         {
  242.                             "extension" : {
  243.                                 "number" : "ext",
  244.                                 "application" : [
  245.                                     {
  246.                                         "app_name" : "log",
  247.                                         "app_data" : "INFO sip-system passed vars: ClientId=${Client}; CampaignId=${Campaign}; CallTaskId=${CallTaskId}; CallingSystemCallUuid=${CallingSystemCallUuid}; ScenarioResultTopic=${ScenarioResultTopic}; ScenarioParametersApiHost=${ScenarioParametersApiHost}; ScenarioParametersApiPort=${ScenarioParametersApiPort}"
  248.                                     },
  249.                                     {
  250.                                         "app_name" : "wait_for_answer",
  251.                                         "app_data" : ""
  252.                                     },
  253.                                     {
  254.                                         "app_name" : "sched_hangup",
  255.                                         "app_data" : "+600 CHANNEL_HANGUP_COMPLETE"
  256.                                     },
  257.                                     {
  258.                                         "app_name" : "set",
  259.                                         "app_data" : "RECORD_STEREO=true"
  260.                                     },
  261.                                     {
  262.                                         "app_name" : "record_session",
  263.                                         "app_data" : "/var/lib/freeswitch/recordings/${Client}/${Campaign}/${CallTaskId}.wav"
  264.                                     },
  265.                                     {
  266.                                         "app_name" : "set",
  267.                                         "app_data" : "SleepTime=2000"
  268.                                     },
  269.                                     {
  270.                                         "app_name" : "sleep",
  271.                                         "app_data" : "${SleepTime}"
  272.                                     },
  273.                                     {
  274.                                         "app_name" : "set",
  275.                                         "app_data" : "SipServlet=${SipServlet}"
  276.                                     },
  277.                                     {
  278.                                         "app_name" : "set_audio_level",
  279.                                         "app_data" : "write 2"
  280.                                     },
  281.                                     {
  282.                                         "app_name" : "set",
  283.                                         "app_data" : "send_silence_when_idle=true"
  284.                                     },
  285.                                     {
  286.                                         "app_name" : "set",
  287.                                         "app_data" : "bridge_generate_comfort_noise=true"
  288.                                     },
  289.                                     {
  290.                                         "app_name" : "lua",
  291.                                         "app_data" : "lua/sdk/outgoing-release-2.9.0.lua"
  292.                                     }
  293.                                 ],
  294.                                 "name" : "ext"
  295.                             },
  296.                             "times" : {
  297.                                 "progress_time" : 0,
  298.                                 "created_time" : NumberLong(1634026252997474),
  299.                                 "hold_accum_time" : 0,
  300.                                 "resurrect_time" : 0,
  301.                                 "answered_time" : NumberLong(1634026259197471),
  302.                                 "transfer_time" : 0,
  303.                                 "bridged_time" : NumberLong(1634026261277482),
  304.                                 "hangup_time" : NumberLong(1634026308577522),
  305.                                 "progress_media_time" : NumberLong(1634026256457472),
  306.                                 "profile_created_time" : NumberLong(1634026259217473),
  307.                                 "last_hold_time" : 0
  308.                             },
  309.                             "profile_index" : 2,
  310.                             "dialplan" : "XML",
  311.                             "clone-of" : "03181212-4176-47bd-bc5a-394e8a277da4",
  312.                             "caller_profile" : {
  313.                                 "caller_id_name" : "Outbound Call",
  314.                                 "transfer_source" : "1634026259:406d58c4-cda7-4e64-b343-3fb6afb3684d:bl_xfer:ext/outgoing-release-2.9.0/XML",
  315.                                 "destination_number" : "ext",
  316.                                 "device_id" : "",
  317.                                 "chan_name" : "sofia/external/+77750527949",
  318.                                 "dialplan" : "XML",
  319.                                 "callee_id_number" : "outgoingSolution?taskId=61648009cbe63700084f8086&amdEnabled=false&callUuid=f9bd065d-fa31-43b5-bb3d-bf7cf21cee05&callTaskServiceHost=small-apps7-back&callTaskServicePort=8109&scenarioResultTopic=scenario_result_sdk_v2_foreign-apps&sleepBeforeScenarioMs=2000",
  320.                                 "source" : "src/switch_ivr_originate.c",
  321.                                 "network_addr" : "5.104.236.93",
  322.                                 "uuid" : "1905b020-22c2-44ef-9f72-620772f3d1f7",
  323.                                 "callee_id_name" : "Outbound Call",
  324.                                 "rdnis" : "+77750527949",
  325.                                 "aniii" : "",
  326.                                 "context" : "outgoing-release-2.9.0",
  327.                                 "caller_id_number" : "+77750527949",
  328.                                 "ani" : "003",
  329.                                 "username" : ""
  330.                             },
  331.                             "unique-id" : "406d58c4-cda7-4e64-b343-3fb6afb3684d"
  332.                         },
  333.                         {
  334.                             "times" : {
  335.                                 "progress_time" : 0,
  336.                                 "created_time" : NumberLong(1634026252997474),
  337.                                 "hold_accum_time" : 0,
  338.                                 "resurrect_time" : 0,
  339.                                 "answered_time" : NumberLong(1634026259197471),
  340.                                 "transfer_time" : NumberLong(1634026259217473),
  341.                                 "bridged_time" : 0,
  342.                                 "hangup_time" : 0,
  343.                                 "progress_media_time" : NumberLong(1634026256457472),
  344.                                 "profile_created_time" : NumberLong(1634026252997474),
  345.                                 "last_hold_time" : 0
  346.                             },
  347.                             "profile_index" : 1,
  348.                             "clone-of" : "2df20622-6bf3-4ba2-8215-b8cc8298303b",
  349.                             "caller_profile" : {
  350.                                 "caller_id_name" : "",
  351.                                 "destination_number" : "+77750527949",
  352.                                 "device_id" : "",
  353.                                 "chan_name" : "sofia/external/+77750527949",
  354.                                 "dialplan" : "",
  355.                                 "callee_id_number" : "+77750527949",
  356.                                 "source" : "src/switch_ivr_originate.c",
  357.                                 "network_addr" : "5.104.236.93",
  358.                                 "uuid" : "1905b020-22c2-44ef-9f72-620772f3d1f7",
  359.                                 "callee_id_name" : "Outbound Call",
  360.                                 "rdnis" : "",
  361.                                 "aniii" : "",
  362.                                 "context" : "default",
  363.                                 "caller_id_number" : "003",
  364.                                 "ani" : "003",
  365.                                 "username" : ""
  366.                             },
  367.                             "unique-id" : "03181212-4176-47bd-bc5a-394e8a277da4"
  368.                         }
  369.                     ],
  370.                     "coreUuid" : "0fa4dd97-b399-4132-b3ba-c24716e5e80e",
  371.                     "channelData" : {
  372.                         "state_number" : 11,
  373.                         "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",
  374.                         "state" : "CS_REPORTING",
  375.                         "direction" : "outbound",
  376.                         "caps" : "1=1;2=1;3=1;4=1;5=1;6=1;8=1;9=1"
  377.                     },
  378.                     "appLog" : {
  379.                         "application" : [
  380.                             {
  381.                                 "app_name" : "log",
  382.                                 "app_stamp" : NumberLong(1634026259225011),
  383.                                 "app_data" : "INFO sip-system passed vars: ClientId=5e4e36f51755e0b8c4b660b9; CampaignId=5e4e3a0f1755e0b8c4c91269; CallTaskId=61648009cbe63700084f8086; CallingSystemCallUuid=f9bd065d-fa31-43b5-bb3d-bf7cf21cee05; ScenarioResultTopic=scenario_result_sdk_v2_foreign-apps; ScenarioParametersApiHost=small-apps7-back; ScenarioParametersApiPort=8109"
  384.                             },
  385.                             {
  386.                                 "app_name" : "wait_for_answer",
  387.                                 "app_stamp" : NumberLong(1634026259225201),
  388.                                 "app_data" : ""
  389.                             },
  390.                             {
  391.                                 "app_name" : "sched_hangup",
  392.                                 "app_stamp" : NumberLong(1634026259225379),
  393.                                 "app_data" : "+600 CHANNEL_HANGUP_COMPLETE"
  394.                             },
  395.                             {
  396.                                 "app_name" : "set",
  397.                                 "app_stamp" : NumberLong(1634026259225585),
  398.                                 "app_data" : "RECORD_STEREO=true"
  399.                             },
  400.                             {
  401.                                 "app_name" : "record_session",
  402.                                 "app_stamp" : NumberLong(1634026259225789),
  403.                                 "app_data" : "/var/lib/freeswitch/recordings/5e4e36f51755e0b8c4b660b9/5e4e3a0f1755e0b8c4c91269/61648009cbe63700084f8086.wav"
  404.                             },
  405.                             {
  406.                                 "app_name" : "set",
  407.                                 "app_stamp" : NumberLong(1634026259236722),
  408.                                 "app_data" : "SleepTime=2000"
  409.                             },
  410.                             {
  411.                                 "app_name" : "sleep",
  412.                                 "app_stamp" : NumberLong(1634026259236962),
  413.                                 "app_data" : 2000
  414.                             },
  415.                             {
  416.                                 "app_name" : "set",
  417.                                 "app_stamp" : NumberLong(1634026261248043),
  418.                                 "app_data" : "SipServlet=sipservlet_ms10"
  419.                             },
  420.                             {
  421.                                 "app_name" : "set_audio_level",
  422.                                 "app_stamp" : NumberLong(1634026261248273),
  423.                                 "app_data" : "write 2"
  424.                             },
  425.                             {
  426.                                 "app_name" : "set",
  427.                                 "app_stamp" : NumberLong(1634026261248548),
  428.                                 "app_data" : "send_silence_when_idle=true"
  429.                             },
  430.                             {
  431.                                 "app_name" : "set",
  432.                                 "app_stamp" : NumberLong(1634026261248740),
  433.                                 "app_data" : "bridge_generate_comfort_noise=true"
  434.                             },
  435.                             {
  436.                                 "app_name" : "lua",
  437.                                 "app_stamp" : NumberLong(1634026261248944),
  438.                                 "app_data" : "lua/sdk/outgoing-release-2.9.0.lua"
  439.                             }
  440.                         ]
  441.                     },
  442.                     "switchname" : "freeswitch-ivoice",
  443.                     "callStats" : {
  444.                         "audio" : {
  445.                             "inbound" : {
  446.                                 "media_packet_count" : 2338,
  447.                                 "cng_packet_count" : 0,
  448.                                 "jitter_min_variance" : 0.39,
  449.                                 "skip_packet_count" : 133,
  450.                                 "mean_interval" : 20,
  451.                                 "dtmf_packet_count" : 26,
  452.                                 "jitter_loss_rate" : 0,
  453.                                 "jitter_burst_rate" : 0,
  454.                                 "flaw_total" : 5,
  455.                                 "quality_percentage" : 99,
  456.                                 "mos" : 4.49,
  457.                                 "largest_jb_size" : 0,
  458.                                 "packet_count" : 2364,
  459.                                 "jitter_max_variance" : 1.61,
  460.                                 "media_bytes" : 402136,
  461.                                 "jitter_packet_count" : 0,
  462.                                 "raw_bytes" : 402552,
  463.                                 "flush_packet_count" : 0
  464.                             },
  465.                             "outbound" : {
  466.                                 "media_packet_count" : 2364,
  467.                                 "cng_packet_count" : 0,
  468.                                 "skip_packet_count" : 0,
  469.                                 "dtmf_packet_count" : 0,
  470.                                 "rtcp_packet_count" : 0,
  471.                                 "packet_count" : 2364,
  472.                                 "media_bytes" : 406608,
  473.                                 "rtcp_octet_count" : 0,
  474.                                 "raw_bytes" : 406608
  475.                             },
  476.                             "error-log" : {
  477.                                 "error-period" : {
  478.                                     "consecutive-flaws" : 2,
  479.                                     "duration-msec" : 2999,
  480.                                     "stop" : NumberLong(1634026304017514),
  481.                                     "start" : NumberLong(1634026301017528),
  482.                                     "flaws" : 4
  483.                                 }
  484.                             }
  485.                         }
  486.                     }
  487.                 },
  488.                 "callUuid" : "f9bd065d-fa31-43b5-bb3d-bf7cf21cee05",
  489.                 "callTaskId" : "61648009cbe63700084f8086"
  490.             }
  491.         }
  492.     ],
  493.     "parameters" : {},
  494.     "nextAttemptTimestamp" : NumberLong(0),
  495.     "results" : {},
  496.     "ringingMillis" : NumberLong(0),
  497.     "talkMillis" : NumberLong(49380),
  498.     "reportParameters" : {},
  499.     "created" : NumberLong(1633976329),
  500.     "reported" : false,
  501.     "testing" : false,
  502.     "performedTimestamp" : NumberLong(1634026308),
  503.     "sumConsume" : 0.0,
  504.     "processingEvents" : [
  505.         {
  506.             "timestampSecUtc" : NumberLong(1634026253),
  507.             "dateTimeFormatted" : "12.10.21 08:10",
  508.             "author" : "calling-system",
  509.             "event" : "call initiated: OutgoingCall(uuid=f9bd065d-fa31-43b5-bb3d-bf7cf21cee05, request=RequestOutgoingCall(targetTopic=sip-system-originate-request-fsivoice-release-2-3, responseTopic=calling-system-orig-result-foreign-apps, scenarioResultTopic=scenario_result_sdk_v2_foreign-apps, scenarioParametersApiHost=small-apps7-back, scenarioParametersApiPort=8109, callUrl=sofia/gateway/cirp_npp/+77750527949 ext XML outgoing-release-2.9.0, createdUtcMs=1634026253009, callUuid=f9bd065d-fa31-43b5-bb3d-bf7cf21cee05, callTaskUuid=61648009cbe63700084f8086, client=5e4e36f51755e0b8c4b660b9, campaign=5e4e3a0f1755e0b8c4c91269, originateParameters={origination_caller_id_number=003}, sipSystemParameters=null, originateTimeoutSec=20, sipServletHost=sipservlet_ms10), originateResult=null, systemError=null, cdr=null, talkMillis=0, hangupByAmd=false, amdScenarioResult=null); transition to DIALING; message to kafka to call task is about to be sent"
  510.         },
  511.         {
  512.             "timestampSecUtc" : NumberLong(1634026259),
  513.             "dateTimeFormatted" : "12.10.21 08:10",
  514.             "author" : "tech.ivoice.calls.taskproc.service.CallOriginateResultService",
  515.             "event" : "CALL_ANSWERED",
  516.             "parameters" : {
  517.                 "comment" : "transit CT to ONGOING on call answered"
  518.             }
  519.         },
  520.         {
  521.             "timestampSecUtc" : NumberLong(1634026308),
  522.             "dateTimeFormatted" : "12.10.21 08:11",
  523.             "author" : "SCENARIO_RESULT",
  524.             "event" : "got scenario result"
  525.         },
  526.         {
  527.             "timestampSecUtc" : NumberLong(1634026308631),
  528.             "dateTimeFormatted" : "12.10.21 08:11",
  529.             "author" : "tech.ivoice.platform.ctservice.service.CdrService",
  530.             "event" : "CDR_RECEIVED",
  531.             "parameters" : {
  532.                 "nextState" : "PERFORMED",
  533.                 "talkMillis" : NumberLong(49380)
  534.             }
  535.         }
  536.     ],
  537.     "fullCost" : NumberLong(0),
  538.     "ivoiceCost" : NumberLong(0),
  539.     "vendorsCost" : NumberLong(0),
  540.     "fullBilling" : false,
  541.     "aggregated" : false,
  542.     "_class" : "tech.ivoice.common.model.calls.CallTask",
  543.     "scenarioResult" : {
  544.         "time" : ISODate("2021-10-12T08:11:48.553Z"),
  545.         "items" : [
  546.             {
  547.                 "time" : ISODate("2021-10-12T08:11:01.280Z"),
  548.                 "name" : "params",
  549.                 "value" : "npp_atameken_ru",
  550.                 "details" : {
  551.                     "sleepBeforeScenarioMs" : "2000",
  552.                     "driver" : "yandex",
  553.                     "phone" : "+77750527949",
  554.                     "campaignId" : "5e4e3a0f1755e0b8c4c91269",
  555.                     "callTaskId" : "61648009cbe63700084f8086",
  556.                     "solutionName" : "npp_atameken_ru",
  557.                     "locale" : "ru-RU",
  558.                     "scenarioId" : "5e4e37581755e0b8c4b8b3d1",
  559.                     "callUuid" : "f9bd065d-fa31-43b5-bb3d-bf7cf21cee05"
  560.                 }
  561.             },
  562.             {
  563.                 "time" : ISODate("2021-10-12T08:11:40.915Z"),
  564.                 "name" : "user's mark",
  565.                 "value" : "5",
  566.                 "details" : {}
  567.             },
  568.             {
  569.                 "time" : ISODate("2021-10-12T08:11:40.915Z"),
  570.                 "name" : "hangup",
  571.                 "value" : "solution",
  572.                 "details" : {}
  573.             }
  574.         ],
  575.         "log" : [
  576.             {
  577.                 "time" : ISODate("2021-10-12T08:11:01.281Z"),
  578.                 "text" : "start requesting option (2, 1, 4, 5, 3)",
  579.                 "context" : {
  580.                     "sid" : "106087d1-8c6e-44aa-881b-f3bb7f61ae55",
  581.                     "question" : "user's mark"
  582.                 }
  583.             },
  584.             {
  585.                 "time" : ISODate("2021-10-12T08:11:32.077Z"),
  586.                 "text" : "unknown option on speech complete",
  587.                 "context" : {
  588.                     "sid" : "106087d1-8c6e-44aa-881b-f3bb7f61ae55",
  589.                     "question" : "user's mark",
  590.                     "recognition" : [
  591.                         {
  592.                             "text" : "алло",
  593.                             "confidence" : 1.0
  594.                         }
  595.                     ]
  596.                 }
  597.             },
  598.             {
  599.                 "time" : ISODate("2021-10-12T08:11:32.077Z"),
  600.                 "text" : "retry requesting option (2, 1, 4, 5, 3)",
  601.                 "context" : {
  602.                     "sid" : "d0717376-3746-4fa4-8f84-c6655b3069e9",
  603.                     "question" : "user's mark"
  604.                 }
  605.             },
  606.             {
  607.                 "time" : ISODate("2021-10-12T08:11:40.914Z"),
  608.                 "text" : "recognise option(5) on dtmf(5)",
  609.                 "context" : {
  610.                     "sid" : "d0717376-3746-4fa4-8f84-c6655b3069e9",
  611.                     "question" : "user's mark"
  612.                 }
  613.             }
  614.         ],
  615.         "callId" : "f9bd065d-fa31-43b5-bb3d-bf7cf21cee05",
  616.         "taskId" : "61648009cbe63700084f8086",
  617.         "resourceSpentEvents" : [
  618.             {
  619.                 "amount" : {
  620.                     "SYNTHESIS_CHAR_COUNT" : NumberLong(0)
  621.                 },
  622.                 "properties" : {
  623.                     "TTS_SERVICE_KEY" : []
  624.                 }
  625.             },
  626.             {
  627.                 "vendor" : "YANDEX_ASR",
  628.                 "amount" : {
  629.                     "SPEECH_TIME" : NumberLong(14785),
  630.                     "SPEECH_CHAR_COUNT" : NumberLong(4),
  631.                     "SPEECH_DTMF_DIGIT_COUNT" : NumberLong(0),
  632.                     "SPEECH_DTMF_DIGIT_TIME" : NumberLong(14785)
  633.                 },
  634.                 "properties" : {
  635.                     "ASR_SERVICE_KEY" : [
  636.                         {
  637.                             "vendor" : "YANDEX_ASR",
  638.                             "vendorType" : "ASR",
  639.                             "service" : "MS10",
  640.                             "serviceKeyName" : "YANDEX_API_KEY_ID",
  641.                             "serviceKeyValue" : "ajer2q7css5ndopscoc6",
  642.                             "properties" : null
  643.                         }
  644.                     ]
  645.                 }
  646.             },
  647.             {
  648.                 "amount" : {
  649.                     "SYNTHESIS_CHAR_COUNT" : NumberLong(0)
  650.                 },
  651.                 "properties" : {
  652.                     "TTS_SERVICE_KEY" : []
  653.                 }
  654.             },
  655.             {
  656.                 "vendor" : "YANDEX_ASR",
  657.                 "amount" : {
  658.                     "SPEECH_TIME" : NumberLong(2829),
  659.                     "SPEECH_CHAR_COUNT" : NumberLong(0),
  660.                     "SPEECH_DTMF_DIGIT_COUNT" : NumberLong(1),
  661.                     "SPEECH_DTMF_DIGIT_TIME" : NumberLong(2829)
  662.                 },
  663.                 "properties" : {
  664.                     "ASR_SERVICE_KEY" : [
  665.                         {
  666.                             "vendor" : "YANDEX_ASR",
  667.                             "vendorType" : "ASR",
  668.                             "service" : "MS10",
  669.                             "serviceKeyName" : "YANDEX_API_KEY_ID",
  670.                             "serviceKeyValue" : "ajer2q7css5ndopscoc6",
  671.                             "properties" : null
  672.                         }
  673.                     ]
  674.                 }
  675.             },
  676.             {
  677.                 "amount" : {
  678.                     "SYNTHESIS_CHAR_COUNT" : NumberLong(0)
  679.                 },
  680.                 "properties" : {
  681.                     "TTS_SERVICE_KEY" : []
  682.                 }
  683.             }
  684.         ]
  685.     }
  686. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement