Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetJsonFieldName ¶
func GetJsonFieldName(StructField reflect.StructField) string
从tag中获取json字段名
Types ¶
type CHANNEL_CALLSTATE ¶
type CHANNEL_CALLSTATE struct { CallerProfileIndex string `json:"Caller-Profile-Index"` CallerChannelResurrectTime string `json:"Caller-Channel-Resurrect-Time"` EventDateTimestamp string `json:"Event-Date-Timestamp"` EventCallingFunction string `json:"Event-Calling-Function"` ChannelState string `json:"Channel-State"` CallerOrigCallerIdNumber string `json:"Caller-Orig-Caller-Id-Number"` CallerContext string `json:"Caller-Context"` CallerChannelProgressTime string `json:"Caller-Channel-Progress-Time"` FreeswitchIpv6 string `json:"Freeswitch-Ipv6"` EventDateGmt string `json:"Event-Date-Gmt"` CallerChannelProgressMediaTime string `json:"Caller-Channel-Progress-Media-Time"` CallerScreenBit string `json:"Caller-Screen-Bit"` CallerChannelHangupTime string `json:"Caller-Channel-Hangup-Time"` CallDirection string `json:"Call-Direction"` CallerPrivacyHideNumber string `json:"Caller-Privacy-Hide-Number"` FreeswitchHostname string `json:"Freeswitch-Hostname"` ChannelName string `json:"Channel-Name"` CallerLogicalDirection string `json:"Caller-Logical-Direction"` ChannelCallUuid string `json:"Channel-Call-Uuid"` HangupCause string `json:"Hangup-Cause"` CallerDirection string `json:"Caller-Direction"` CallerCallerIdName string `json:"Caller-Caller-Id-Name"` CallerNetworkAddr string `json:"Caller-Network-Addr"` CallerAni string `json:"Caller-Ani"` CallerDestinationNumber string `json:"Caller-Destination-Number"` CoreUuid string `json:"Core-Uuid"` EventCallingLineNumber string `json:"Event-Calling-Line-Number"` CallerChannelHoldAccum string `json:"Caller-Channel-Hold-Accum"` ChannelCallStateNumber string `json:"Channel-Call-State-Number"` ChannelCallState string `json:"Channel-Call-State"` EventCallingFile string `json:"Event-Calling-File"` CallerChannelBridgedTime string `json:"Caller-Channel-Bridged-Time"` PresenceCallDirection string `json:"Presence-Call-Direction"` CallerChannelAnsweredTime string `json:"Caller-Channel-Answered-Time"` CallerChannelLastHold string `json:"Caller-Channel-Last-Hold"` FreeswitchSwitchname string `json:"Freeswitch-Switchname"` CallerChannelName string `json:"Caller-Channel-Name"` CallerSource string `json:"Caller-Source"` FreeswitchIpv4 string `json:"Freeswitch-Ipv4"` EventDateLocal string `json:"Event-Date-Local"` AnswerState string `json:"Answer-State"` CallerUsername string `json:"Caller-Username"` CallerOrigCallerIdName string `json:"Caller-Orig-Caller-Id-Name"` OriginalChannelCallState string `json:"Original-Channel-Call-State"` ChannelHitDialplan string `json:"Channel-Hit-Dialplan"` CallerChannelCreatedTime string `json:"Caller-Channel-Created-Time"` EventSequence string `json:"Event-Sequence"` ChannelStateNumber string `json:"Channel-State-Number"` CallerCallerIdNumber string `json:"Caller-Caller-Id-Number"` CallerChannelTransferTime string `json:"Caller-Channel-Transfer-Time"` CallerPrivacyHideName string `json:"Caller-Privacy-Hide-Name"` EventName string `json:"Event-Name"` CallerDialplan string `json:"Caller-Dialplan"` CallerUniqueId string `json:"Caller-Unique-Id"` CallerProfileCreatedTime string `json:"Caller-Profile-Created-Time"` UniqueId string `json:"Unique-Id"` ChannelPresenceId string `json:"Channel-Presence-Id"` }
通道呼叫状态
type CHANNEL_CREATE ¶
type CHANNEL_CREATE struct { FreeSwitchHostname string `json:"FreeSWITCH-Hostname"` FreeSwitchIPv4 net.IP `json:"FreeSWITCH-IPv4"` FreeSwitchIPv6 net.IP `json:"FreeSWITCH-IPv6"` EventCallingFile string `json:"Event-Calling-File"` VariableSipContactUser string `json:"Variable_sip_contact_user"` CallerLogicalDirection string `json:"Caller-Logical-Direction"` VariableEventDateGmt string `json:"Variable_event-Date-Gmt"` VariableEventCallingFile string `json:"Variable_event-Calling-File"` EventDateLocal string `json:"Event-Date-Local"` ChannelPresenceId string `json:"Channel-Presence-Id"` CallerChannelAnsweredTime string `json:"Caller-Channel-Answered-Time"` CallerChannelLastHold string `json:"Caller-Channel-Last-Hold"` VariableSipReqUser string `json:"Variable_sip_req_user"` VariableSipReqUri string `json:"Variable_sip_req_uri"` VariableSwitchRSdp string `json:"Variable_switch_r_sdp"` CallerDialplan string `json:"Caller-Dialplan"` CallerChannelCreatedTime string `json:"Caller-Channel-Created-Time"` CallerChannelHangupTime string `json:"Caller-Channel-Hangup-Time"` CallerPrivacyHideNumber string `json:"Caller-Privacy-Hide-Number"` VariableSipNumberAlias string `json:"Variable_sip_number_alias"` VariableEffectiveCallerIdNumber string `json:"Variable_effective_caller_id_number"` CallDirection string `json:"Call-Direction"` VariableRecordStereo string `json:"Variable_record_stereo"` VariableSipFullVia string `json:"Variable_sip_full_via"` VariableSipReqHost string `json:"Variable_sip_req_host"` EventName string `json:"Event-Name"` VariableRequestedDomainName string `json:"Variable_requested_domain_name"` ChannelCallState string `json:"Channel-Call-State"` VariableUserName string `json:"Variable_user_name"` EventSequence string `json:"Event-Sequence"` VariableChannelName string `json:"Variable_channel_name"` VariableSipUserAgent string `json:"Variable_sip_user_agent"` EventDateTimestamp string `json:"Event-Date-Timestamp"` ChannelState string `json:"Channel-State"` VariableRequestedUserName string `json:"Variable_requested_user_name"` ChannelStateNumber string `json:"Channel-State-Number"` VariableSipCallId string `json:"Variable_sip_call_id"` VariableRecoveryProfileName string `json:"Variable_recovery_profile_name"` VariableSipContactUri string `json:"Variable_sip_contact_uri"` CoreUuid string `json:"Core-Uuid"` CallerCallerIdName string `json:"Caller-Caller-Id-Name"` CallerOrigCallerIdNumber string `json:"Caller-Orig-Caller-Id-Number"` CallerChannelProgressTime string `json:"Caller-Channel-Progress-Time"` VariableEventName string `json:"Variable_event-Name"` VariableDomainName string `json:"Variable_domain_name"` CallerChannelName string `json:"Caller-Channel-Name"` VariableMaxForwards string `json:"Variable_max_forwards"` VariableEventDateTimestamp string `json:"Variable_event-Date-Timestamp"` VariableEventCallingFunction string `json:"Variable_event-Calling-Function"` VariableOutboundCallerIdNumber string `json:"Variable_outbound_caller_id_number"` VariableSipFromTag string `json:"Variable_sip_from_tag"` VariableSipReqPort string `json:"Variable_sip_req_port"` VariableSipFromHost string `json:"Variable_sip_from_host"` VariableSipViaHost string `json:"Variable_sip_via_host"` PresenceCallDirection string `json:"Presence-Call-Direction"` CallerOrigCallerIdName string `json:"Caller-Orig-Caller-Id-Name"` CallerAni string `json:"Caller-Ani"` VariableDirection string `json:"Variable_direction"` VariableSipReceivedIp string `json:"Variable_sip_received_ip"` VariableSipReceivedPort string `json:"Variable_sip_received_port"` VariableFreeswitchHostname string `json:"Variable_freeswitch-Hostname"` VariableEventSequence string `json:"Variable_event-Sequence"` EventCallingLineNumber string `json:"Event-Calling-Line-Number"` ChannelHitDialplan string `json:"Channel-Hit-Dialplan"` VariableSipNetworkPort string `json:"Variable_sip_network_port"` VariablePresenceId string `json:"Variable_presence_id"` CallerPrivacyHideName string `json:"Caller-Privacy-Hide-Name"` VariableSipFromUser string `json:"Variable_sip_from_user"` VariableSipNetworkIp string `json:"Variable_sip_network_ip"` VariableEventDateLocal string `json:"Variable_event-Date-Local"` VariableSipFullTo string `json:"Variable_sip_full_to"` VariableSipViaPort string `json:"Variable_sip_via_port"` CallerChannelResurrectTime string `json:"Caller-Channel-Resurrect-Time"` VariableUuid string `json:"Variable_uuid"` VariableEventCallingLineNumber string `json:"Variable_event-Calling-Line-Number"` VariableNumberAlias string `json:"Variable_number_alias"` VariableEndpointDisposition string `json:"Variable_endpoint_disposition"` CallerUsername string `json:"Caller-Username"` CallerProfileIndex string `json:"Caller-Profile-Index"` VariableTollAllow string `json:"Variable_toll_allow"` VariableCallgroup string `json:"Variable_callgroup"` VariableRtpUseCodecString string `json:"Variable_rtp_use_codec_string"` CallerDirection string `json:"Caller-Direction"` CallerSource string `json:"Caller-Source"` CallerProfileCreatedTime string `json:"Caller-Profile-Created-Time"` VariableSipViaProtocol string `json:"Variable_sip_via_protocol"` AnswerState string `json:"Answer-State"` CallerChannelHoldAccum string `json:"Caller-Channel-Hold-Accum"` VariableFreeswitchIpv6 string `json:"Variable_freeswitch-Ipv6"` VariableSipFullFrom string `json:"Variable_sip_full_from"` CallerChannelTransferTime string `json:"Caller-Channel-Transfer-Time"` VariableFreeswitchSwitchname string `json:"Variable_freeswitch-Switchname"` VariableDefaultGateway string `json:"Variable_default_gateway"` ChannelName string `json:"Channel-Name"` CallerCallerIdNumber string `json:"Caller-Caller-Id-Number"` VariableSessionId string `json:"Variable_session_id"` VariableSipLocalNetworkAddr string `json:"Variable_sip_local_network_addr"` VariableOutboundCallerIdName string `json:"Variable_outbound_caller_id_name"` VariableSipFromUserStripped string `json:"Variable_sip_from_user_stripped"` VariableSipViaRport string `json:"Variable_sip_via_rport"` FreeswitchHostname string `json:"Freeswitch-Hostname"` UniqueId string `json:"Unique-Id"` VariableSipFromUri string `json:"Variable_sip_from_uri"` VariableAccountcode string `json:"Variable_accountcode"` VariableUserContext string `json:"Variable_user_context"` VariableEffectiveCallerIdName string `json:"Variable_effective_caller_id_name"` VariableSipContactParams string `json:"Variable_sip_contact_params"` FreeswitchIpv6 string `json:"Freeswitch-Ipv6"` EventCallingFunction string `json:"Event-Calling-Function"` ChannelCallUuid string `json:"Channel-Call-Uuid"` VariableFreeswitchIpv4 string `json:"Variable_freeswitch-Ipv4"` FreeswitchIpv4 string `json:"Freeswitch-Ipv4"` CallerDestinationNumber string `json:"Caller-Destination-Number"` CallerContext string `json:"Caller-Context"` CallerScreenBit string `json:"Caller-Screen-Bit"` VariableCallUuid string `json:"Variable_call_uuid"` VariableEpCodecString string `json:"Variable_ep_codec_string"` VariableSipAuthRealm string `json:"Variable_sip_auth_realm"` VariableSofiaProfileName string `json:"Variable_sofia_profile_name"` VariableSipToUri string `json:"Variable_sip_to_uri"` VariableSipContactPort string `json:"Variable_sip_contact_port"` VariableSipAuthUsername string `json:"Variable_sip_auth_username"` VariableSipNatDetected string `json:"Variable_sip_nat_detected"` FreeswitchSwitchname string `json:"Freeswitch-Switchname"` EventDateGmt string `json:"Event-Date-Gmt"` CallerChannelBridgedTime string `json:"Caller-Channel-Bridged-Time"` VariableSipAuthorized string `json:"Variable_sip_authorized"` VariableCoreUuid string `json:"Variable_core-Uuid"` VariableSipToHost string `json:"Variable_sip_to_host"` VariableSipContactHost string `json:"Variable_sip_contact_host"` CallerChannelProgressMediaTime string `json:"Caller-Channel-Progress-Media-Time"` VariableTransferFallbackExtension string `json:"Variable_transfer_fallback_extension"` VariableSipToUser string `json:"Variable_sip_to_user"` CallerNetworkAddr string `json:"Caller-Network-Addr"` CallerUniqueId string `json:"Caller-Unique-Id"` VariableDefaultAreacode string `json:"Variable_default_areacode"` }
CHANNEL_CREATE 当扩展将要执行某些操作时,将发送CHANNEL_CREATE。它可以是拨打某人,也可以是分机的来电。
type CHANNEL_DESTROY ¶
type CHANNEL_DESTROY struct { ChannelState string `json:"Channel-State"` ChannelHitDialplan string `json:"Channel-Hit-Dialplan"` FreeswitchIpv6 net.IP `json:"Freeswitch-Ipv6"` HangupCause string `json:"Hangup-Cause"` VariableDirection string `json:"Variable_direction"` VariableUuid string `json:"Variable_uuid"` VariableSipFromHost string `json:"Variable_sip_from_host"` VariableChannelName string `json:"Variable_channel_name"` VariableSipCallId string `json:"Variable_sip_call_id"` FreeswitchSwitchname string `json:"Freeswitch-Switchname"` ChannelName string `json:"Channel-Name"` PresenceCallDirection string `json:"Presence-Call-Direction"` VariableSessionId string `json:"Variable_session_id"` UniqueId string `json:"Unique-Id"` VariableHangupCauseQ850 string `json:"Variable_hangup_cause_q850"` EventName string `json:"Event-Name"` EventCallingFile string `json:"Event-Calling-File"` ChannelCallUuid string `json:"Channel-Call-Uuid"` VariableSipFromUser string `json:"Variable_sip_from_user"` FreeswitchHostname string `json:"Freeswitch-Hostname"` EventDateTimestamp string `json:"Event-Date-Timestamp"` EventSequence string `json:"Event-Sequence"` ChannelCallState string `json:"Channel-Call-State"` ChannelStateNumber string `json:"Channel-State-Number"` CallDirection string `json:"Call-Direction"` VariableSipFromUri string `json:"Variable_sip_from_uri"` VariableHangupCause string `json:"Variable_hangup_cause"` VariableCallUuid string `json:"Variable_call_uuid"` CoreUuid string `json:"Core-Uuid"` FreeswitchIpv4 net.IP `json:"Freeswitch-Ipv4"` EventDateLocal time.Time `json:"Event-Date-Local"` EventDateGmt time.Time `json:"Event-Date-Gmt"` EventCallingFunction string `json:"Event-Calling-Function"` EventCallingLineNumber string `json:"Event-Calling-Line-Number"` AnswerState string `json:"Answer-State"` VariableEpCodecString string `json:"Variable_ep_codec_string"` }
CHANNEL_DESTROY 通道销毁
type CHANNEL_EXECUTE ¶
type CHANNEL_EXECUTE struct { ChannelHitDialplan string `json:"Channel-Hit-Dialplan"` CallerOrigCallerIdNumber string `json:"Caller-Orig-Caller-Id-Number"` CallerProfileCreatedTime string `json:"Caller-Profile-Created-Time"` VariableDomainName string `json:"Variable_domain_name"` VariableRtpUseCodecString string `json:"Variable_rtp_use_codec_string"` VariableDpMatch string `json:"Variable_dp_match"` ApplicationData string `json:"Application-Data"` CallerNetworkAddr string `json:"Caller-Network-Addr"` CallerChannelHoldAccum string `json:"Caller-Channel-Hold-Accum"` VariableRecordStereo string `json:"Variable_record_stereo"` VariableTransferFallbackExtension string `json:"Variable_transfer_fallback_extension"` VariableCallgroup string `json:"Variable_callgroup"` VariableMaxForwards string `json:"Variable_max_forwards"` ChannelStateNumber string `json:"Channel-State-Number"` VariableSipReceivedIp string `json:"Variable_sip_received_ip"` CallerLogicalDirection string `json:"Caller-Logical-Direction"` CallerChannelProgressMediaTime string `json:"Caller-Channel-Progress-Media-Time"` CallerScreenBit string `json:"Caller-Screen-Bit"` VariableSipReqUri string `json:"Variable_sip_req_uri"` VariableSipViaHost string `json:"Variable_sip_via_host"` ChannelCallUuid string `json:"Channel-Call-Uuid"` CallerDirection string `json:"Caller-Direction"` VariableSipFromUri string `json:"Variable_sip_from_uri"` VariableSipFullTo string `json:"Variable_sip_full_to"` VariableSipContactUser string `json:"Variable_sip_contact_user"` VariableEndpointDisposition string `json:"Variable_endpoint_disposition"` CallerCallerIdName string `json:"Caller-Caller-Id-Name"` VariableSipFromUser string `json:"Variable_sip_from_user"` VariableSipToUser string `json:"Variable_sip_to_user"` VariableAgentdn string `json:"Variable_agentdn"` VariablePresenceId string `json:"Variable_presence_id"` FreeswitchSwitchname string `json:"Freeswitch-Switchname"` EventDateTimestamp string `json:"Event-Date-Timestamp"` VariableSipReceivedPort string `json:"Variable_sip_received_port"` VariableFreeswitchIpv6 string `json:"Variable_freeswitch-Ipv6"` VariableAccountcode string `json:"Variable_accountcode"` VariableArgv0 string `json:"Variable_argv0"` PresenceCallDirection string `json:"Presence-Call-Direction"` CallerAni string `json:"Caller-Ani"` CallerContext string `json:"Caller-Context"` VariableSipAuthorized string `json:"Variable_sip_authorized"` VariableFreeswitchHostname string `json:"Variable_freeswitch-Hostname"` VariableEventCallingFile string `json:"Variable_event-Calling-File"` EventCallingFile string `json:"Event-Calling-File"` EventSequence string `json:"Event-Sequence"` CallerUsername string `json:"Caller-Username"` VariableCoreUuid string `json:"Variable_core-Uuid"` VariableSipViaPort string `json:"Variable_sip_via_port"` AnswerState string `json:"Answer-State"` VariableUuid string `json:"Variable_uuid"` VariableDefaultGateway string `json:"Variable_default_gateway"` VariableSipNatDetected string `json:"Variable_sip_nat_detected"` CallerProfileIndex string `json:"Caller-Profile-Index"` VariableEventName string `json:"Variable_event-Name"` VariableEventDateGmt string `json:"Variable_event-Date-Gmt"` VariableDefaultAreacode string `json:"Variable_default_areacode"` VariableSipReqPort string `json:"Variable_sip_req_port"` FreeswitchIpv6 string `json:"Freeswitch-Ipv6"` UniqueId string `json:"Unique-Id"` VariableTollAllow string `json:"Variable_toll_allow"` VariableSipContactPort string `json:"Variable_sip_contact_port"` VariableSipUserAgent string `json:"Variable_sip_user_agent"` Application string `json:"Application"` EventCallingFunction string `json:"Event-Calling-Function"` ChannelName string `json:"Channel-Name"` CallerChannelTransferTime string `json:"Caller-Channel-Transfer-Time"` VariableChannelName string `json:"Variable_channel_name"` VariableRequestedDomainName string `json:"Variable_requested_domain_name"` VariableRecoveryProfileName string `json:"Variable_recovery_profile_name"` CallerCallerIdNumber string `json:"Caller-Caller-Id-Number"` VariableRequestedUserName string `json:"Variable_requested_user_name"` VariableSipAuthUsername string `json:"Variable_sip_auth_username"` VariableOutboundCallerIdNumber string `json:"Variable_outbound_caller_id_number"` EventCallingLineNumber string `json:"Event-Calling-Line-Number"` ChannelCallState string `json:"Channel-Call-State"` CallerChannelCreatedTime string `json:"Caller-Channel-Created-Time"` VariableDirection string `json:"Variable_direction"` VariableSipFromHost string `json:"Variable_sip_from_host"` VariableUserName string `json:"Variable_user_name"` CallerOrigCallerIdName string `json:"Caller-Orig-Caller-Id-Name"` VariableSessionId string `json:"Variable_session_id"` VariableSipCallId string `json:"Variable_sip_call_id"` VariableSipNetworkIp string `json:"Variable_sip_network_ip"` VariableSipFromTag string `json:"Variable_sip_from_tag"` ApplicationUuid string `json:"Application-Uuid"` CallerUniqueId string `json:"Caller-Unique-Id"` CallerChannelName string `json:"Caller-Channel-Name"` VariableSipAuthRealm string `json:"Variable_sip_auth_realm"` VariableSipFromUserStripped string `json:"Variable_sip_from_user_stripped"` VariableSipFullFrom string `json:"Variable_sip_full_from"` VariableSipToUri string `json:"Variable_sip_to_uri"` EventDateGmt string `json:"Event-Date-Gmt"` VariableCallUuid string `json:"Variable_call_uuid"` CallerChannelHangupTime string `json:"Caller-Channel-Hangup-Time"` VariableEpCodecString string `json:"Variable_ep_codec_string"` VariableSipNumberAlias string `json:"Variable_sip_number_alias"` VariableSipFullVia string `json:"Variable_sip_full_via"` EventDateLocal string `json:"Event-Date-Local"` VariableSipReqHost string `json:"Variable_sip_req_host"` CoreUuid string `json:"Core-Uuid"` VariableEventCallingLineNumber string `json:"Variable_event-Calling-Line-Number"` VariableCurrentApplicationData string `json:"Variable_current_application_data"` FreeswitchHostname string `json:"Freeswitch-Hostname"` CallDirection string `json:"Call-Direction"` CallerChannelAnsweredTime string `json:"Caller-Channel-Answered-Time"` VariableSipViaProtocol string `json:"Variable_sip_via_protocol"` VariableUserContext string `json:"Variable_user_context"` VariableSipContactHost string `json:"Variable_sip_contact_host"` FreeswitchIpv4 string `json:"Freeswitch-Ipv4"` CallerPrivacyHideNumber string `json:"Caller-Privacy-Hide-Number"` VariableSwitchRSdp string `json:"Variable_switch_r_sdp"` EventName string `json:"Event-Name"` CallerDialplan string `json:"Caller-Dialplan"` CallerChannelLastHold string `json:"Caller-Channel-Last-Hold"` VariableFreeswitchIpv4 string `json:"Variable_freeswitch-Ipv4"` VariableEventSequence string `json:"Variable_event-Sequence"` VariableNumberAlias string `json:"Variable_number_alias"` CallerChannelProgressTime string `json:"Caller-Channel-Progress-Time"` VariableEventDateLocal string `json:"Variable_event-Date-Local"` VariableEventDateTimestamp string `json:"Variable_event-Date-Timestamp"` VariableSofiaProfileName string `json:"Variable_sofia_profile_name"` VariableEffectiveCallerIdName string `json:"Variable_effective_caller_id_name"` VariableEffectiveCallerIdNumber string `json:"Variable_effective_caller_id_number"` ChannelPresenceId string `json:"Channel-Presence-Id"` CallerDestinationNumber string `json:"Caller-Destination-Number"` CallerSource string `json:"Caller-Source"` CallerChannelBridgedTime string `json:"Caller-Channel-Bridged-Time"` CallerPrivacyHideName string `json:"Caller-Privacy-Hide-Name"` VariableFreeswitchSwitchname string `json:"Variable_freeswitch-Switchname"` VariableSipReqUser string `json:"Variable_sip_req_user"` VariableSipContactParams string `json:"Variable_sip_contact_params"` VariableSipContactUri string `json:"Variable_sip_contact_uri"` VariableSipLocalNetworkAddr string `json:"Variable_sip_local_network_addr"` VariableEventCallingFunction string `json:"Variable_event-Calling-Function"` VariableSipToHost string `json:"Variable_sip_to_host"` VariableSipViaRport string `json:"Variable_sip_via_rport"` ChannelState string `json:"Channel-State"` CallerChannelResurrectTime string `json:"Caller-Channel-Resurrect-Time"` VariableSipNetworkPort string `json:"Variable_sip_network_port"` VariableOutboundCallerIdName string `json:"Variable_outbound_caller_id_name"` VariableCurrentApplication string `json:"Variable_current_application"` }
通道内执行app时会有这个事件
type CHANNEL_EXECUTE_COMPLETE ¶
type CHANNEL_EXECUTE_COMPLETE struct { VariableUserContext string `json:"Variable_user_context"` EventSequence string `json:"Event-Sequence"` CallerProfileIndex string `json:"Caller-Profile-Index"` VariableMaxForwards string `json:"Variable_max_forwards"` CallerPrivacyHideNumber string `json:"Caller-Privacy-Hide-Number"` VariableSipNetworkPort string `json:"Variable_sip_network_port"` VariableUserName string `json:"Variable_user_name"` VariableSipContactParams string `json:"Variable_sip_contact_params"` VariableCurrentApplication string `json:"Variable_current_application"` CallerOrigCallerIdName string `json:"Caller-Orig-Caller-Id-Name"` CallerPrivacyHideName string `json:"Caller-Privacy-Hide-Name"` VariableFreeswitchHostname string `json:"Variable_freeswitch-Hostname"` VariableOutboundCallerIdNumber string `json:"Variable_outbound_caller_id_number"` VariableSipContactUri string `json:"Variable_sip_contact_uri"` VariableSipContactHost string `json:"Variable_sip_contact_host"` CallerSource string `json:"Caller-Source"` VariableUuid string `json:"Variable_uuid"` VariableEventDateLocal string `json:"Variable_event-Date-Local"` VariableSipReqPort string `json:"Variable_sip_req_port"` VariableDpMatch string `json:"Variable_dp_match"` CallerLogicalDirection string `json:"Caller-Logical-Direction"` VariableCoreUuid string `json:"Variable_core-Uuid"` CallerChannelTransferTime string `json:"Caller-Channel-Transfer-Time"` VariableEventCallingFunction string `json:"Variable_event-Calling-Function"` VariableNumberAlias string `json:"Variable_number_alias"` VariableRtpUseCodecString string `json:"Variable_rtp_use_codec_string"` CallerAni string `json:"Caller-Ani"` CallerChannelHangupTime string `json:"Caller-Channel-Hangup-Time"` VariableRequestedDomainName string `json:"Variable_requested_domain_name"` VariablePresenceId string `json:"Variable_presence_id"` EventDateGmt string `json:"Event-Date-Gmt"` VariableSipFromHost string `json:"Variable_sip_from_host"` VariableCallgroup string `json:"Variable_callgroup"` VariableDomainName string `json:"Variable_domain_name"` VariableSipFromUserStripped string `json:"Variable_sip_from_user_stripped"` VariableSipFullTo string `json:"Variable_sip_full_to"` VariableSipReqHost string `json:"Variable_sip_req_host"` FreeswitchIpv6 string `json:"Freeswitch-Ipv6"` CallerDestinationNumber string `json:"Caller-Destination-Number"` VariableEffectiveCallerIdName string `json:"Variable_effective_caller_id_name"` CallerUsername string `json:"Caller-Username"` VariableSipFromUri string `json:"Variable_sip_from_uri"` CallerScreenBit string `json:"Caller-Screen-Bit"` VariableEventName string `json:"Variable_event-Name"` VariableEventCallingFile string `json:"Variable_event-Calling-File"` VariableSipAuthRealm string `json:"Variable_sip_auth_realm"` VariableSipViaPort string `json:"Variable_sip_via_port"` VariableAgentdn string `json:"Variable_agentdn"` EventDateLocal string `json:"Event-Date-Local"` AnswerState string `json:"Answer-State"` VariableSipAuthUsername string `json:"Variable_sip_auth_username"` VariableSipReqUser string `json:"Variable_sip_req_user"` VariableSipViaRport string `json:"Variable_sip_via_rport"` Application string `json:"Application"` VariableSipAuthorized string `json:"Variable_sip_authorized"` VariableEventCallingLineNumber string `json:"Variable_event-Calling-Line-Number"` VariableEventDateTimestamp string `json:"Variable_event-Date-Timestamp"` VariableTollAllow string `json:"Variable_toll_allow"` VariableEndpointDisposition string `json:"Variable_endpoint_disposition"` FreeswitchSwitchname string `json:"Freeswitch-Switchname"` CallerChannelResurrectTime string `json:"Caller-Channel-Resurrect-Time"` VariableDirection string `json:"Variable_direction"` VariableFreeswitchIpv6 string `json:"Variable_freeswitch-Ipv6"` VariableAccountcode string `json:"Variable_accountcode"` FreeswitchIpv4 string `json:"Freeswitch-Ipv4"` UniqueId string `json:"Unique-Id"` VariableEpCodecString string `json:"Variable_ep_codec_string"` VariableCurrentApplicationData string `json:"Variable_current_application_data"` VariableEventDateGmt string `json:"Variable_event-Date-Gmt"` VariableSipContactPort string `json:"Variable_sip_contact_port"` CallerNetworkAddr string `json:"Caller-Network-Addr"` CallerChannelName string `json:"Caller-Channel-Name"` VariableOutboundCallerIdName string `json:"Variable_outbound_caller_id_name"` VariableSofiaProfileName string `json:"Variable_sofia_profile_name"` VariableSipFullVia string `json:"Variable_sip_full_via"` CoreUuid string `json:"Core-Uuid"` EventCallingLineNumber string `json:"Event-Calling-Line-Number"` VariableSipNetworkIp string `json:"Variable_sip_network_ip"` CallerDialplan string `json:"Caller-Dialplan"` CallerCallerIdName string `json:"Caller-Caller-Id-Name"` VariableEventSequence string `json:"Variable_event-Sequence"` VariableRecoveryProfileName string `json:"Variable_recovery_profile_name"` VariableSipToHost string `json:"Variable_sip_to_host"` ApplicationUuid string `json:"Application-Uuid"` ChannelStateNumber string `json:"Channel-State-Number"` CallerChannelBridgedTime string `json:"Caller-Channel-Bridged-Time"` ChannelPresenceId string `json:"Channel-Presence-Id"` CallerChannelLastHold string `json:"Caller-Channel-Last-Hold"` VariableFreeswitchIpv4 string `json:"Variable_freeswitch-Ipv4"` VariableRecordStereo string `json:"Variable_record_stereo"` VariableSipContactUser string `json:"Variable_sip_contact_user"` ChannelState string `json:"Channel-State"` ChannelCallState string `json:"Channel-Call-State"` CallerChannelProgressMediaTime string `json:"Caller-Channel-Progress-Media-Time"` VariableDefaultGateway string `json:"Variable_default_gateway"` VariableCallUuid string `json:"Variable_call_uuid"` ApplicationData string `json:"Application-Data"` VariableChannelName string `json:"Variable_channel_name"` VariableRequestedUserName string `json:"Variable_requested_user_name"` VariableSipUserAgent string `json:"Variable_sip_user_agent"` ApplicationResponse string `json:"Application-Response"` CallerChannelHoldAccum string `json:"Caller-Channel-Hold-Accum"` VariableSipLocalNetworkAddr string `json:"Variable_sip_local_network_addr"` CallerContext string `json:"Caller-Context"` CallerProfileCreatedTime string `json:"Caller-Profile-Created-Time"` CallerChannelCreatedTime string `json:"Caller-Channel-Created-Time"` CallerChannelProgressTime string `json:"Caller-Channel-Progress-Time"` ChannelCallUuid string `json:"Channel-Call-Uuid"` CallerDirection string `json:"Caller-Direction"` VariableSipReceivedIp string `json:"Variable_sip_received_ip"` CallerCallerIdNumber string `json:"Caller-Caller-Id-Number"` CallerOrigCallerIdNumber string `json:"Caller-Orig-Caller-Id-Number"` VariableSipReceivedPort string `json:"Variable_sip_received_port"` VariableSipToUri string `json:"Variable_sip_to_uri"` ChannelName string `json:"Channel-Name"` PresenceCallDirection string `json:"Presence-Call-Direction"` ChannelHitDialplan string `json:"Channel-Hit-Dialplan"` VariableSipToUser string `json:"Variable_sip_to_user"` VariableSwitchRSdp string `json:"Variable_switch_r_sdp"` EventDateTimestamp string `json:"Event-Date-Timestamp"` EventCallingFile string `json:"Event-Calling-File"` VariableFreeswitchSwitchname string `json:"Variable_freeswitch-Switchname"` VariableSipNumberAlias string `json:"Variable_sip_number_alias"` VariableTransferFallbackExtension string `json:"Variable_transfer_fallback_extension"` VariableSipReqUri string `json:"Variable_sip_req_uri"` VariableSessionId string `json:"Variable_session_id"` VariableSipFromUser string `json:"Variable_sip_from_user"` VariableSipViaProtocol string `json:"Variable_sip_via_protocol"` FreeswitchHostname string `json:"Freeswitch-Hostname"` VariableSipCallId string `json:"Variable_sip_call_id"` VariableSipFromTag string `json:"Variable_sip_from_tag"` VariableSipViaHost string `json:"Variable_sip_via_host"` VariableSipNatDetected string `json:"Variable_sip_nat_detected"` EventCallingFunction string `json:"Event-Calling-Function"` CallDirection string `json:"Call-Direction"` VariableEffectiveCallerIdNumber string `json:"Variable_effective_caller_id_number"` CallerChannelAnsweredTime string `json:"Caller-Channel-Answered-Time"` VariableDefaultAreacode string `json:"Variable_default_areacode"` VariableSipFullFrom string `json:"Variable_sip_full_from"` EventName string `json:"Event-Name"` CallerUniqueId string `json:"Caller-Unique-Id"` }
挂机完成事件
func (*CHANNEL_EXECUTE_COMPLETE) Set ¶
func (s *CHANNEL_EXECUTE_COMPLETE) Set(msg *eslgo.Event)
Set 将s设置为msg
type CHANNEL_HANGUP ¶
type CHANNEL_HANGUP struct { EventCallingFile string `json:"Event-Calling-File"` VariableRequestedDomainName string `json:"Variable_requested_domain_name"` VariableSipCallId string `json:"Variable_sip_call_id"` VariableAccountcode string `json:"Variable_accountcode"` VariableSipFullFrom string `json:"Variable_sip_full_from"` VariableSipReqUri string `json:"Variable_sip_req_uri"` CallerProfileIndex string `json:"Caller-Profile-Index"` VariableEventDateTimestamp string `json:"Variable_event-Date-Timestamp"` VariableEffectiveCallerIdName string `json:"Variable_effective_caller_id_name"` VariableArgv0 string `json:"Variable_argv0"` VariableSipNumberAlias string `json:"Variable_sip_number_alias"` CallerLogicalDirection string `json:"Caller-Logical-Direction"` VariableUuid string `json:"Variable_uuid"` VariableSipAuthorized string `json:"Variable_sip_authorized"` VariableEventDateGmt string `json:"Variable_event-Date-Gmt"` VariableSipViaProtocol string `json:"Variable_sip_via_protocol"` VariableEventCallingLineNumber string `json:"Variable_event-Calling-Line-Number"` VariableNumberAlias string `json:"Variable_number_alias"` VariableSipReqPort string `json:"Variable_sip_req_port"` CallDirection string `json:"Call-Direction"` AnswerState string `json:"Answer-State"` CallerOrigCallerIdName string `json:"Caller-Orig-Caller-Id-Name"` VariableSipReceivedPort string `json:"Variable_sip_received_port"` VariableSipContactUser string `json:"Variable_sip_contact_user"` VariableSipContactHost string `json:"Variable_sip_contact_host"` VariableSipToHost string `json:"Variable_sip_to_host"` CallerChannelProgressTime string `json:"Caller-Channel-Progress-Time"` VariableSipAuthUsername string `json:"Variable_sip_auth_username"` VariableOutboundCallerIdName string `json:"Variable_outbound_caller_id_name"` VariableSipFromTag string `json:"Variable_sip_from_tag"` VariablePresenceId string `json:"Variable_presence_id"` VariableCallUuid string `json:"Variable_call_uuid"` ChannelPresenceId string `json:"Channel-Presence-Id"` CallerChannelTransferTime string `json:"Caller-Channel-Transfer-Time"` VariableEventDateLocal string `json:"Variable_event-Date-Local"` VariableEffectiveCallerIdNumber string `json:"Variable_effective_caller_id_number"` VariableUserContext string `json:"Variable_user_context"` VariableTollAllow string `json:"Variable_toll_allow"` VariableSipViaHost string `json:"Variable_sip_via_host"` FreeswitchIpv6 string `json:"Freeswitch-Ipv6"` EventSequence string `json:"Event-Sequence"` HangupCause string `json:"Hangup-Cause"` CallerNetworkAddr string `json:"Caller-Network-Addr"` VariableFreeswitchHostname string `json:"Variable_freeswitch-Hostname"` VariableSipContactUri string `json:"Variable_sip_contact_uri"` FreeswitchIpv4 string `json:"Freeswitch-Ipv4"` UniqueId string `json:"Unique-Id"` CallerChannelAnsweredTime string `json:"Caller-Channel-Answered-Time"` VariableSipFromUri string `json:"Variable_sip_from_uri"` VariableFreeswitchSwitchname string `json:"Variable_freeswitch-Switchname"` VariableDefaultAreacode string `json:"Variable_default_areacode"` VariableSipFullTo string `json:"Variable_sip_full_to"` VariableSocketHost string `json:"Variable_socket_host"` CallerUsername string `json:"Caller-Username"` CallerProfileCreatedTime string `json:"Caller-Profile-Created-Time"` VariableSipNetworkIp string `json:"Variable_sip_network_ip"` VariableSipNetworkPort string `json:"Variable_sip_network_port"` CoreUuid string `json:"Core-Uuid"` VariableTransferFallbackExtension string `json:"Variable_transfer_fallback_extension"` VariableSofiaProfileName string `json:"Variable_sofia_profile_name"` VariableSipContactParams string `json:"Variable_sip_contact_params"` CallerPrivacyHideNumber string `json:"Caller-Privacy-Hide-Number"` VariableSessionId string `json:"Variable_session_id"` VariableFreeswitchIpv6 string `json:"Variable_freeswitch-Ipv6"` VariableSipReqUser string `json:"Variable_sip_req_user"` VariableCurrentApplicationData string `json:"Variable_current_application_data"` CallerCallerIdNumber string `json:"Caller-Caller-Id-Number"` VariableSipLocalNetworkAddr string `json:"Variable_sip_local_network_addr"` VariableSipReceivedIp string `json:"Variable_sip_received_ip"` VariableUserName string `json:"Variable_user_name"` VariableSipViaRport string `json:"Variable_sip_via_rport"` ChannelState string `json:"Channel-State"` CallerDirection string `json:"Caller-Direction"` VariableEventCallingFile string `json:"Variable_event-Calling-File"` VariableSipToUri string `json:"Variable_sip_to_uri"` VariableRecordStereo string `json:"Variable_record_stereo"` VariableOutboundCallerIdNumber string `json:"Variable_outbound_caller_id_number"` VariableCallgroup string `json:"Variable_callgroup"` VariableDpMatch string `json:"Variable_dp_match"` CallerCallerIdName string `json:"Caller-Caller-Id-Name"` VariableDefaultGateway string `json:"Variable_default_gateway"` VariableSipAuthRealm string `json:"Variable_sip_auth_realm"` VariableSipFromUserStripped string `json:"Variable_sip_from_user_stripped"` ChannelName string `json:"Channel-Name"` CallerChannelName string `json:"Caller-Channel-Name"` CallerChannelResurrectTime string `json:"Caller-Channel-Resurrect-Time"` CallerChannelHoldAccum string `json:"Caller-Channel-Hold-Accum"` VariableSipToUser string `json:"Variable_sip_to_user"` VariableMaxForwards string `json:"Variable_max_forwards"` EventCallingLineNumber string `json:"Event-Calling-Line-Number"` PresenceCallDirection string `json:"Presence-Call-Direction"` VariableCoreUuid string `json:"Variable_core-Uuid"` VariableEventSequence string `json:"Variable_event-Sequence"` VariableEventName string `json:"Variable_event-Name"` VariableDomainName string `json:"Variable_domain_name"` VariableRecoveryProfileName string `json:"Variable_recovery_profile_name"` VariableSipUserAgent string `json:"Variable_sip_user_agent"` FreeswitchHostname string `json:"Freeswitch-Hostname"` ChannelHitDialplan string `json:"Channel-Hit-Dialplan"` CallerPrivacyHideName string `json:"Caller-Privacy-Hide-Name"` VariableSipFromUser string `json:"Variable_sip_from_user"` VariableEndpointDisposition string `json:"Variable_endpoint_disposition"` CallerOrigCallerIdNumber string `json:"Caller-Orig-Caller-Id-Number"` CallerChannelCreatedTime string `json:"Caller-Channel-Created-Time"` VariableEventCallingFunction string `json:"Variable_event-Calling-Function"` VariableSipNatDetected string `json:"Variable_sip_nat_detected"` EventDateLocal string `json:"Event-Date-Local"` CallerContext string `json:"Caller-Context"` VariableAgentdn string `json:"Variable_agentdn"` FreeswitchSwitchname string `json:"Freeswitch-Switchname"` CallerSource string `json:"Caller-Source"` VariableFreeswitchIpv4 string `json:"Variable_freeswitch-Ipv4"` VariableSipReqHost string `json:"Variable_sip_req_host"` EventCallingFunction string `json:"Event-Calling-Function"` ChannelStateNumber string `json:"Channel-State-Number"` ChannelCallUuid string `json:"Channel-Call-Uuid"` CallerUniqueId string `json:"Caller-Unique-Id"` CallerAni string `json:"Caller-Ani"` VariableRtpUseCodecString string `json:"Variable_rtp_use_codec_string"` EventName string `json:"Event-Name"` VariableCurrentApplication string `json:"Variable_current_application"` VariableSipFromHost string `json:"Variable_sip_from_host"` EventDateTimestamp string `json:"Event-Date-Timestamp"` ChannelCallState string `json:"Channel-Call-State"` CallerDialplan string `json:"Caller-Dialplan"` CallerChannelLastHold string `json:"Caller-Channel-Last-Hold"` VariableSipViaPort string `json:"Variable_sip_via_port"` VariableSwitchRSdp string `json:"Variable_switch_r_sdp"` CallerDestinationNumber string `json:"Caller-Destination-Number"` VariableRequestedUserName string `json:"Variable_requested_user_name"` VariableSipFullVia string `json:"Variable_sip_full_via"` VariableSipContactPort string `json:"Variable_sip_contact_port"` CallerChannelHangupTime string `json:"Caller-Channel-Hangup-Time"` VariableEpCodecString string `json:"Variable_ep_codec_string"` VariableChannelName string `json:"Variable_channel_name"` EventDateGmt string `json:"Event-Date-Gmt"` CallerChannelProgressMediaTime string `json:"Caller-Channel-Progress-Media-Time"` CallerChannelBridgedTime string `json:"Caller-Channel-Bridged-Time"` VariableDirection string `json:"Variable_direction"` CallerScreenBit string `json:"Caller-Screen-Bit"` }
type CHANNEL_STATE ¶
type CHANNEL_STATE struct { FreeswitchIpv6 string `json:"Freeswitch-Ipv6"` EventDateGmt string `json:"Event-Date-Gmt"` ChannelName string `json:"Channel-Name"` ChannelHitDialplan string `json:"Channel-Hit-Dialplan"` EventCallingFile string `json:"Event-Calling-File"` EventCallingLineNumber string `json:"Event-Calling-Line-Number"` ChannelState string `json:"Channel-State"` ChannelCallUuid string `json:"Channel-Call-Uuid"` AnswerState string `json:"Answer-State"` EventName string `json:"Event-Name"` FreeswitchSwitchname string `json:"Freeswitch-Switchname"` FreeswitchIpv4 string `json:"Freeswitch-Ipv4"` EventCallingFunction string `json:"Event-Calling-Function"` ChannelStateNumber string `json:"Channel-State-Number"` ChannelCallState string `json:"Channel-Call-State"` UniqueId string `json:"Unique-Id"` CallDirection string `json:"Call-Direction"` CoreUuid string `json:"Core-Uuid"` FreeswitchHostname string `json:"Freeswitch-Hostname"` EventDateLocal string `json:"Event-Date-Local"` EventDateTimestamp string `json:"Event-Date-Timestamp"` EventSequence string `json:"Event-Sequence"` PresenceCallDirection string `json:"Presence-Call-Direction"` }
通道状态
type CUSTOM_sofia_register_failure ¶
type CUSTOM_sofia_register_failure struct { EventCallingLineNumber string `json:"Event-Calling-Line-Number"` Rpid string `json:"Rpid"` EventDateGmt string `json:"Event-Date-Gmt"` FromHost string `json:"From-Host"` ProfileName string `json:"Profile-Name"` FreeswitchHostname string `json:"Freeswitch-Hostname"` EventSequence string `json:"Event-Sequence"` Contact string `json:"Contact"` Status string `json:"Status"` Expires string `json:"Expires"` ToHost string `json:"To-Host"` NetworkIp string `json:"Network-Ip"` NetworkPort string `json:"Network-Port"` CoreUuid string `json:"Core-Uuid"` FromUser string `json:"From-User"` UserAgent string `json:"User-Agent"` EventName string `json:"Event-Name"` EventCallingFile string `json:"Event-Calling-File"` EventDateLocal string `json:"Event-Date-Local"` ToUser string `json:"To-User"` FreeswitchSwitchname string `json:"Freeswitch-Switchname"` FreeswitchIpv4 string `json:"Freeswitch-Ipv4"` EventSubclass string `json:"Event-Subclass"` EventCallingFunction string `json:"Event-Calling-Function"` FreeswitchIpv6 string `json:"Freeswitch-Ipv6"` EventDateTimestamp string `json:"Event-Date-Timestamp"` }
分机注册
func (*CUSTOM_sofia_register_failure) Set ¶
func (s *CUSTOM_sofia_register_failure) Set(msg *eslgo.Event)
Set 将s设置为msg
type HEARTBEAT ¶
type HEARTBEAT struct { EventName string `json:"Event-Name"` //事件名称 EventDateLocal time.Time `json:"Event-Date-Local"` //事件时间 本地时间 EventDateGmt time.Time `json:"Event-Date-Gmt"` //事件时间 零时区时间 SessionPerSec int64 `json:"Session-Per-Sec"` //每秒会话数 SessionSinceStartup int64 `json:"Session-Since-Startup"` SessionPeakFivemin int64 `json:"Session-Peak-Fivemin"` EventCallingFunction string `json:"Event-Calling-Function"` UptimeMsec int64 `json:"Uptime-Msec"` //运行时间毫秒 SessionCount int64 `json:"Session-Count"` MaxSessions int64 `json:"Max-Sessions"` SessionPeakMax int64 `json:"Session-Peak-Max"` FreeswitchSwitchname string `json:"Freeswitch-Switchname"` FreeswitchIpv4 net.IP `json:"Freeswitch-Ipv4"` EventDateTimestamp int64 `json:"Event-Date-Timestamp"` //事件事件 微秒 百万分之一秒 SessionPerSecMax int64 `json:"Session-Per-Sec-Max"` CoreUuid string `json:"Core-Uuid"` EventCallingFile string `json:"Event-Calling-File"` EventCallingLineNumber int64 `json:"Event-Calling-Line-Number"` IdleCpu float64 `json:"Idle-Cpu"` FreeswitchIpv6 string `json:"Freeswitch-Ipv6"` EventInfo string `json:"Event-Info"` UpTime string `json:"Up-Time"` //运行时间秒 FreeswitchHostname string `json:"Freeswitch-Hostname"` EventSequence string `json:"Event-Sequence"` FreeswitchVersion string `json:"Freeswitch-Version"` SessionPerSecFivemin int64 `json:"Session-Per-Sec-Fivemin"` }
HEARTBEAT 心跳
type RE_SCHEDULE ¶
type RE_SCHEDULE struct { EventName string `json:"Freeswitch-Hostname"` FreeswitchSwitchname string `json:"Freeswitch-Switchname"` EventCallingFunction string `json:"Event-Name"` EventSequence string `json:"Task-Id"` TaskId string `json:"Task-Desc"` TaskDesc string `json:"Task-Runtime"` CoreUuid string `json:"Freeswitch-Ipv6"` FreeswitchHostname string `json:"Event-Date-Timestamp"` EventDateLocal time.Time `json:"Event-Calling-File"` EventDateTimestamp string `json:"Event-Calling-Function"` EventCallingLineNumber string `json:"Event-Calling-Line-Numbe"` TaskGroup string `json:"Event-Sequence"` TaskRuntime string `json:"Task-Group"` FreeswitchIpv4 net.IP `json:"Core-Uuid"` FreeswitchIpv6 net.IP `json:"Freeswitch-Ipv4"` EventDateGmt time.Time `json:"Event-Date-Local"` EventCallingFile string `json:"Event-Date-Gmt"` }
RE_SCHEDULE 在PBX中重新安排任务。 事件特定键/值: 任务ID:1任务描述:心跳任务组:核心任务运行时:1178646608
Click to show internal directories.
Click to hide internal directories.