Freeswitch中CHANNEL_UNHOLD取回事件

1. CHANNEL_UNHOLD取回事件

  • fs事件

2023-11-15T09:18:45.374+0800 INFO  c.e.c.v.s.c.i.FsServerEventHandler - eventReceived:CHANNEL_UNHOLD
2023-11-15T09:18:45.374+0800 INFO  c.e.c.v.s.c.i.FsServerEventHandler - EventBody********:{variable_effective_caller_id_number=1000, =, variable_sip_network_ip=192.168.5.162, variable_sip_allow=INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFO, Other-Leg-Unique-ID=60599c38-8e93-4f7a-8106-90d56b599d1c, variable_user_context=default, variable_rtp_use_ssrc=1365308395, Caller-Channel-Progress-Media-Time=1700068708502874, Caller-Dialplan=XML, variable_sip_reply_port=9026, variable_originate_disposition=SUCCESS, variable_sip_cseq=75466148, Channel-State-Number=4, variable_uuid=b9ca8ea4-e1c3-49bc-b2d4-7ac2363d25b6, variable_remote_media_ip=192.168.5.162, variable_call_uuid=b9ca8ea4-e1c3-49bc-b2d4-7ac2363d25b6, Other-Leg-Destination-Number=1001, Caller-RDNIS=1000, variable_outbound_caller_id_name=10086, Caller-Profile-Created-Time=1700068707862861, Other-Leg-Privacy-Hide-Name=false, variable_rtp_use_pt=0, variable_dialed_user=1001, Caller-Screen-Bit=true, Caller-Logical-Direction=outbound, variable_last_sent_callee_id_number=1001, variable_hangup_after_bridge=false, variable_sip_profile_name=internal, variable_write_rate=8000, Other-Leg-Channel-Bridged-Time=0, variable_sofia_profile_url=sip:mod_sofia@192.168.5.97:5060, Caller-Channel-Progress-Time=1700068706862849, variable_sip_from_tag=tX4t617e9SpQD, variable_sofia_profile_name=internal, variable_text_media_flow=disabled, variable_sip_contact_uri=1000@192.168.5.162:9026, variable_recording_file=/data/RDPx64/webapps/fs_recordings/b9ca8ea4-e1c3-49bc-b2d4-7ac2363d25b6_2023-11-16-01-18-27_1001_1000.wav, Other-Leg-Dialplan=XML, Other-Leg-Network-Addr=192.168.5.162, variable_originated_legs=ARRAY::60599c38-8e93-4f7a-8106-90d56b599d1c;Outbound Call;1001|:60599c38-8e93-4f7a-8106-90d56b599d1c;Outbound Call;1001, Caller-Network-Addr=192.168.5.162, variable_rtp_use_codec_name=PCMU, variable_originate_early_media=true, variable_sip_contact_port=9026, variable_DP_MATCH=ARRAY::1001|:1001, variable_sip_user_agent=Genesyslab.Sip.Endpoint 8.0.0.10 L-PSDK-Q-SIP-8-0.us.int.genesyslab.com-083010-021849   Genesyslab.Sip.Endpoint.Provider.CP 8.0.0.10 L-PSDK-Q-SIP-8-0.us.int.genesyslab.com-083010-021849, variable_sip_contact_host=192.168.5.162, variable_ringback=%(2000,4000,440,480), variable_bridge_to=60599c38-8e93-4f7a-8106-90d56b599d1c, variable_write_codec=PCMU, variable_ep_codec_string=CORE_PCM_MODULE.PCMU@8000h@20i@64000b, variable_sip_to_host=192.168.5.162, variable_remote_media_port=54826, Channel-Read-Codec-Name=PCMU, Channel-Presence-ID=1000@192.168.5.97, variable_audio_media_flow=sendrecv, Channel-HIT-Dialplan=true, Caller-Channel-Last-Hold=1700039922056792, variable_session_id=148, variable_bridge_uuid=60599c38-8e93-4f7a-8106-90d56b599d1c, variable_sip_to_user=1000, variable_sip_recover_via=SIP/2.0/UDP 192.168.5.97;rport=5060;branch=z9hG4bK9jX0m66Sr6Utc, variable_sip_full_to=<sip:1000@192.168.5.162:9026;rinstance=3b9864b811c7c14d;transport=udp>;tag=0ec5d098, Other-Leg-Privacy-Hide-Number=false, variable_recovery_profile_name=internal, Channel-Write-Codec-Rate=8000, Other-Leg-Source=src/switch_ivr_originate.c, variable_rtp_last_audio_codec_string=PCMU@8000h@20i@1c, variable_direction=outbound, variable_rtp_use_codec_channels=1, Event-Name=CHANNEL_UNHOLD, variable_accountcode=1000, variable_sip_network_port=9026, variable_sip_contact_user=1000, variable_rtp_use_codec_rate=8000, variable_channel_name=sofia/internal/1000@192.168.5.162:9026, variable_remote_audio_media_flow=recvonly, variable_presence_id=1000@192.168.5.97, variable_advertised_media_ip=192.168.5.97, variable_bridge_channel=sofia/internal/1001@192.168.5.162:44836, Answer-State=answered, Channel-Write-Codec-Name=PCMU, Other-Leg-Screen-Bit=true, Caller-Channel-Resurrect-Time=0, variable_effective_caller_id_name=Extension 1000, Other-Leg-Channel-Resurrect-Time=0, Caller-Orig-Caller-ID-Number=0000000000, variable_sip_full_via=SIP/2.0/UDP 192.168.5.97;rport=5060;branch=z9hG4bK9jX0m66Sr6Utc, variable_dialed_extension=1001, variable_sip_outgoing_contact_uri=<sip:mod_sofia@192.168.5.97:5060>, Caller-Channel-Transfer-Time=0, variable_sip_contact_params=rinstance=3b9864b811c7c14d;transport=udp, Caller-Channel-Created-Time=1700068706602835, Other-Leg-Context=default, variable_dtmf_type=rfc2833, variable_export_vars=dialed_extension, variable_original_read_rate=8000, variable_rtp_audio_recv_pt=0, Other-Leg-Callee-ID-Number=1001, variable_sip_full_from=<sip:0000000000@192.168.5.97>;tag=tX4t617e9SpQD, variable_local_media_port=21556, Core-UUID=9674935c-bf3e-4391-941f-4108d7b0f6e6, variable_pre_transfer_caller_id_number=0000000000, Other-Leg-Caller-ID-Name=Extension 1000, variable_rtp_2833_recv_payload=101, variable_originate_causes=ARRAY::60599c38-8e93-4f7a-8106-90d56b599d1c;NONE|:60599c38-8e93-4f7a-8106-90d56b599d1c;NONE, variable_RECORD_STEREO=true, FreeSWITCH-Hostname=gcxi, variable_default_gateway=example.com, FreeSWITCH-IPv6=::1, variable_switch_m_sdp=v=0
o=- 7 2 IN IP4 192.168.5.162
s=CounterPath eyeBeam 1.5
c=IN IP4 192.168.5.162
t=0 0
m=audio 60650 RTP/AVP 0 101
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=x-rtp-session-id:11A0311EAA4F4542815AFBEDBE1DD9E0
, FreeSWITCH-IPv4=192.168.5.97, Caller-Destination-Number=1001, Caller-Channel-Answered-Time=1700068707862861, Other-Leg-Logical-Direction=inbound, Caller-Callee-ID-Name=Outbound Call, variable_transfer_ringback=local_stream://moh, Event-Date-Timestamp=1700068772102844, variable_current_application_data=user/1001@192.168.5.97, Channel-Read-Codec-Rate=8000, variable_sip_to_params=rinstance=3b9864b811c7c14d;transport=udp, variable_read_rate=8000, Presence-Call-Direction=outbound, Unique-ID=b9ca8ea4-e1c3-49bc-b2d4-7ac2363d25b6, variable_local_video_ip=192.168.5.97, Other-Type=originatee, Channel-Call-State=UNHELD, Other-Leg-RDNIS=1000, Event-Calling-File=switch_ivr.c, variable_dialed_domain=192.168.5.97, Other-Leg-Profile-Created-Time=1700068707882834, variable_rtp_use_timer_name=soft, Channel-Write-Codec-Bit-Rate=64000, variable_current_application=bridge, Caller-Channel-Hold-Accum=38823145, Other-Leg-Channel-Created-Time=1700068707882834, FreeSWITCH-Switchname=freeswitch01, Caller-Privacy-Hide-Number=false, variable_default_areacode=86, Other-Leg-Channel-Transfer-Time=0, variable_transfer_source=1700068707:e36f4599-faad-4e17-ab7a-4c9c080875c1:bl_xfer:1001/default/XML, Caller-Channel-Bridged-Time=1700068708522841, Caller-Source=src/switch_ivr_originate.c, variable_rtp_use_codec_string=OPUS,G722,PCMU,PCMA,VP8, Caller-ANI=0000000000, variable_sip_from_host=192.168.5.97, Caller-Channel-Hangup-Time=0, variable_endpoint_disposition=ANSWER, variable_rtp_use_codec_ptime=20, variable_video_media_flow=sendrecv, Channel-Read-Codec-Bit-Rate=64000, Event-Calling-Function=switch_ivr_unhold, Caller-Profile-Index=2, Channel-Name=sofia/internal/1000@192.168.5.162:9026, variable_sip_recover_contact=<sip:1000@192.168.5.162:9026;rinstance=3b9864b811c7c14d;transport=udp>, Channel-Call-UUID=b9ca8ea4-e1c3-49bc-b2d4-7ac2363d25b6, Caller-Transfer-Source=1700068707:e36f4599-faad-4e17-ab7a-4c9c080875c1:bl_xfer:1001/default/XML, Other-Leg-Channel-Hangup-Time=0, Caller-Context=default, variable_sip_req_uri=1000@192.168.5.162:9026;rinstance=3b9864b811c7c14d;transport=udp, variable_DIALSTATUS=SUCCESS, variable_call_timeout=999, variable_sip_from_user=0000000000, Other-Leg-Caller-ID-Number=1000, Event-Calling-Line-Number=1587, Caller-Unique-ID=b9ca8ea4-e1c3-49bc-b2d4-7ac2363d25b6, Caller-Caller-ID-Number=1000, variable_last_sent_callee_id_name=Outbound Call, Caller-Caller-ID-Name=Outbound Call, variable_read_codec=PCMU, variable_rtp_local_sdp_str=v=0
o=FreeSWITCH 1700047150 1700047163 IN IP4 192.168.5.97
s=FreeSWITCH
c=IN IP4 192.168.5.97
t=0 0
m=audio 21556 RTP/AVP 0 101
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=sendrecv
m=video 30282 RTP/AVP 103
b=AS:1024
a=rtpmap:103 VP8/90000
a=sendrecv
a=rtcp-fb:103 ccm fir
a=rtcp-fb:103 ccm tmmbr
a=rtcp-fb:103 nack
a=rtcp-fb:103 nack pli
, Channel-State=CS_EXECUTE, variable_callgroup=techsupport, variable_sip_from_uri=0000000000@192.168.5.97, variable_sip_to_uri=1000@192.168.5.162:9026, Other-Leg-Callee-ID-Name=Outbound Call, Other-Leg-Orig-Caller-ID-Number=0000000000, variable_original_read_codec=PCMU, Other-Leg-Channel-Last-Hold=0, variable_remote_video_media_flow=inactive, Caller-Callee-ID-Number=1001, variable_local_media_ip=192.168.5.97, variable_transfer_fallback_extension=operator, variable_rtp_2833_send_payload=101, Caller-Channel-Name=sofia/internal/1000@192.168.5.162:9026, Other-Leg-Channel-Answered-Time=0, Caller-Direction=outbound, variable_called_party_callgroup=techsupport, variable_toll_allow=domestic,international,local, variable_sip_local_network_addr=192.168.5.97, variable_sip_to_tag=0ec5d098, variable_sip_invite_domain=192.168.5.97, Other-Leg-Channel-Name=sofia/internal/1001@192.168.5.162:44836, variable_sip_call_id=aa012879-fe3a-123c-ada9-000c291b6650, variable_sip_reply_host=192.168.5.162, variable_sip_destination_url=sip:1000@192.168.5.162:9026;rinstance=3b9864b811c7c14d;transport=udp, variable_outbound_caller_id_number=10086, Call-Direction=outbound, Other-Leg-Direction=outbound, Other-Leg-Channel-Progress-Media-Time=1700068708502874, Caller-Privacy-Hide-Name=false, Event-Date-Local=2023-11-16 01:19:32, variable_continue_on_fail=true, Other-Leg-ANI=0000000000, variable_sip_to_port=9026, Event-Date-GMT=Wed, 15 Nov 2023 17:19:32 GMT, variable_transfer_history=1700068707:e36f4599-faad-4e17-ab7a-4c9c080875c1:bl_xfer:1001/default/XML, variable_switch_r_sdp=v=0
o=- 9 9 IN IP4 192.168.5.162
s=CounterPath eyeBeam 1.5
c=IN IP4 192.168.5.162
t=0 0
m=audio 54826 RTP/AVP 0 101
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=recvonly
a=x-rtp-session-id:D8AD46D14C974AAE9571B1E0664396F7
m=video 0 RTP/AVP 34
, variable_local_video_port=30282, variable_signal_bond=60599c38-8e93-4f7a-8106-90d56b599d1c, Other-Leg-Channel-Progress-Time=1700068707942853, Event-Sequence=32361, variable_max_forwards=70, variable_is_outbound=true, variable_last_bridge_to=60599c38-8e93-4f7a-8106-90d56b599d1c, Other-Leg-Channel-Hold-Accum=0} 

  • 转换成自定义Json数据,通过websocket推送给前端

{
    "agentId": "21009",
    "callType": "outbound",
    "callUuid": "dc3331f3-90f2-480c-a329-ce375c5d7e07",
    "calleder": "1001",
    "caller": "1000",
    "connId": "dc3331f3-90f2-480c-a329-ce375c5d7e07",
    "eventType": "EVENT_RETRIEVED",
    "mediaType": "voice",
    "messageType": "VoiceCallStateChangeMessage",
    "referenceId": 118335,
    "sessionId": "18832500-b189-4140-b7b8-a0b84f027518",
    "thisDn": "1000"
}

2.挂断事件 

CHANNEL_HANGUP

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值