VoIP Mailing List Archives
Mailing list archives for the VoIP community |
|
View previous topic :: View next topic |
Author |
Message |
jbr at consiglia.dk Guest
|
Posted: Thu Sep 18, 2008 10:51 am Post subject: [Freeswitch-users] Accessing the variable shown by the appli |
|
|
I have tried to access the variables shown by the application info, and
the variable name to be used is generally not the same as the name
listed by info.
I have listed nearly 100 variables below, where I guessed the "real"
names, but a number are still missing, and I would like to know what the
"real" names are or how I derive the right names.
Some of the problem-variables, though, for instance
Channel-Read-Codec-Name are also found further down in the list as
variable_read_codec, which can be read alright, and the presence of two
variable names which may have the same value seems confusing for a dummy
as me.
The info-names have been taken - as an example - from the info result of
a call that has been diverted by the phone.
The list below shows my guess (via a javascript), and when the third
column shows FALSE, the guess need to be corrected. In some cases, the
reason for the "FALSE" may be related to the fact that the variable is
unassigned:
Info-name---Guessed name---Result
Channel-State---Channel_State---FALSE
Channel-State-Number---Channel_State_Number---FALSE
Channel-Name---Channel_Name---OK
Unique-ID---Unique_ID---FALSE
Call-Direction---Call_Direction---FALSE
Answer-State---Answer_State---FALSE
Channel-Read-Codec-Name---Channel_Read_Codec_Name---FALSE
Channel-Read-Codec-Rate---Channel_Read_Codec_Rate---FALSE
Channel-Write-Codec-Name---Channel_Write_Codec_Name---FALSE
Channel-Write-Codec-Rate---Channel_Write_Codec_Rate---FALSE
Caller-Username---Username---OK
Caller-Dialplan---Dialplan---OK
Caller-Caller-ID-Name---Caller_ID_Name---OK
Caller-Caller-ID-Number---Caller_ID_Number---OK
Caller-Network-Addr---Network_Addr---OK
Caller-Destination-Number---Destination_Number---OK
Caller-Unique-ID---Unique_ID---FALSE
Caller-Source---Source---OK
Caller-Context---Context---OK
Caller-RDNIS---RDNIS---OK
Caller-Channel-Name---Channel_Name---OK
Caller-Profile-Index---Profile_Index---OK
Caller-Channel-Created-Time---Channel_Created_Time---FALSE
Caller-Channel-Answered-Time---Channel_Answered_Time---FALSE
Caller-Channel-Hangup-Time---Channel_Hangup_Time---FALSE
Caller-Channel-Transfer-Time---Channel_Transfer_Time---FALSE
Caller-Screen-Bit---Screen_Bit---FALSE
Caller-Privacy-Hide-Name---Privacy_Hide_Name---FALSE
Caller-Privacy-Hide-Number---Privacy_Hide_Number---FALSE
variable_sip_received_ip---sip_received_ip---OK
variable_sip_received_port---sip_received_port---OK
variable_sip_authorized---sip_authorized---OK
variable_sip_mailbox---sip_mailbox---OK
variable_sip_auth_username---sip_auth_username---OK
variable_sip_auth_realm---sip_auth_realm---OK
variable_mailbox---mailbox---OK
variable_user_name---user_name---OK
variable_domain_name---domain_name---OK
variable_record_stereo---record_stereo---OK
variable_accountcode---accountcode---OK
variable_user_context---user_context---OK
variable_effective_caller_id_name---effective_caller_id_name---OK
variable_effective_caller_id_number---effective_caller_id_number---OK
variable_caller_domain---caller_domain---OK
variable_sip_from_user---sip_from_user---OK
variable_sip_from_uri---sip_from_uri---OK
variable_sip_from_host---sip_from_host---OK
variable_sip_from_user_stripped---sip_from_user_stripped---OK
variable_sip_from_tag---sip_from_tag---OK
variable_sofia_profile_name---sofia_profile_name---OK
variable_sofia_profile_domain_name---sofia_profile_domain_name---OK
variable_sip_req_params---sip_req_params---OK
variable_sip_req_user---sip_req_user---OK
variable_sip_req_uri---sip_req_uri---OK
variable_sip_req_host---sip_req_host---OK
variable_sip_to_params---sip_to_params---OK
variable_sip_to_user---sip_to_user---OK
variable_sip_to_uri---sip_to_uri---OK
variable_sip_to_host---sip_to_host---OK
variable_sip_contact_params---sip_contact_params---OK
variable_sip_contact_user---sip_contact_user---OK
variable_sip_contact_port---sip_contact_port---OK
variable_sip_contact_uri---sip_contact_uri---OK
variable_sip_contact_host---sip_contact_host---OK
variable_channel_name---channel_name---OK
variable_sip_call_id---sip_call_id---OK
variable_sip_user_agent---sip_user_agent---OK
variable_sip_via_host---sip_via_host---OK
variable_sip_via_port---sip_via_port---OK
variable_sip_via_rport---sip_via_rport---OK
variable_presence_id---presence_id---OK
variable_sip_h_P-Key-Flags---sip_h_P_Key_Flags---FALSE
variable_switch_r_sdp---switch_r_sdp---OK
variable_remote_media_ip---remote_media_ip---OK
variable_remote_media_port---remote_media_port---OK
variable_write_codec---write_codec---OK
variable_write_rate---write_rate---OK
variable_endpoint_disposition---endpoint_disposition---OK
variable_dialed_ext---dialed_ext---OK
variable_transfer_ringback---transfer_ringback---OK
variable_call_timeout---call_timeout---OK
variable_hangup_after_bridge---hangup_after_bridge---OK
variable_continue_on_fail---continue_on_fail---OK
variable_dialed_user---dialed_user---OK
variable_dialed_domain---dialed_domain---OK
variable_sip_redirect_contact_user_0---sip_redirect_contact_user_0---OK
variable_sip_redirect_contact_host_0---sip_redirect_contact_host_0---OK
variable_sip_h_Referred-By---sip_h_Referred_By---FALSE
variable_sip_refer_to---sip_refer_to---OK
variable_max_forwards---max_forwards---OK
variable_originate_disposition---originate_disposition---OK
variable_read_codec---read_codec---OK
variable_read_rate---read_rate---OK
variable_open---open---OK
variable_use_profile---use_profile---OK
variable_current_application---current_application---OK
_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org |
|
Back to top |
|
|
brian at freeswitch.org Guest
|
Posted: Thu Sep 18, 2008 11:04 am Post subject: [Freeswitch-users] Accessing the variable shown by the appli |
|
|
http://wiki.freeswitch.org/wiki/Channel_Variables
Some of these aren't on that wiki page maybe you can help fill them in.
I'll need to double check the direction and state ones but that should
be it.
Quote: | Unique-ID---Unique_ID---FALSE
|
${uuid}
Quote: | Call-Direction---Call_Direction---FALSE
|
${direction}
Quote: | Answer-State---Answer_State---FALSE
|
${state}
Quote: | Channel-Read-Codec-Name---Channel_Read_Codec_Name---FALSE
|
${read_codec}
Quote: | Channel-Read-Codec-Rate---Channel_Read_Codec_Rate---FALSE
|
${read_rate}
Quote: | Channel-Write-Codec-Name---Channel_Write_Codec_Name---FALSE
|
${write_codec}
Quote: | Channel-Write-Codec-Rate---Channel_Write_Codec_Rate---FALSE
|
${write_rate}
Quote: | Caller-Channel-Created-Time---Channel_Created_Time---FALSE
|
${created_time}
Quote: |
Caller-Channel-Answered-Time---Channel_Answered_Time---FALSE
|
${answered_time}
Quote: |
Caller-Channel-Hangup-Time---Channel_Hangup_Time---FALSE
|
${hangup_time}
Quote: |
Caller-Channel-Transfer-Time---Channel_Transfer_Time---FALSE
|
${transfer_time}
Quote: |
Caller-Screen-Bit---Screen_Bit---FALSE
Caller-Privacy-Hide-Name---Privacy_Hide_Name---FALSE
Caller-Privacy-Hide-Number---Privacy_Hide_Number---FALSE
|
These should be in the latest SVN trunk.
Quote: | variable_sip_h_P-Key-Flags---sip_h_P_Key_Flags---FALSE
|
${sip_h_P-Key-Flags} its the exact sip header after the sip_h_*
Quote: | variable_sip_h_Referred-By---sip_h_Referred_By---FALSE
|
${sip_h_Referred-By} Just like it says even with the -'s in it. The
sip headers are the only exception to the dash rule.
_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org |
|
Back to top |
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|