Advertisement
ScrappyCocoJamba

smitra

Apr 8th, 2020
290
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 32.24 KB | None | 0 0
  1. {
  2.     "_id" : ObjectId("5e8d5a556f04100007bb60bd"),
  3.     "phone" : "89039040732",
  4.     "campaign" : "5d226140370c8bf0da271d02",
  5.     "state" : "PERFORMED",
  6.     "lastCallRequestTimestamp" : NumberLong(1586322534837),
  7.     "callAnsweredTimestamp" : NumberLong(1586322554547),
  8.     "calls" : [],
  9.     "outgoingCalls" : [
  10.         {
  11.             "uuid" : "e513f7a6-c59e-4c75-9bc3-cb70d89fbeb6",
  12.             "request" : {
  13.                 "targetTopic" : "sip-system-originate-request-sa6tel-release-2-3",
  14.                 "responseTopic" : "calling-system-orig-result-app-smitra",
  15.                 "scenarioResultTopic" : "scenario_result_sdk_v2_app-smitra",
  16.                 "scenarioParametersApiHost" : "small-apps5-back",
  17.                 "scenarioParametersApiPort" : "8501",
  18.                 "callUrl" : "sofia/gateway/smitra/89039040732 ext XML outgoing-release-2-3-test",
  19.                 "createdUtcMs" : NumberLong(1586322534837),
  20.                 "callUuid" : "e513f7a6-c59e-4c75-9bc3-cb70d89fbeb6",
  21.                 "callTaskUuid" : "5e8d5a556f04100007bb60bd",
  22.                 "client" : "5d226086370c8bf0da25e3d6",
  23.                 "campaign" : "5d226140370c8bf0da271d02",
  24.                 "originateTimeoutSec" : 30
  25.             },
  26.             "originateResult" : {
  27.                 "timestamp" : NumberLong(1586322554547),
  28.                 "sipCode" : 200,
  29.                 "fullSipSystemResponse" : "+OK 8a88e565-6661-4035-8d11-f0a8449962e5",
  30.                 "callUuid" : "e513f7a6-c59e-4c75-9bc3-cb70d89fbeb6",
  31.                 "callTaskId" : "5e8d5a556f04100007bb60bd"
  32.             },
  33.             "cdr" : {
  34.                 "cdr" : {
  35.                     "variables" : {
  36.                         "write_codec" : "PCMA",
  37.                         "rtp_audio_in_mean_interval" : 20.05,
  38.                         "sip_reply_port" : 5060,
  39.                         "sip_to_host" : "109.202.22.145",
  40.                         "hold_accum_usec" : 0,
  41.                         "bridge_uuid" : "5a23735f-e999-4991-b5f9-14fd5f2138b3",
  42.                         "start_epoch" : 1586322534,
  43.                         "rtp_2833_send_payload" : 101,
  44.                         "original_read_rate" : 8000,
  45.                         "end_stamp" : "2020-04-08%2008%3A09%3A30",
  46.                         "profile_start_epoch" : 1586322554,
  47.                         "leg_timeout" : 30,
  48.                         "last_bridge_role" : "originator",
  49.                         "waitmsec" : 19900,
  50.                         "transfer_history" : "1586322554%3Ae23dc408-b906-4df5-bd44-5e84a603aafe%3Abl_xfer%3Aext/outgoing-release-2-3-test/XML",
  51.                         "sip_bye_h_X-Asterisk-HangupCauseCode" : 16,
  52.                         "CallingSystemCallUuid" : "e513f7a6-c59e-4c75-9bc3-cb70d89fbeb6",
  53.                         "current_application_data" : "lua/sdk/outgoing-release-2.3-test.lua",
  54.                         "rtp_audio_out_raw_bytes" : 135536,
  55.                         "progress_uepoch" : 0,
  56.                         "sofia_profile_url" : "sip%3Amod_sofia%4092.119.230.62%3A5060",
  57.                         "sip_term_cause" : 16,
  58.                         "progress_media_stamp" : "2020-04-08%2008%3A08%3A55",
  59.                         "ignore_early_media" : true,
  60.                         "rtp_use_codec_ptime" : 20,
  61.                         "waitusec" : 19899966,
  62.                         "sip_to_user" : NumberLong(89039040732),
  63.                         "record_file_size" : 505004,
  64.                         "rtp_last_audio_codec_string" : "PCMA%408000h%4020i%401c",
  65.                         "answersec" : 20,
  66.                         "rtp_audio_in_packet_count" : 875,
  67.                         "rtp_audio_in_jitter_packet_count" : 0,
  68.                         "rtp_audio_in_jitter_max_variance" : 4.76,
  69.                         "sip_full_to" : "%3Csip%3A89039040732%40109.202.22.145%3E%3Btag%3Das431a957a",
  70.                         "max_forwards" : 70,
  71.                         "last_arg" : "lua/sdk/outgoing-release-2.3-test.lua",
  72.                         "sip_network_ip" : "109.202.22.145",
  73.                         "sip_from_host" : "109.202.22.145",
  74.                         "end_uepoch" : NumberLong(1586322570510260),
  75.                         "rtp_audio_in_dtmf_packet_count" : 0,
  76.                         "rtp_use_codec_name" : "PCMA",
  77.                         "remote_media_port" : 19580,
  78.                         "answer_uepoch" : NumberLong(1586322554510316),
  79.                         "record_seconds" : 15,
  80.                         "start_uepoch" : NumberLong(1586322534830283),
  81.                         "last_sent_callee_id_number" : "outgoingSolution%3FtaskId%3D5e8d5a556f04100007bb60bd%26callUuid%3De513f7a6-c59e-4c75-9bc3-cb70d89fbeb6%26callTaskServiceHost%3Dsmall-apps5-back%26callTaskServicePort%3D8501%26scenarioResultTopic%3Dscenario_result_sdk_v2_app-smitra",
  82.                         "sip_network_port" : 5060,
  83.                         "waitsec" : 20,
  84.                         "flow_billsec" : 36,
  85.                         "sip_call_id" : "e2c2adf1-f3f9-1238-46bc-2ae0ee7661e9",
  86.                         "sip_full_from" : "%22%22%20%3Csip%3A499%40109.202.22.145%3E%3Btag%3DKrXgj2g8UB0cg",
  87.                         "pre_transfer_caller_id_number" : "0000000000",
  88.                         "progress_mediasec" : 1,
  89.                         "rtp_use_codec_channels" : 1,
  90.                         "sip_recover_contact" : "%3Csip%3A89039040732%40109.202.22.145%3A5060%3E",
  91.                         "rtp_local_sdp_str" : "v%3D0%0D%0Ao%3DFreeSWITCH%201586302446%201586302447%20IN%20IP4%2092.119.230.62%0D%0As%3DFreeSWITCH%0D%0Ac%3DIN%20IP4%2092.119.230.62%0D%0At%3D0%200%0D%0Am%3Daudio%2020088%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",
  92.                         "record_completion_cause" : "success-silence",
  93.                         "bridge_stamp" : "2020-04-08%2008%3A09%3A14",
  94.                         "sip_hangup_disposition" : "recv_bye",
  95.                         "answerusec" : 19680033,
  96.                         "sip_req_uri" : "89039040732%40109.202.22.145",
  97.                         "profile_start_uepoch" : NumberLong(1586322554530312),
  98.                         "read_rate" : 8000,
  99.                         "RECORD_STEREO" : true,
  100.                         "rtp_audio_in_raw_bytes" : 150500,
  101.                         "rtp_audio_in_skip_packet_count" : 7,
  102.                         "switch_r_sdp" : "v%3D0%0D%0Ao%3Droot%202116253469%202116253470%20IN%20IP4%20109.202.22.145%0D%0As%3DAsterisk%20PBX%2011.6-cert4%0D%0Ac%3DIN%20IP4%20109.202.22.145%0D%0At%3D0%200%0D%0Am%3Daudio%2019580%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%0A",
  103.                         "rtp_audio_rtcp_packet_count" : 0,
  104.                         "sip_recover_via" : "SIP/2.0/UDP%2092.119.230.62%3Bbranch%3Dz9hG4bKaZ4D6t0Dr9NDQ%3Breceived%3D92.119.230.62%3Brport%3D5060",
  105.                         "bridge_epoch" : 1586322554,
  106.                         "bridge_uepoch" : NumberLong(1586322554730249),
  107.                         "sip_user_agent" : "Avantelecom%20Cloud",
  108.                         "write_rate" : 8000,
  109.                         "rtp_audio_rtcp_octet_count" : 0,
  110.                         "sip_reply_host" : "109.202.22.145",
  111.                         "billusec" : 15999944,
  112.                         "answer_epoch" : 1586322554,
  113.                         "billmsec" : 16000,
  114.                         "call_uuid" : "8a88e565-6661-4035-8d11-f0a8449962e5",
  115.                         "rtp_audio_out_skip_packet_count" : 0,
  116.                         "sip_full_via" : "SIP/2.0/UDP%2092.119.230.62%3Bbranch%3Dz9hG4bKaZ4D6t0Dr9NDQ%3Breceived%3D92.119.230.62%3Brport%3D5060",
  117.                         "channel_name" : "sofia/external/89039040732",
  118.                         "rtp_audio_out_cng_packet_count" : 0,
  119.                         "record_samples" : 126240,
  120.                         "answer_stamp" : "2020-04-08%2008%3A09%3A14",
  121.                         "progress_epoch" : 0,
  122.                         "mduration" : 35680,
  123.                         "session_id" : 7370,
  124.                         "hold_accum_seconds" : 0,
  125.                         "record_ms" : 15780,
  126.                         "remote_media_ip" : "109.202.22.145",
  127.                         "sip_bye_h_X-Asterisk-HangupCause" : "Normal%20Clearing",
  128.                         "ep_codec_string" : "CORE_PCM_MODULE.PCMU%408000h%4020i%4064000b,CORE_PCM_MODULE.PCMA%408000h%4020i%4064000b",
  129.                         "last_hold_epoch" : 0,
  130.                         "progresssec" : 0,
  131.                         "rtp_use_pt" : 8,
  132.                         "rtp_audio_in_largest_jb_size" : 0,
  133.                         "sip_cseq" : 18607476,
  134.                         "current_application" : "lua",
  135.                         "rtp_audio_in_media_bytes" : 134676,
  136.                         "hangup_cause" : "NORMAL_CLEARING",
  137.                         "hangup_cause_q850" : 16,
  138.                         "resurrect_epoch" : 0,
  139.                         "transfer_source" : "1586322554%3Ae23dc408-b906-4df5-bd44-5e84a603aafe%3Abl_xfer%3Aext/outgoing-release-2-3-test/XML",
  140.                         "rtp_audio_in_cng_packet_count" : 0,
  141.                         "rtp_audio_in_flaw_total" : 2,
  142.                         "last_hold_uepoch" : 0,
  143.                         "uduration" : 35679977,
  144.                         "advertised_media_ip" : "92.119.230.62",
  145.                         "hangup_after_bridge" : false,
  146.                         "rtp_audio_in_quality_percentage" : 99,
  147.                         "rtp_use_codec_rate" : 8000,
  148.                         "ScenarioParametersApiPort" : 8501,
  149.                         "ScenarioResultTopic" : "scenario_result_sdk_v2_app-smitra",
  150.                         "hold_accum_ms" : 0,
  151.                         "uuid" : "8a88e565-6661-4035-8d11-f0a8449962e5",
  152.                         "sip_gateway_name" : "smitra",
  153.                         "rtp_audio_out_packet_count" : 788,
  154.                         "sip_destination_url" : "sip%3A89039040732%40109.202.22.145",
  155.                         "sip_to_uri" : "89039040732%40109.202.22.145",
  156.                         "read_codec" : "PCMA",
  157.                         "sip_contact_user" : NumberLong(89039040732),
  158.                         "start_stamp" : "2020-04-08%2008%3A08%3A54",
  159.                         "rtp_audio_recv_pt" : 8,
  160.                         "rtp_use_ssrc" : 1922693182,
  161.                         "Client" : "5d226086370c8bf0da25e3d6",
  162.                         "billsec" : 16,
  163.                         "progress_media_epoch" : 1586322535,
  164.                         "progress_media_uepoch" : NumberLong(1586322535030319),
  165.                         "rtp_use_codec_string" : "PCMU,PCMA",
  166.                         "progressmsec" : 0,
  167.                         "bridge_hangup_cause" : "NORMAL_CLEARING",
  168.                         "rtp_audio_out_dtmf_packet_count" : 0,
  169.                         "proto_specific_hangup_cause" : "sip%3A200",
  170.                         "rtp_audio_in_mos" : 4.49,
  171.                         "last_sent_callee_id_name" : "Outbound%20Call",
  172.                         "sip_local_network_addr" : "92.119.230.62",
  173.                         "rtp_audio_out_media_bytes" : 135536,
  174.                         "rtp_use_timer_name" : "soft",
  175.                         "Campaign" : "5d226140370c8bf0da271d02",
  176.                         "rtp_2833_recv_payload" : 101,
  177.                         "CallTaskId" : "5e8d5a556f04100007bb60bd",
  178.                         "text_media_flow" : "disabled",
  179.                         "end_epoch" : 1586322570,
  180.                         "profile_start_stamp" : "2020-04-08%2008%3A09%3A14",
  181.                         "caller_id" : "%22Outbound%20Call%22%20%3C89039040732%3E",
  182.                         "sip_term_status" : 200,
  183.                         "answermsec" : 19680,
  184.                         "sip_profile_name" : "gateway",
  185.                         "sofia_profile_name" : "external",
  186.                         "sip_from_tag" : "KrXgj2g8UB0cg",
  187.                         "progressusec" : 0,
  188.                         "rtp_audio_in_jitter_burst_rate" : 1,
  189.                         "resurrect_uepoch" : 0,
  190.                         "originate_early_media" : false,
  191.                         "last_bridge_to" : "5a23735f-e999-4991-b5f9-14fd5f2138b3",
  192.                         "recovery_profile_name" : "external",
  193.                         "progress_mediamsec" : 200,
  194.                         "sip_from_user" : 499,
  195.                         "sip_outgoing_contact_uri" : "%3Csip%3Agw%2Bsmitra%4092.119.230.62%3A5060%3Btransport%3Dudp%3Bgw%3Dsmitra%3E",
  196.                         "duration" : 36,
  197.                         "sip_contact_port" : 5060,
  198.                         "sip_contact_uri" : "89039040732%40109.202.22.145%3A5060",
  199.                         "local_media_port" : 20088,
  200.                         "flow_billmsec" : 35680,
  201.                         "remote_audio_media_flow" : "sendrecv",
  202.                         "bridge_channel" : "sofia/external/outgoingSolution%3FtaskId%3D5e8d5a556f04100007bb60bd%26callUuid%3De513f7a6-c59e-4c75-9bc3-cb70d89fbeb6%26callTaskServiceHost%3Dsmall-apps5-back%26callTaskServicePort%3D8501%26scenarioResultTopic%3Dscenario_result_sdk_v2_app-smitra",
  203.                         "audio_media_flow" : "sendrecv",
  204.                         "dtmf_type" : "rfc2833",
  205.                         "flow_billusec" : 35679977,
  206.                         "local_media_ip" : "92.119.230.62",
  207.                         "sip_allow" : "INVITE,%20ACK,%20CANCEL,%20OPTIONS,%20BYE,%20REFER,%20SUBSCRIBE,%20NOTIFY,%20INFO,%20PUBLISH",
  208.                         "rtp_audio_in_media_packet_count" : 783,
  209.                         "direction" : "outbound",
  210.                         "video_media_flow" : "disabled",
  211.                         "rtp_audio_in_jitter_loss_rate" : 0,
  212.                         "sip_to_tag" : "as431a957a",
  213.                         "rtp_audio_out_media_packet_count" : 788,
  214.                         "sip_from_uri" : "499%40109.202.22.145",
  215.                         "digits_dialed" : "none",
  216.                         "signal_bond" : "5a23735f-e999-4991-b5f9-14fd5f2138b3",
  217.                         "progress_mediausec" : 200036,
  218.                         "ScenarioParametersApiHost" : "small-apps5-back",
  219.                         "last_app" : "lua",
  220.                         "is_outbound" : true,
  221.                         "rtp_audio_in_jitter_min_variance" : 0.95,
  222.                         "hangup_complete_with_xml" : true,
  223.                         "endpoint_disposition" : "ANSWER",
  224.                         "original_read_codec" : "PCMA",
  225.                         "rtp_audio_in_flush_packet_count" : 92,
  226.                         "sip_contact_host" : "109.202.22.145"
  227.                     },
  228.                     "callflow" : [
  229.                         {
  230.                             "extension" : {
  231.                                 "number" : "ext",
  232.                                 "application" : [
  233.                                     {
  234.                                         "app_name" : "log",
  235.                                         "app_data" : "INFO sip-system passed vars: ClientId=${Client}; CampaignId=${Campaign}; CallTaskId=${CallTaskId}; CallingSystemCallUuid=${CallingSystemCallUuid}; ScenarioResultTopic=${ScenarioResultTopic}; ScenarioParametersApiHost=${ScenarioParametersApiHost}; ScenarioParametersApiPort=${ScenarioParametersApiPort}"
  236.                                     },
  237.                                     {
  238.                                         "app_name" : "wait_for_answer",
  239.                                         "app_data" : ""
  240.                                     },
  241.                                     {
  242.                                         "app_name" : "sched_hangup",
  243.                                         "app_data" : "+600 CHANNEL_HANGUP_COMPLETE"
  244.                                     },
  245.                                     {
  246.                                         "app_name" : "set",
  247.                                         "app_data" : "RECORD_STEREO=true"
  248.                                     },
  249.                                     {
  250.                                         "app_name" : "record_session",
  251.                                         "app_data" : "/var/lib/freeswitch/recordings/${Client}/${Campaign}/${CallTaskId}.wav"
  252.                                     },
  253.                                     {
  254.                                         "app_name" : "sleep",
  255.                                         "app_data" : 0
  256.                                     },
  257.                                     {
  258.                                         "app_name" : "set",
  259.                                         "app_data" : "hangup_after_bridge=false"
  260.                                     },
  261.                                     {
  262.                                         "app_name" : "lua",
  263.                                         "app_data" : "lua/sdk/outgoing-release-2.3-test.lua"
  264.                                     }
  265.                                 ],
  266.                                 "name" : "ext"
  267.                             },
  268.                             "times" : {
  269.                                 "progress_time" : 0,
  270.                                 "created_time" : NumberLong(1586322534830283),
  271.                                 "hold_accum_time" : 0,
  272.                                 "resurrect_time" : 0,
  273.                                 "answered_time" : NumberLong(1586322554510316),
  274.                                 "transfer_time" : 0,
  275.                                 "bridged_time" : NumberLong(1586322554730249),
  276.                                 "hangup_time" : NumberLong(1586322570510260),
  277.                                 "progress_media_time" : NumberLong(1586322535030319),
  278.                                 "profile_created_time" : NumberLong(1586322554530312),
  279.                                 "last_hold_time" : 0
  280.                             },
  281.                             "profile_index" : 2,
  282.                             "dialplan" : "XML",
  283.                             "clone-of" : "8cfbf2a9-a8c7-4249-9e6c-fbf0dfc2bccf",
  284.                             "caller_profile" : {
  285.                                 "caller_id_name" : "Outbound Call",
  286.                                 "transfer_source" : "1586322554:e23dc408-b906-4df5-bd44-5e84a603aafe:bl_xfer:ext/outgoing-release-2-3-test/XML",
  287.                                 "destination_number" : "ext",
  288.                                 "device_id" : "",
  289.                                 "chan_name" : "sofia/external/89039040732",
  290.                                 "dialplan" : "XML",
  291.                                 "callee_id_number" : "outgoingSolution?taskId=5e8d5a556f04100007bb60bd&callUuid=e513f7a6-c59e-4c75-9bc3-cb70d89fbeb6&callTaskServiceHost=small-apps5-back&callTaskServicePort=8501&scenarioResultTopic=scenario_result_sdk_v2_app-smitra",
  292.                                 "source" : "src/switch_ivr_originate.c",
  293.                                 "network_addr" : "109.202.22.145",
  294.                                 "uuid" : "8a88e565-6661-4035-8d11-f0a8449962e5",
  295.                                 "callee_id_name" : "Outbound Call",
  296.                                 "rdnis" : NumberLong(89039040732),
  297.                                 "aniii" : "",
  298.                                 "context" : "outgoing-release-2-3-test",
  299.                                 "caller_id_number" : NumberLong(89039040732),
  300.                                 "ani" : "0000000000",
  301.                                 "username" : ""
  302.                             },
  303.                             "unique-id" : "e23dc408-b906-4df5-bd44-5e84a603aafe"
  304.                         },
  305.                         {
  306.                             "times" : {
  307.                                 "progress_time" : 0,
  308.                                 "created_time" : NumberLong(1586322534830283),
  309.                                 "hold_accum_time" : 0,
  310.                                 "resurrect_time" : 0,
  311.                                 "answered_time" : NumberLong(1586322554510316),
  312.                                 "transfer_time" : NumberLong(1586322554530312),
  313.                                 "bridged_time" : 0,
  314.                                 "hangup_time" : 0,
  315.                                 "progress_media_time" : NumberLong(1586322535030319),
  316.                                 "profile_created_time" : NumberLong(1586322534830283),
  317.                                 "last_hold_time" : 0
  318.                             },
  319.                             "profile_index" : 1,
  320.                             "clone-of" : "b5e297e1-1593-4c0c-98c4-20fbf9ee498a",
  321.                             "caller_profile" : {
  322.                                 "caller_id_name" : "",
  323.                                 "destination_number" : NumberLong(89039040732),
  324.                                 "device_id" : "",
  325.                                 "chan_name" : "sofia/external/89039040732",
  326.                                 "dialplan" : "",
  327.                                 "callee_id_number" : NumberLong(89039040732),
  328.                                 "source" : "src/switch_ivr_originate.c",
  329.                                 "network_addr" : "109.202.22.145",
  330.                                 "uuid" : "8a88e565-6661-4035-8d11-f0a8449962e5",
  331.                                 "callee_id_name" : "Outbound Call",
  332.                                 "rdnis" : "",
  333.                                 "aniii" : "",
  334.                                 "context" : "default",
  335.                                 "caller_id_number" : "0000000000",
  336.                                 "ani" : "0000000000",
  337.                                 "username" : ""
  338.                             },
  339.                             "unique-id" : "8cfbf2a9-a8c7-4249-9e6c-fbf0dfc2bccf"
  340.                         }
  341.                     ],
  342.                     "core-uuid" : "567c122b-69d7-4e07-8128-0056d2933193",
  343.                     "channel_data" : {
  344.                         "state_number" : 11,
  345.                         "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;107=1;113=1;114=1;123=1;160=1;165=1;166=1",
  346.                         "state" : "CS_REPORTING",
  347.                         "direction" : "outbound",
  348.                         "caps" : "1=1;2=1;3=1;4=1;5=1;6=1;8=1;9=1"
  349.                     },
  350.                     "app_log" : {
  351.                         "application" : [
  352.                             {
  353.                                 "app_name" : "log",
  354.                                 "app_stamp" : NumberLong(1586322554537586),
  355.                                 "app_data" : "INFO sip-system passed vars: ClientId=5d226086370c8bf0da25e3d6; CampaignId=5d226140370c8bf0da271d02; CallTaskId=5e8d5a556f04100007bb60bd; CallingSystemCallUuid=e513f7a6-c59e-4c75-9bc3-cb70d89fbeb6; ScenarioResultTopic=scenario_result_sdk_v2_app-smitra; ScenarioParametersApiHost=small-apps5-back; ScenarioParametersApiPort=8501"
  356.                             },
  357.                             {
  358.                                 "app_name" : "wait_for_answer",
  359.                                 "app_stamp" : NumberLong(1586322554537846),
  360.                                 "app_data" : ""
  361.                             },
  362.                             {
  363.                                 "app_name" : "sched_hangup",
  364.                                 "app_stamp" : NumberLong(1586322554538099),
  365.                                 "app_data" : "+600 CHANNEL_HANGUP_COMPLETE"
  366.                             },
  367.                             {
  368.                                 "app_name" : "set",
  369.                                 "app_stamp" : NumberLong(1586322554538355),
  370.                                 "app_data" : "RECORD_STEREO=true"
  371.                             },
  372.                             {
  373.                                 "app_name" : "record_session",
  374.                                 "app_stamp" : NumberLong(1586322554538585),
  375.                                 "app_data" : "/var/lib/freeswitch/recordings/5d226086370c8bf0da25e3d6/5d226140370c8bf0da271d02/5e8d5a556f04100007bb60bd.wav"
  376.                             },
  377.                             {
  378.                                 "app_name" : "sleep",
  379.                                 "app_stamp" : NumberLong(1586322554553779),
  380.                                 "app_data" : 0
  381.                             },
  382.                             {
  383.                                 "app_name" : "set",
  384.                                 "app_stamp" : NumberLong(1586322554553997),
  385.                                 "app_data" : "hangup_after_bridge=false"
  386.                             },
  387.                             {
  388.                                 "app_name" : "lua",
  389.                                 "app_stamp" : NumberLong(1586322554554218),
  390.                                 "app_data" : "lua/sdk/outgoing-release-2.3-test.lua"
  391.                             }
  392.                         ]
  393.                     },
  394.                     "switchname" : "small-apps6-tel",
  395.                     "call-stats" : {
  396.                         "audio" : {
  397.                             "inbound" : {
  398.                                 "media_packet_count" : 783,
  399.                                 "cng_packet_count" : 0,
  400.                                 "jitter_min_variance" : 0.95,
  401.                                 "skip_packet_count" : 7,
  402.                                 "mean_interval" : 20.05,
  403.                                 "dtmf_packet_count" : 0,
  404.                                 "jitter_loss_rate" : 0,
  405.                                 "jitter_burst_rate" : 1,
  406.                                 "flaw_total" : 2,
  407.                                 "quality_percentage" : 99,
  408.                                 "mos" : 4.49,
  409.                                 "largest_jb_size" : 0,
  410.                                 "packet_count" : 875,
  411.                                 "jitter_max_variance" : 4.76,
  412.                                 "media_bytes" : 134676,
  413.                                 "jitter_packet_count" : 0,
  414.                                 "raw_bytes" : 150500,
  415.                                 "flush_packet_count" : 92
  416.                             },
  417.                             "outbound" : {
  418.                                 "media_packet_count" : 788,
  419.                                 "cng_packet_count" : 0,
  420.                                 "skip_packet_count" : 0,
  421.                                 "dtmf_packet_count" : 0,
  422.                                 "rtcp_packet_count" : 0,
  423.                                 "packet_count" : 788,
  424.                                 "media_bytes" : 135536,
  425.                                 "rtcp_octet_count" : 0,
  426.                                 "raw_bytes" : 135536
  427.                             },
  428.                             "error-log" : {
  429.                                 "error-period" : [
  430.                                     {
  431.                                         "consecutive-flaws" : 0,
  432.                                         "duration-msec" : 3020,
  433.                                         "stop" : NumberLong(1586322566450293),
  434.                                         "start" : NumberLong(1586322563430274),
  435.                                         "flaws" : 0
  436.                                     },
  437.                                     {
  438.                                         "consecutive-flaws" : 0,
  439.                                         "duration-msec" : 3019,
  440.                                         "stop" : NumberLong(1586322559650253),
  441.                                         "start" : NumberLong(1586322556630256),
  442.                                         "flaws" : 1
  443.                                     }
  444.                                 ]
  445.                             }
  446.                         }
  447.                     }
  448.                 },
  449.                 "callUuid" : "e513f7a6-c59e-4c75-9bc3-cb70d89fbeb6",
  450.                 "callTaskId" : "5e8d5a556f04100007bb60bd"
  451.             }
  452.         }
  453.     ],
  454.     "parameters" : {
  455.         "DATE" : "на девятое апреля",
  456.         "ADDRESS" : "Коммунистическая 48А",
  457.         "TIME" : "18:00",
  458.         "REDIRECT_INFO" : "OB3! Ц 18:00 Koвaлeвa H.B. koлonpo",
  459.         "ADULT" : "true",
  460.         "NAME" : "Наталья Владимировна"
  461.     },
  462.     "nextAttemptTimestamp" : NumberLong(0),
  463.     "results" : {},
  464.     "ringingMillis" : NumberLong(0),
  465.     "talkMillis" : NumberLong(15806),
  466.     "reportParameters" : {},
  467.     "created" : NumberLong(1586322005),
  468.     "reported" : false,
  469.     "testing" : false,
  470.     "performedTimestamp" : NumberLong(1586322570),
  471.     "sumConsume" : 0.0,
  472.     "processingEvents" : [
  473.         {
  474.             "timestampSecUtc" : NumberLong(1586322534),
  475.             "dateTimeFormatted" : "08.04.20 05:08",
  476.             "author" : "calling-system",
  477.             "event" : "call initiated: OutgoingCall(uuid=e513f7a6-c59e-4c75-9bc3-cb70d89fbeb6, request=RequestOutgoingCall(targetTopic=sip-system-originate-request-sa6tel-release-2-3, responseTopic=calling-system-orig-result-app-smitra, scenarioResultTopic=scenario_result_sdk_v2_app-smitra, scenarioParametersApiHost=small-apps5-back, scenarioParametersApiPort=8501, callUrl=sofia/gateway/smitra/89039040732 ext XML outgoing-release-2-3-test, createdUtcMs=1586322534837, callUuid=e513f7a6-c59e-4c75-9bc3-cb70d89fbeb6, callTaskUuid=5e8d5a556f04100007bb60bd, client=5d226086370c8bf0da25e3d6, campaign=5d226140370c8bf0da271d02, originateParameters=null, originateTimeoutSec=30), originateResult=null, systemError=null, cdr=null); message to kafka to call task is about to be sent"
  478.         },
  479.         {
  480.             "timestampSecUtc" : NumberLong(1586322554),
  481.             "dateTimeFormatted" : "08.04.20 05:09",
  482.             "author" : "tech.ivoice.calls.taskproc.service.CallOriginateResultService",
  483.             "event" : "transition to ONGOING on call answered"
  484.         },
  485.         {
  486.             "timestampSecUtc" : NumberLong(1586322570580),
  487.             "dateTimeFormatted" : "08.04.20 05:09",
  488.             "author" : "tech.ivoice.platform.ctservice.service.CdrService",
  489.             "event" : "CDR_RECEIVED",
  490.             "parameters" : {
  491.                 "nextState" : "PERFORMED",
  492.                 "talkMillis" : NumberLong(16000)
  493.             }
  494.         }
  495.     ],
  496.     "fullCost" : NumberLong(0),
  497.     "fullBilling" : false,
  498.     "_class" : "tech.ivoice.common.model.calls.CallTask",
  499.     "scenarioResult" : {
  500.         "time" : ISODate("2020-04-08T05:09:30.541Z"),
  501.         "items" : [
  502.             {
  503.                 "time" : ISODate("2020-04-08T05:09:14.735Z"),
  504.                 "name" : "params",
  505.                 "value" : "smitra_scenario",
  506.                 "details" : {
  507.                     "sleepBeforeScenarioMs" : "0",
  508.                     "campaignId" : "5d226140370c8bf0da271d02",
  509.                     "callTaskId" : "5e8d5a556f04100007bb60bd",
  510.                     "solutionName" : "smitra_scenario",
  511.                     "TIME" : "18:00",
  512.                     "REDIRECT_INFO" : "OB3! Ц 18:00 Koвaлeвa H.B. koлonpo",
  513.                     "ADULT" : "true",
  514.                     "callUuid" : "e513f7a6-c59e-4c75-9bc3-cb70d89fbeb6",
  515.                     "NAME" : "Наталья Владимировна",
  516.                     "DATE" : "на девятое апреля",
  517.                     "phone" : "89039040732",
  518.                     "ADDRESS" : "Коммунистическая 48А",
  519.                     "scenarioId" : "5d2260ca370c8bf0da26563c"
  520.                 }
  521.             },
  522.             {
  523.                 "time" : ISODate("2020-04-08T05:09:30.541Z"),
  524.                 "name" : "hangup",
  525.                 "value" : "user",
  526.                 "details" : {}
  527.             }
  528.         ],
  529.         "log" : [
  530.             {
  531.                 "time" : ISODate("2020-04-08T05:09:14.740Z"),
  532.                 "text" : "start requesting option (no, yes)",
  533.                 "context" : {
  534.                     "sid" : "de1b5934-cef5-40aa-9392-64fb56941ef7",
  535.                     "question" : "вы придёте"
  536.                 }
  537.             }
  538.         ],
  539.         "callId" : "e513f7a6-c59e-4c75-9bc3-cb70d89fbeb6",
  540.         "taskId" : "5e8d5a556f04100007bb60bd",
  541.         "resourceSpentEvents" : [
  542.             {
  543.                 "vendor" : "YANDEX_TTS",
  544.                 "amount" : {
  545.                     "SYNTHESIS_CHAR_COUNT" : NumberLong(20)
  546.                 }
  547.             }
  548.         ]
  549.     }
  550. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement