Freeswitch中CHANNEL_ORIGINATE呼入振铃事件

 

1.CHANNEL_ORIGINATE事件

  •  variable_effective_caller_id_number=1000 //当前分机
  • Other-Leg-Logical-Direction=inbound /outbound //呼叫类型(呼入,呼出)
  • Caller-ANI=15910979999 //主叫
  • Caller-Logical-Direction //主叫方呼叫方向

FS EVENT事件详细信息: 

2023-11-16T03:21:59.841+0800 INFO  c.e.c.v.s.c.i.FsServerEventHandler - eventReceived:CHANNEL_ORIGINATE
2023-11-16T03:21:59.841+0800 INFO  c.e.c.v.s.c.i.FsServerEventHandler - EventBody********:{variable_effective_caller_id_number=1000, =, variable_local_media_port=25084, Core-UUID=9674935c-bf3e-4391-941f-4108d7b0f6e6, Other-Leg-Caller-ID-Name=15910979999, Other-Leg-Unique-ID=33be1f6b-6cba-459d-bcc6-81429d2a6c5a, variable_user_context=default, FreeSWITCH-Hostname=gcxi, Caller-Channel-Progress-Media-Time=0, variable_default_gateway=example.com, FreeSWITCH-IPv6=::1, Caller-Dialplan=XML, variable_switch_m_sdp=v=0
o=- 1699850338 1 IN IP4 192.168.5.162
s=CounterPath eyeBeam 1.5
c=IN IP4 192.168.5.162
t=0 0
m=audio 44414 RTP/AVP 107 100 106 6 0 105 8 18 3 5 101
a=rtpmap:107 BV32/16000
a=rtpmap:100 SPEEX/16000
a=rtpmap:106 SPEEX-FEC/16000
a=rtpmap:105 SPEEX-FEC/8000
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=yes
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=alt:1 2 : Oe/n1qPh HtFOeSdq 192.168.1.1 44414
a=alt:2 1 : OhnHgkN7 x2SWrllU 192.168.5.162 44414
a=x-rtp-session-id:5C1453B345F1416DA21D402F8F80894E
, FreeSWITCH-IPv4=192.168.5.97, Caller-Destination-Number=1000, Caller-Channel-Answered-Time=0, Other-Leg-Logical-Direction=inbound, Caller-Callee-ID-Name=Outbound Call, Event-Date-Timestamp=1700133766102849, variable_RFC2822_DATE=Thu, 16 Nov 2023 19:22:40 +0800, Channel-State-Number=2, variable_uuid=7030bf33-571e-4e28-8870-7f66d31e63e7, Presence-Call-Direction=outbound, Unique-ID=7030bf33-571e-4e28-8870-7f66d31e63e7, variable_call_uuid=33be1f6b-6cba-459d-bcc6-81429d2a6c5a, Other-Leg-Destination-Number=6390999, variable_outbound_caller_id_name=10086, variable_originating_leg_uuid=33be1f6b-6cba-459d-bcc6-81429d2a6c5a, Other-Type=originator, Caller-Profile-Created-Time=1700133766102849, Other-Leg-Privacy-Hide-Name=false, variable_dialed_user=1000, Channel-Call-State=DOWN, Caller-Screen-Bit=true, Caller-Logical-Direction=outbound, Event-Calling-File=switch_core_state_machine.c, variable_dialed_domain=192.168.5.97, Other-Leg-Profile-Created-Time=0, variable_sip_profile_name=internal, variable_originator_codec=PCMU@8000h@20i, Other-Leg-Channel-Bridged-Time=0, variable_sofia_profile_url=sip:[email protected]:5060, Caller-Channel-Hold-Accum=0, Other-Leg-Channel-Created-Time=0, FreeSWITCH-Switchname=freeswitch01, Caller-Channel-Progress-Time=0, Caller-Privacy-Hide-Number=false, variable_default_areacode=86, Other-Leg-Channel-Transfer-Time=0, Caller-Channel-Bridged-Time=0, Caller-Source=mod_sofia, variable_sofia_profile_name=internal, variable_rtp_use_codec_string=PCMU@8000h@20i, variable_originator=33be1f6b-6cba-459d-bcc6-81429d2a6c5a, variable_text_media_flow=disabled, Caller-ANI=15910979999, variable_sip_from_host=192.168.5.97, Caller-Channel-Hangup-Time=0, Other-Leg-Dialplan=XML, Other-Leg-Network-Addr=192.168.5.241, Caller-Network-Addr=192.168.5.241, variable_video_media_flow=disabled, variable_originate_early_media=true, Event-Calling-Function=switch_core_session_run, Caller-Username=15910979999, Caller-Profile-Index=1, Channel-Name=sofia/internal/[email protected]:9726, Channel-Call-UUID=33be1f6b-6cba-459d-bcc6-81429d2a6c5a, Other-Leg-Channel-Hangup-Time=0, Caller-Context=public, [email protected]:9726;rinstance=eacf349ed3bb70b1;transport=udp, variable_sip_h_X-Genesys-CallUUID=01LB6HL3D0AL37DTU42QHG5AES00000A, variable_sip_to_host=192.168.5.162:9726, Other-Leg-Caller-ID-Number=15910979999, variable_record_stereo=true, Event-Calling-Line-Number=635, [email protected], variable_audio_media_flow=sendrecv, Caller-Unique-ID=7030bf33-571e-4e28-8870-7f66d31e63e7, Caller-Caller-ID-Number=15910979999, Caller-Caller-ID-Name=15910979999, Other-Leg-Orig-Caller-ID-Name=15910979999, variable_rtp_local_sdp_str=v=0
o=FreeSWITCH 1700108682 1700108683 IN IP4 192.168.5.97
s=FreeSWITCH
c=IN IP4 192.168.5.97
t=0 0
m=audio 25084 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
, Other-Leg-Username=15910979999, Channel-State=CS_INIT, Channel-HIT-Dialplan=false, Caller-Channel-Last-Hold=0, variable_callgroup=techsupport, variable_session_id=176, Other-Leg-Orig-Caller-ID-Number=15910979999, Other-Leg-Channel-Last-Hold=0, Caller-Callee-ID-Number=1000, variable_sip_h_X-ISCC-CofId=location=SIPSwitch;cofid=16777236, variable_transfer_fallback_extension=operator, variable_local_media_ip=192.168.5.97, Caller-Channel-Name=sofia/internal/[email protected]:9726, Other-Leg-Privacy-Hide-Number=false, Other-Leg-Channel-Answered-Time=0, variable_recovery_profile_name=internal, Other-Leg-Source=mod_sofia, Caller-Direction=outbound, variable_toll_allow=domestic,international,local, variable_direction=outbound, Event-Name=CHANNEL_ORIGINATE, variable_sip_local_network_addr=192.168.5.97, variable_accountcode=1000, variable_sip_invite_domain=192.168.5.97, Other-Leg-Channel-Name=sofia/internal/[email protected]:5060, variable_channel_name=sofia/internal/[email protected]:9726, Caller-Orig-Caller-ID-Name=15910979999, variable_sip_destination_url=sip:[email protected]:9726;rinstance=eacf349ed3bb70b1;transport=udp, variable_outbound_caller_id_number=10086, Call-Direction=outbound, Other-Leg-Direction=inbound, Other-Leg-Channel-Progress-Media-Time=0, Caller-Privacy-Hide-Name=false, [email protected], Event-Date-Local=2023-11-16 19:22:46, variable_advertised_media_ip=192.168.5.97, Other-Leg-ANI=15910979999, Event-Date-GMT=Thu, 16 Nov 2023 11:22:46 GMT, Answer-State=ringing, Other-Leg-Screen-Bit=true, variable_signal_bond=33be1f6b-6cba-459d-bcc6-81429d2a6c5a, Caller-Channel-Resurrect-Time=0, variable_effective_caller_id_name=Extension 1000, Other-Leg-Channel-Resurrect-Time=0, Caller-Orig-Caller-ID-Number=15910979999, variable_sip_outgoing_contact_uri=, Caller-Channel-Transfer-Time=0, Other-Leg-Channel-Progress-Time=0, Caller-Channel-Created-Time=1700133766102849, Event-Sequence=41511, Other-Leg-Context=public, variable_max_forwards=68, variable_is_outbound=true, variable_export_vars=RFC2822_DATE, Other-Leg-Channel-Hold-Accum=0}

2.总结 

在分机互拨,对于坐席振铃和客户振铃都是从这个事件取的,获取相应的分机产生自己可用事件。 

你可能感兴趣的:(Freeswitch,java,前端,服务器)