Freeswitch: Callcenter Custom QueueLog

QueueLog Table Postgres

CREATE TABLE queuelog (
    id                        serial PRIMARY KEY,
    cc_member_uuid            uuid NOT NULL,
    cc_agent_uuid             uuid,
    cc_queue_joined_epoch     INT NOT NULL,
    cc_queue_answered_epoch   INT,
    cc_queue_terminated_epoch INT,
    cc_queue_canceled_epoch   INT,
    cc_side                   VARCHAR NOT NULL,
    caller_id                 VARCHAR,
    cc_queue                  VARCHAR NOT NULL,
    cc_agent                  VARCHAR,
    waitsec                   INT NOT NULL,
    duration                  INT NOT NULL,
    billsec                   INT NOT NULL,
    cc_cause                  VARCHAR NOT NULL,
    cc_cancel_reason          VARCHAR,
    hangup_cause              VARCHAR NOT NULL,
    cc_agent_bridged          VARCHAR,
    sip_hangup_disposition    VARCHAR,
    cc_record_filename        VARCHAR
);

Install Json Lua Extensions

   apt install luarocks
   luarocks install json-lua

Lua Handler

JSON = require("JSON")
 
local dbh = freeswitch.Dbh("pgsql://host=127.0.0.1 dbname=DB user=USER password='PASS' options='-c client_min_messages=NOTICE' application_name='freeswitch'")
assert(dbh:connected()) 
 
dat = env:serialize("json")
local data = JSON:decode(dat)
local cols = "cc_member_uuid,cc_agent_uuid,cc_queue_joined_epoch,cc_queue_answered_epoch,cc_queue_terminated_epoch,cc_queue_canceled_epoch,cc_side,caller_id,cc_queue,cc_agent,waitsec,duration,billsec,cc_cause,cc_cancel_reason,hangup_cause,cc_agent_bridged,sip_hangup_disposition,cc_record_filename"
 
if data['cc_queue_answered_epoch'] == nil then data['cc_queue_answered_epoch'] = data['cc_queue_joined_epoch'] end
if data['cc_queue_canceled_epoch'] == nil then data['cc_queue_canceled_epoch'] = data['cc_queue_joined_epoch'] end
if data['cc_queue_terminated_epoch'] == nil then data['cc_queue_terminated_epoch'] = data['cc_queue_canceled_epoch'] end
if data['cc_agent_uuid'] == nil then data['cc_agent_uuid'] = data['cc_member_uuid'] end
 
local vals = string.format("'%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s'", 
	data.cc_member_uuid,
	data.cc_agent_uuid,
	data.cc_queue_joined_epoch,
	data.cc_queue_answered_epoch,
	data.cc_queue_terminated_epoch,
	data.cc_queue_canceled_epoch,
	data.cc_side,
	data.caller_id,
	data.cc_queue,
	data.cc_agent,
	data.waitsec,
	data.duration,
	data.billsec,
	data.cc_cause,
	data.cc_cancel_reason,
	data.hangup_cause,
	data.cc_agent_bridged,
	data.sip_hangup_disposition,
	data.cc_record_filename)
 
dbh:query("INSERT INTO queuelog ("..cols..") values ("..vals..")")
freeswitch.consoleLog("INFO","Queuelog: INSERT INTO queuelog ("..cols..") values ("..vals..")".."\n")
--res = os.execute("echo  " .. dat .. "  > /var/log/freeswitch/hangup_env.log")
-- end

Dialplan

<action application="set" data="api_hangup_hook=lua hangup_env.lua"/>
<action application="callcenter" data="testcc@default" />

Variables Access List

Нажмите, чтобы отобразить

Нажмите, чтобы скрыть

{
    direction:inbound,
    uuid:be767097-af93-47fa-92c7-f7df16452b58,
    session_id:387,
    sip_from_user:2666,
    sip_from_uri:2666@123.123.123.123,
    sip_from_host:123.123.123.123,
    video_media_flow:disabled,
    text_media_flow:disabled,
    channel_name:sofia/internal/2666@123.123.123.123,
    sip_local_network_addr:231.231.231.231,
    sip_network_ip:123.123.123.123,
    sip_network_port:5080,
    sip_invite_stamp:1556180423197037,
    sip_received_ip:123.123.123.123,
    sip_received_port:5080,
    sip_via_protocol:udp,
    sip_from_user_stripped:2666,
    sofia_profile_name:internal,
    sofia_profile_url:sip:mod_sofia@231.231.231.231:5070,
    recovery_profile_name:internal,
    sip_Remote-Party-ID:"CALLERIDNAME" < sip:2666@123.123.123.123> ;party= calling;screen= yes;privacy= off,
    sip_cid_type:rpid,
    sip_allow:INVITE,
    ACK,
    BYE,
    CANCEL,
    OPTIONS,
    MESSAGE,
    INFO,
    UPDATE,
    REGISTER,
    REFER,
    NOTIFY,
    sip_req_user:6000,
    sip_req_port:5070,
    sip_req_uri:6000@231.231.231.231:5070,
    sip_req_host:231.231.231.231,
    sip_to_user:6000,
    sip_to_port:5070,
    sip_to_uri:6000@231.231.231.231:5070,
    sip_to_host:231.231.231.231,
    sip_contact_params:transport= udp;gw= test229,
    sip_contact_user:gw+ test229,
    sip_contact_port:5080,
    sip_contact_uri:gw+ test229@123.123.123.123:5080,
    sip_contact_host:123.123.123.123,
    sip_user_agent:FreeSWITCH-mod_sofia/1.8.5-6-31281a0bf1~64bit,
    sip_via_host:123.123.123.123,
    sip_via_port:5080,
    sip_via_rport:5080,
    max_forwards:68,
    switch_r_sdp:v= 0o= FreeSWITCH15561572631556157264INIP4123.123.123.123s= FreeSWITCHc= INIP4123.123.123.123t= 00m= audio23160RTP/AVP8101a= rtpmap:8PCMA/8000a= rtpmap:101telephone-event/8000a= fmtp:1010-16a= ptime:20,
    ep_codec_string:CORE_PCM_MODULE.PCMA@8000h@20i@64000b,
    rtp_use_codec_string:PCMA,
    PCMU,
    OPUS,
    remote_audio_media_flow:sendrecv,
    audio_media_flow:sendrecv,
    rtp_audio_recv_pt:8,
    rtp_use_codec_name:PCMA,
    rtp_use_codec_rate:8000,
    rtp_use_codec_ptime:20,
    rtp_use_codec_channels:1,
    rtp_last_audio_codec_string:PCMA@8000h@20i@1c,
    read_codec:PCMA,
    original_read_codec:PCMA,
    read_rate:8000,
    original_read_rate:8000,
    write_codec:PCMA,
    write_rate:8000,
    dtmf_type:rfc2833,
    hangup_after_bridge:false,
    exec_after_bridge_app:info,
    api_hangup_hook:luahangup_env.lua,
    local_media_ip:231.231.231.231,
    local_media_port:26356,
    advertised_media_ip:231.231.231.231,
    rtp_use_pt:8,
    rtp_use_ssrc:2429043023,
    rtp_2833_send_payload:101,
    rtp_2833_recv_payload:101,
    remote_media_ip:123.123.123.123,
    remote_media_port:23160,
    rtp_local_sdp_str:v= 0o= FreeSWITCH15561540671556154069INIP4231.231.231.231s= FreeSWITCHc= INIP4231.231.231.231t= 00m= audio26356RTP/AVP8101a= rtpmap:8PCMA/8000a= rtpmap:101telephone-event/8000a= fmtp:1010-16a= ptime:20a= sendrecv,
    endpoint_disposition:ANSWER,
    cc_side:member,
    cc_member_uuid:f6de07a5-5a54-4fe5-bbaa-3fb13564ba23,
    cc_queue_joined_epoch:1556180423,
    cc_queue:testcc@default,
    sip_to_tag:DprQQSvXXc63g,
    sip_from_tag:rFZtggBaZNaND,
    sip_cseq:3536419,
    sip_call_id:d02dd792-e1d5-1237-17a6-005056ab4c5d,
    sip_full_via:SIP/2.0/UDP123.123.123.123:5080;rport= 5080;branch= z9hG4bK1Ht0DyUXQSHDK,
    sip_from_display:CALLERIDNAME,
    sip_full_from:"CALLERIDNAME" < sip:2666@123.123.123.123> ;tag= rFZtggBaZNaND,
    sip_full_to:< sip:6000@231.231.231.231:5070> ;tag= DprQQSvXXc63g,
    cc_record_filename:/var/spool/freeswitch/2019/04/25/11-20-41_6000_2666_be767097-af93-47fa-92c7-f7df16452b58.mp3,
    original_destination_number:6000,
    original_caller_id_name:CALLERIDNAME,
    original_caller_id_number:2666,
    transfer_history:[1556180441:2aef6785-58b2-4be5-9467-a80ba8b68588:uuid_br:c05db7f3-9f01-4403-adc3-8f6dce4c3db6],
    transfer_source:1556180441:2aef6785-58b2-4be5-9467-a80ba8b68588:uuid_br:c05db7f3-9f01-4403-adc3-8f6dce4c3db6,
    playback_last_offset_pos:143680,
    playback_seconds:18,
    playback_ms:18290,
    playback_samples:146320,
    cc_cause:answered,
    last_bridge_to:c05db7f3-9f01-4403-adc3-8f6dce4c3db6,
    bridge_channel:sofia/internal/6666@85.254.72.29:5060,
    bridge_uuid:c05db7f3-9f01-4403-adc3-8f6dce4c3db6,
    signal_bond:c05db7f3-9f01-4403-adc3-8f6dce4c3db6,
    cc_agent_bridged:true,
    cc_agent_uuid:c05db7f3-9f01-4403-adc3-8f6dce4c3db6,
    cc_agent:6666@default,
    cc_queue_answered_epoch:1556180441,
    last_sent_callee_id_name:OutboundCall,
    last_sent_callee_id_number:6666,
    sip_hangup_phrase:OK,
    last_bridge_hangup_cause:NORMAL_CLEARING,
    last_bridge_proto_specific_hangup_cause:sip:200,
    cc_queue_terminated_epoch:1556180459,
    bridge_hangup_cause:NORMAL_CLEARING,
    call_uuid:be767097-af93-47fa-92c7-f7df16452b58,
    current_application:info,
    record_file_size:32768,
    record_samples:142400,
    record_seconds:17,
    record_ms:17800,
    record_completion_cause:success-silence,
    hangup_cause:NORMAL_CLEARING,
    hangup_cause_q850:16,
    digits_dialed:none,
    start_stamp:2019-04-2511:20:23,
    profile_start_stamp:2019-04-2511:20:41,
    answer_stamp:2019-04-2511:20:23,
    bridge_stamp:2019-04-2511:20:41,
    progress_media_stamp:2019-04-2511:20:23,
    end_stamp:2019-04-2511:20:59,
    start_epoch:1556180423,
    start_uepoch:1556180423197037,
    profile_start_epoch:1556180441,
    profile_start_uepoch:1556180441357015,
    answer_epoch:1556180423,
    answer_uepoch:1556180423217015,
    bridge_epoch:1556180441,
    bridge_uepoch:1556180441397008,
    last_hold_epoch:0,
    last_hold_uepoch:0,
    hold_accum_seconds:0,
    hold_accum_usec:0,
    hold_accum_ms:0,
    resurrect_epoch:0,
    resurrect_uepoch:0,
    progress_epoch:0,
    progress_uepoch:0,
    progress_media_epoch:1556180423,
    progress_media_uepoch:1556180423217015,
    end_epoch:1556180459,
    end_uepoch:1556180459217015,
    last_app:info,
    caller_id:"CALLERIDNAME" < 2666> ,
    duration:36,
    billsec:36,
    progresssec:0,
    answersec:0,
    waitsec:18,
    progress_mediasec:0,
    flow_billsec:36,
    mduration:36020,
    billmsec:36000,
    progressmsec:0,
    answermsec:20,
    waitmsec:18200,
    progress_mediamsec:20,
    flow_billmsec:36020,
    uduration:36019978,
    billusec:36000000,
    progressusec:0,
    answerusec:19978,
    waitusec:18199971,
    progress_mediausec:19978,
    flow_billusec:36019978,
    sip_hangup_disposition:send_bye,
    rtp_audio_in_raw_bytes:307204,
    rtp_audio_in_media_bytes:307192,
    rtp_audio_in_packet_count:1789,
    rtp_audio_in_media_packet_count:1786,
    rtp_audio_in_skip_packet_count:6,
    rtp_audio_in_jitter_packet_count:0,
    rtp_audio_in_dtmf_packet_count:0,
    rtp_audio_in_cng_packet_count:0,
    rtp_audio_in_flush_packet_count:3,
    rtp_audio_in_largest_jb_size:0,
    rtp_audio_in_jitter_min_variance:57.14,
    rtp_audio_in_jitter_max_variance:142.56,
    rtp_audio_in_jitter_loss_rate:0.00,
    rtp_audio_in_jitter_burst_rate:0.00,
    rtp_audio_in_mean_interval:20.00,
    rtp_audio_in_flaw_total:0,
    rtp_audio_in_quality_percentage:100.00,
    rtp_audio_in_mos:4.50,
    rtp_audio_out_raw_bytes:304440,
    rtp_audio_out_media_bytes:304440,
    rtp_audio_out_packet_count:1770,
    rtp_audio_out_media_packet_count:1770,
    rtp_audio_out_skip_packet_count:0,
    rtp_audio_out_dtmf_packet_count:0,
    rtp_audio_out_cng_packet_count:0,
    rtp_audio_rtcp_packet_count:0,
    rtp_audio_rtcp_octet_count:0,
    Channel-State:CS_HANGUP,
    Channel-Call-State:HANGUP,
    Channel-State-Number:10,
    Channel-Name:sofia/internal/2666@123.123.123.123,
    Unique-ID:be767097-af93-47fa-92c7-f7df16452b58,
    Call-Direction:inbound,
    Presence-Call-Direction:inbound,
    Channel-HIT-Dialplan:true,
    Channel-Call-UUID:be767097-af93-47fa-92c7-f7df16452b58,
    Answer-State:hangup,
    Hangup-Cause:NORMAL_CLEARING,
    Channel-Read-Codec-Name:PCMA,
    Channel-Read-Codec-Rate:8000,
    Channel-Read-Codec-Bit-Rate:64000,
    Channel-Write-Codec-Name:PCMA,
    Channel-Write-Codec-Rate:8000,
    Channel-Write-Codec-Bit-Rate:64000,
    Caller-Direction:inbound,
    Caller-Logical-Direction:inbound,
    Caller-Username:2666,
    Caller-Dialplan:XML,
    Caller-Caller-ID-Name:CALLERIDNAME,
    Caller-Caller-ID-Number:2666,
    Caller-Orig-Caller-ID-Name:CALLERIDNAME,
    Caller-Orig-Caller-ID-Number:2666,
    Caller-Callee-ID-Name:OutboundCall,
    Caller-Callee-ID-Number:6666,
    Caller-Network-Addr:123.123.123.123,
    Caller-ANI:2666,
    Caller-Destination-Number:6000,
    Caller-Unique-ID:be767097-af93-47fa-92c7-f7df16452b58,
    Caller-Source:mod_sofia,
    Caller-Transfer-Source:1556180441:2aef6785-58b2-4be5-9467-a80ba8b68588:uuid_br:c05db7f3-9f01-4403-adc3-8f6dce4c3db6,
    Caller-Context:default,
    Caller-Channel-Name:sofia/internal/2666@123.123.123.123,
    Caller-Profile-Index:2,
    Caller-Profile-Created-Time:1556180441357015,
    Caller-Channel-Created-Time:1556180423197037,
    Caller-Channel-Answered-Time:1556180423217015,
    Caller-Channel-Progress-Time:0,
    Caller-Channel-Progress-Media-Time:1556180423217015,
    Caller-Channel-Hangup-Time:1556180459217015,
    Caller-Channel-Transfer-Time:0,
    Caller-Channel-Resurrect-Time:0,
    Caller-Channel-Bridged-Time:1556180441397008,
    Caller-Channel-Last-Hold:0,
    Caller-Channel-Hold-Accum:0,
    Caller-Screen-Bit:true,
    Caller-Privacy-Hide-Name:false,
    Caller-Privacy-Hide-Number:false,
    Other-Type:originatee,
    Other-Leg-Direction:outbound,
    Other-Leg-Logical-Direction:inbound,
    Other-Leg-Caller-ID-Name:CALLERIDNAME,
    Other-Leg-Caller-ID-Number:2666,
    Other-Leg-Orig-Caller-ID-Name:CALLERIDNAME,
    Other-Leg-Orig-Caller-ID-Number:2666,
    Other-Leg-Callee-ID-Name:OutboundCall,
    Other-Leg-Callee-ID-Number:6666,
    Other-Leg-Network-Addr:85.254.72.29,
    Other-Leg-ANI:2666,
    Other-Leg-Destination-Number:6666,
    Other-Leg-Unique-ID:c05db7f3-9f01-4403-adc3-8f6dce4c3db6,
    Other-Leg-Source:src/switch_ivr_originate.c,
    Other-Leg-Context:default,
    Other-Leg-Channel-Name:sofia/internal/6666@85.254.72.29:5060,
    Other-Leg-Profile-Created-Time:1556180441357015,
    Other-Leg-Channel-Created-Time:1556180423237010,
    Other-Leg-Channel-Answered-Time:1556180441337004,
    Other-Leg-Channel-Progress-Time:1556180423357025,
    Other-Leg-Channel-Progress-Media-Time:1556180441337004,
    Other-Leg-Channel-Hangup-Time:0,
    Other-Leg-Channel-Transfer-Time:0,
    Other-Leg-Channel-Resurrect-Time:0,
    Other-Leg-Channel-Bridged-Time:0,
    Other-Leg-Channel-Last-Hold:0,
    Other-Leg-Channel-Hold-Accum:0,
    Other-Leg-Screen-Bit:true,
    Other-Leg-Privacy-Hide-Name:false,
    Other-Leg-Privacy-Hide-Number:false,
    variable_direction:inbound,
    variable_uuid:be767097-af93-47fa-92c7-f7df16452b58,
    variable_session_id:387,
    variable_sip_from_user:2666,
    variable_sip_from_uri:2666@123.123.123.123,
    variable_sip_from_host:123.123.123.123,
    variable_video_media_flow:disabled,
    variable_text_media_flow:disabled,
    variable_channel_name:sofia/internal/2666@123.123.123.123,
    variable_sip_local_network_addr:231.231.231.231,
    variable_sip_network_ip:123.123.123.123,
    variable_sip_network_port:5080,
    variable_sip_invite_stamp:1556180423197037,
    variable_sip_received_ip:123.123.123.123,
    variable_sip_received_port:5080,
    variable_sip_via_protocol:udp,
    variable_sip_from_user_stripped:2666,
    variable_sofia_profile_name:internal,
    variable_sofia_profile_url:sip:mod_sofia@231.231.231.231:5070,
    variable_recovery_profile_name:internal,
    variable_sip_Remote-Party-ID:"CALLERIDNAME" < sip:2666@123.123.123.123> ;party= calling;screen= yes;privacy= off,
    variable_sip_cid_type:rpid,
    variable_sip_allow:INVITE,
    ACK,
    BYE,
    CANCEL,
    OPTIONS,
    MESSAGE,
    INFO,
    UPDATE,
    REGISTER,
    REFER,
    NOTIFY,
    variable_sip_req_user:6000,
    variable_sip_req_port:5070,
    variable_sip_req_uri:6000@231.231.231.231:5070,
    variable_sip_req_host:231.231.231.231,
    variable_sip_to_user:6000,
    variable_sip_to_port:5070,
    variable_sip_to_uri:6000@231.231.231.231:5070,
    variable_sip_to_host:231.231.231.231,
    variable_sip_contact_params:transport= udp;gw= test229,
    variable_sip_contact_user:gw+ test229,
    variable_sip_contact_port:5080,
    variable_sip_contact_uri:gw+ test229@123.123.123.123:5080,
    variable_sip_contact_host:123.123.123.123,
    variable_sip_user_agent:FreeSWITCH-mod_sofia/1.8.5-6-31281a0bf1~64bit,
    variable_sip_via_host:123.123.123.123,
    variable_sip_via_port:5080,
    variable_sip_via_rport:5080,
    variable_max_forwards:68,
    variable_switch_r_sdp:v= 0o= FreeSWITCH15561572631556157264INIP4123.123.123.123s= FreeSWITCHc= INIP4123.123.123.123t= 00m= audio23160RTP/AVP8101a= rtpmap:8PCMA/8000a= rtpmap:101telephone-event/8000a= fmtp:1010-16a= ptime:20,
    variable_ep_codec_string:CORE_PCM_MODULE.PCMA@8000h@20i@64000b,
    variable_rtp_use_codec_string:PCMA,
    PCMU,
    OPUS,
    variable_remote_audio_media_flow:sendrecv,
    variable_audio_media_flow:sendrecv,
    variable_rtp_audio_recv_pt:8,
    variable_rtp_use_codec_name:PCMA,
    variable_rtp_use_codec_rate:8000,
    variable_rtp_use_codec_ptime:20,
    variable_rtp_use_codec_channels:1,
    variable_rtp_last_audio_codec_string:PCMA@8000h@20i@1c,
    variable_read_codec:PCMA,
    variable_original_read_codec:PCMA,
    variable_read_rate:8000,
    variable_original_read_rate:8000,
    variable_write_codec:PCMA,
    variable_write_rate:8000,
    variable_dtmf_type:rfc2833,
    variable_hangup_after_bridge:false,
    variable_exec_after_bridge_app:info,
    variable_api_hangup_hook:luahangup_env.lua,
    variable_local_media_ip:231.231.231.231,
    variable_local_media_port:26356,
    variable_advertised_media_ip:231.231.231.231,
    variable_rtp_use_pt:8,
    variable_rtp_use_ssrc:2429043023,
    variable_rtp_2833_send_payload:101,
    variable_rtp_2833_recv_payload:101,
    variable_remote_media_ip:123.123.123.123,
    variable_remote_media_port:23160,
    variable_rtp_local_sdp_str:v= 0o= FreeSWITCH15561540671556154069INIP4231.231.231.231s= FreeSWITCHc= INIP4231.231.231.231t= 00m= audio26356RTP/AVP8101a= rtpmap:8PCMA/8000a= rtpmap:101telephone-event/8000a= fmtp:1010-16a= ptime:20a= sendrecv,
    variable_endpoint_disposition:ANSWER,
    variable_cc_side:member,
    variable_cc_member_uuid:f6de07a5-5a54-4fe5-bbaa-3fb13564ba23,
    variable_cc_queue_joined_epoch:1556180423,
    variable_cc_queue:testcc@default,
    variable_sip_to_tag:DprQQSvXXc63g,
    variable_sip_from_tag:rFZtggBaZNaND,
    variable_sip_cseq:3536419,
    variable_sip_call_id:d02dd792-e1d5-1237-17a6-005056ab4c5d,
    variable_sip_full_via:SIP/2.0/UDP123.123.123.123:5080;rport= 5080;branch= z9hG4bK1Ht0DyUXQSHDK,
    variable_sip_from_display:CALLERIDNAME,
    variable_sip_full_from:"CALLERIDNAME" < sip:2666@123.123.123.123> ;tag= rFZtggBaZNaND,
    variable_sip_full_to:< sip:6000@231.231.231.231:5070> ;tag= DprQQSvXXc63g,
    variable_cc_record_filename:/var/spool/freeswitch/2019/04/25/11-20-41_6000_2666_be767097-af93-47fa-92c7-f7df16452b58.mp3,
    variable_original_destination_number:6000,
    variable_original_caller_id_name:CALLERIDNAME,
    variable_original_caller_id_number:2666,
    variable_transfer_history:1556180441:2aef6785-58b2-4be5-9467-a80ba8b68588:uuid_br:c05db7f3-9f01-4403-adc3-8f6dce4c3db6,
    variable_transfer_source:1556180441:2aef6785-58b2-4be5-9467-a80ba8b68588:uuid_br:c05db7f3-9f01-4403-adc3-8f6dce4c3db6,
    variable_playback_last_offset_pos:143680,
    variable_playback_seconds:18,
    variable_playback_ms:18290,
    variable_playback_samples:146320,
    variable_cc_cause:answered,
    variable_last_bridge_to:c05db7f3-9f01-4403-adc3-8f6dce4c3db6,
    variable_bridge_channel:sofia/internal/6666@85.254.72.29:5060,
    variable_bridge_uuid:c05db7f3-9f01-4403-adc3-8f6dce4c3db6,
    variable_signal_bond:c05db7f3-9f01-4403-adc3-8f6dce4c3db6,
    variable_cc_agent_bridged:true,
    variable_cc_agent_uuid:c05db7f3-9f01-4403-adc3-8f6dce4c3db6,
    variable_cc_agent:6666@default,
    variable_cc_queue_answered_epoch:1556180441,
    variable_last_sent_callee_id_name:OutboundCall,
    variable_last_sent_callee_id_number:6666,
    variable_sip_hangup_phrase:OK,
    variable_last_bridge_hangup_cause:NORMAL_CLEARING,
    variable_last_bridge_proto_specific_hangup_cause:sip:200,
    variable_cc_queue_terminated_epoch:1556180459,
    variable_bridge_hangup_cause:NORMAL_CLEARING,
    variable_call_uuid:be767097-af93-47fa-92c7-f7df16452b58,
    variable_current_application:info,
    variable_record_file_size:32768,
    variable_record_samples:142400,
    variable_record_seconds:17,
    variable_record_ms:17800,
    variable_record_completion_cause:success-silence,
    variable_hangup_cause:NORMAL_CLEARING,
    variable_hangup_cause_q850:16,
    variable_digits_dialed:none,
    variable_start_stamp:2019-04-2511:20:23,
    variable_profile_start_stamp:2019-04-2511:20:41,
    variable_answer_stamp:2019-04-2511:20:23,
    variable_bridge_stamp:2019-04-2511:20:41,
    variable_progress_media_stamp:2019-04-2511:20:23,
    variable_end_stamp:2019-04-2511:20:59,
    variable_start_epoch:1556180423,
    variable_start_uepoch:1556180423197037,
    variable_profile_start_epoch:1556180441,
    variable_profile_start_uepoch:1556180441357015,
    variable_answer_epoch:1556180423,
    variable_answer_uepoch:1556180423217015,
    variable_bridge_epoch:1556180441,
    variable_bridge_uepoch:1556180441397008,
    variable_last_hold_epoch:0,
    variable_last_hold_uepoch:0,
    variable_hold_accum_seconds:0,
    variable_hold_accum_usec:0,
    variable_hold_accum_ms:0,
    variable_resurrect_epoch:0,
    variable_resurrect_uepoch:0,
    variable_progress_epoch:0,
    variable_progress_uepoch:0,
    variable_progress_media_epoch:1556180423,
    variable_progress_media_uepoch:1556180423217015,
    variable_end_epoch:1556180459,
    variable_end_uepoch:1556180459217015,
    variable_last_app:info,
    variable_caller_id:"CALLERIDNAME" < 2666> ,
    variable_duration:36,
    variable_billsec:36,
    variable_progresssec:0,
    variable_answersec:0,
    variable_waitsec:18,
    variable_progress_mediasec:0,
    variable_flow_billsec:36,
    variable_mduration:36020,
    variable_billmsec:36000,
    variable_progressmsec:0,
    variable_answermsec:20,
    variable_waitmsec:18200,
    variable_progress_mediamsec:20,
    variable_flow_billmsec:36020,
    variable_uduration:36019978,
    variable_billusec:36000000,
    variable_progressusec:0,
    variable_answerusec:19978,
    variable_waitusec:18199971,
    variable_progress_mediausec:19978,
    variable_flow_billusec:36019978,
    variable_sip_hangup_disposition:send_bye,
    variable_rtp_audio_in_raw_bytes:307204,
    variable_rtp_audio_in_media_bytes:307192,
    variable_rtp_audio_in_packet_count:1789,
    variable_rtp_audio_in_media_packet_count:1786,
    variable_rtp_audio_in_skip_packet_count:6,
    variable_rtp_audio_in_jitter_packet_count:0,
    variable_rtp_audio_in_dtmf_packet_count:0,
    variable_rtp_audio_in_cng_packet_count:0,
    variable_rtp_audio_in_flush_packet_count:3,
    variable_rtp_audio_in_largest_jb_size:0,
    variable_rtp_audio_in_jitter_min_variance:57.14,
    variable_rtp_audio_in_jitter_max_variance:142.56,
    variable_rtp_audio_in_jitter_loss_rate:0.00,
    variable_rtp_audio_in_jitter_burst_rate:0.00,
    variable_rtp_audio_in_mean_interval:20.00,
    variable_rtp_audio_in_flaw_total:0,
    variable_rtp_audio_in_quality_percentage:100.00,
    variable_rtp_audio_in_mos:4.50,
    variable_rtp_audio_out_raw_bytes:304440,
    variable_rtp_audio_out_media_bytes:304440,
    variable_rtp_audio_out_packet_count:1770,
    variable_rtp_audio_out_media_packet_count:1770,
    variable_rtp_audio_out_skip_packet_count:0,
    variable_rtp_audio_out_dtmf_packet_count:0,
    variable_rtp_audio_out_cng_packet_count:0,
    variable_rtp_audio_rtcp_packet_count:0,
    variable_rtp_audio_rtcp_octet_count:0,
    API-Command:lua,
    API-Command-Argument:hangup_env.lua}

  • freeswitch/mod/mod_callcenter/custom_queuelog.txt
  • Последние изменения: 2019/09/17