FreeSwitch Channel variable 对照表

来源:互联网 发布:淘宝中国制造 编辑:程序博客网 时间:2024/06/07 19:50
Info variable namechannel variable nameDescriptionChannel-StatestateCurrent state of the callChannel-State-Numberstate_numberIntegerChannel-Namechannel_nameChannel nameUnique-IDuuiduuid of this channel's call legCall-DirectiondirectionInbound or OutboundAnswer-Statestate.Channel-Read-Codec-Nameread_codecthe read codec variable mean the source codecChannel-Read-Codec-Rateread_ratethe source rateChannel-Write-Codec-Namewrite_codecthe destination codec same to write_codec if not transcodedChannel-Write-Codec-Ratewrite_ratedestination rate same to read rate if not transcodedCaller-Usernameusername.Caller-Dialplandialplanuser dialplan like xml, lua, enum, lcrCaller-Caller-ID-Namecaller_id_name.Caller-Caller-ID-Numbercaller_id_number.Caller-ANIaniANI of caller, frequently the same as caller ID numberCaller-ANI-IIaniiiANI II Digits (OLI - Originating Line Information), if available. Refer to: http://www.nanpa.com/number_resource_info/ani_ii_digits.htmlCaller-Network-Addrnetwork_addrIP address of calling partyCaller-Destination-Numberdestination_numberDestination (dialed) numberCaller-Unique-IDuuidThis channel's uuidCaller-SourcesourceSource module, i.e. mod_sofia, mod_openzap, etc.Caller-ContextcontextDialplan contextCaller-RDNISrdnisRedirected DNIS info. See transfer applicationCaller-Channel-Namechannel_name.Caller-Profile-Indexprofile_index.Caller-Channel-Created-Timecreated_time.Caller-Channel-Answered-Timeanswered_time.Caller-Channel-Hangup-Timehangup_time.Caller-Channel-Transfer-Timetransfer_time.Caller-Screen-Bitscreen_bit.Caller-Privacy-Hide-Nameprivacy_hide_name.Caller-Privacy-Hide-Numberprivacy_hide_numberThis variable tells you if the inbound call is asking for CLIR[Calling Line IDpresentation Restriction] (either with anonymous method or Privacy:id method)variable_sip_received_ipsip_received_ip.variable_sip_received_portsip_received_port.variable_sip_authorizedsip_authorized.variable_sip_mailboxsip_mailbox.variable_sip_auth_usernamesip_auth_username.variable_sip_auth_realmsip_auth_realm.variable_mailboxmailbox.variable_user_nameuser_name.variable_domain_namedomain_name.variable_record_stereorecord_stereo.variable_accountcodeaccountcodeAccountcode for the call. This is an arbitrary value. It can be defined in the user variables in the directory, or it can be set/modified from dialplan. The accountcode may be used to force a specific CDR CSV template for the call.variable_user_contextuser_context.variable_effective_caller_id_nameeffective_caller_id_name.variable_effective_caller_id_numbereffective_caller_id_number.variable_caller_domaincaller_domain.variable_sip_from_usersip_from_user.variable_sip_from_urisip_from_uri.variable_sip_from_hostsip_from_host.variable_sip_from_user_strippedsip_from_user_stripped.variable_sip_from_tagsip_from_tag.variable_sofia_profile_namesofia_profile_name.variable_sofia_profile_domain_namesofia_profile_domain_name.variable_sip_full_routesip_full_routeThe complete contents of the Route: header.variable_sip_full_viasip_full_viaThe complete contents of the Via: header.variable_sip_full_fromsip_full_fromThe complete contents of the From: header.variable_sip_full_tosip_full_toThe complete contents of the To: header.variable_sip_req_paramssip_req_params.variable_sip_req_usersip_req_user.variable_sip_req_urisip_req_uri.variable_sip_req_hostsip_req_host.variable_sip_to_paramssip_to_params.variable_sip_to_usersip_to_user.variable_sip_to_urisip_to_uri.variable_sip_to_hostsip_to_host.variable_sip_contact_paramssip_contact_params.variable_sip_contact_usersip_contact_user.variable_sip_contact_portsip_contact_port.variable_sip_contact_urisip_contact_uri.variable_sip_contact_hostsip_contact_host.variable_sip_invite_domainsip_invite_domain.variable_channel_namechannel_name.variable_sip_call_idsip_call_id.variable_sip_user_agentsip_user_agent.variable_sip_via_hostsip_via_host.variable_sip_via_portsip_via_port.variable_sip_via_rportsip_via_rport.variable_presence_idpresence_id.variable_sip_h_P-Key-Flagssip_h_p-key-flagsThis will contain the optional P-Key-Flags header(s) that may be received from calling endpoint.variable_switch_r_sdpswitch_r_sdpThe whole SDP received from calling endpoint.variable_remote_media_ipremote_media_ip.variable_remote_media_portremote_media_port.variable_write_codecwrite_codec.variable_write_ratewrite_rate.variable_endpoint_dispositionendpoint_disposition.variable_dialed_extdialed_ext.variable_transfer_ringbacktransfer_ringback.variable_call_timeoutcall_timeout.variable_hangup_after_bridgehangup_after_bridge.variable_continue_on_failcontinue_on_fail.variable_dialed_userdialed_user.variable_dialed_domaindialed_domain.variable_sip_redirect_contact_user_0sip_redirect_contact_user_0.variable_sip_redirect_contact_host_0sip_redirect_contact_host_0.variable_sip_h_Referred-Bysip_h_referred-by.variable_sip_refer_tosip_refer_to.variable_max_forwardsmax_forwards.variable_originate_dispositionoriginate_disposition.variable_read_codecread_codec.variable_read_rateread_rate.variable_openopen.variable_use_profileuse_profile.variable_current_applicationcurrent_application.variable_ep_codec_stringep_codec_stringThis variable is only available if late negotiation is enabled on the profile. It's a readable string containing all the codecs proposed by the calling endpoint. This can be easily parsed in the dialplan.variable_disable_holddisable_holdThis variable when set will disable the hold feature of the phone.variable_sip_acl_authed_bysip_acl_authed_byThis variable holds what ACL rule allowed the call.variable_curl_response_datacurl_response_dataThis variable stores the output from the last curl made.sip_codec_negotiationsip_codec_negotiationsip_codec_negotiation is basically a channel variable equivalent of inbound-codec-negotiation.
sip_codec_negotiation accepts "scrooge" & "greedy" as values.
This means you can change codec negotiation on a per call basis.



原创粉丝点击