[Freeswitch-dev] INFO: Channel variables
Michael Collins
mcollins at fcnetwork.com
Fri Jun 6 14:52:27 EDT 2008
Oops! How about this:
SWITCH_PROTO_SPECIFIC_HANGUP_CAUSE_VARIABLE
"proto_specific_hangup_cause"
SWITCH_CHANNEL_EXECUTE_ON_ANSWER_VARIABLE "execute_on_answer"
SWITCH_CHANNEL_EXECUTE_ON_RING_VARIABLE "execute_on_ring"
SWITCH_CALL_TIMEOUT_VARIABLE "call_timeout"
SWITCH_HOLDING_UUID_VARIABLE "holding_uuid"
SWITCH_API_BRIDGE_END_VARIABLE "api_after_bridge"
SWITCH_API_HANGUP_HOOK_VARIABLE "api_hangup_hook"
SWITCH_PROCESS_CDR_VARIABLE "process_cdr"
SWITCH_BRIDGE_CHANNEL_VARIABLE "bridge_channel"
SWITCH_CHANNEL_NAME_VARIABLE "channel_name"
SWITCH_BRIDGE_UUID_VARIABLE "bridge_uuid"
SWITCH_PLAYBACK_TERMINATORS_VARIABLE "playback_terminators"
SWITCH_CACHE_SPEECH_HANDLES_VARIABLE "cache_speech_handles"
SWITCH_BYPASS_MEDIA_VARIABLE "bypass_media"
SWITCH_PROXY_MEDIA_VARIABLE "proxy_media"
SWITCH_ENDPOINT_DISPOSITION_VARIABLE "endpoint_disposition"
SWITCH_HOLD_MUSIC_VARIABLE "hold_music"
SWITCH_EXPORT_VARS_VARIABLE "export_vars"
SWITCH_R_SDP_VARIABLE "switch_r_sdp"
SWITCH_L_SDP_VARIABLE "switch_l_sdp"
SWITCH_B_SDP_VARIABLE "switch_m_sdp"
SWITCH_BRIDGE_VARIABLE "bridge_to"
SWITCH_SIGNAL_BRIDGE_VARIABLE "signal_bridge_to"
SWITCH_SIGNAL_BOND_VARIABLE "signal_bond"
SWITCH_ORIGINATOR_VARIABLE "originator"
SWITCH_ORIGINATOR_CODEC_VARIABLE "originator_codec"
SWITCH_LOCAL_MEDIA_IP_VARIABLE "local_media_ip"
SWITCH_LOCAL_MEDIA_PORT_VARIABLE "local_media_port"
SWITCH_REMOTE_MEDIA_IP_VARIABLE "remote_media_ip"
SWITCH_REMOTE_MEDIA_PORT_VARIABLE "remote_media_port"
SWITCH_REMOTE_VIDEO_IP_VARIABLE "remote_video_ip"
SWITCH_REMOTE_VIDEO_PORT_VARIABLE "remote_video_port"
SWITCH_LOCAL_VIDEO_IP_VARIABLE "local_video_ip"
SWITCH_LOCAL_VIDEO_PORT_VARIABLE "local_video_port"
SWITCH_HANGUP_AFTER_BRIDGE_VARIABLE "hangup_after_bridge"
SWITCH_EXEC_AFTER_BRIDGE_APP_VARIABLE "exec_after_bridge_app"
SWITCH_EXEC_AFTER_BRIDGE_ARG_VARIABLE "exec_after_bridge_arg"
SWITCH_MAX_FORWARDS_VARIABLE "max_forwards"
SWITCH_DISABLE_APP_LOG_VARIABLE "disable_app_log"
________________________________
From: freeswitch-dev-bounces at lists.freeswitch.org
[mailto:freeswitch-dev-bounces at lists.freeswitch.org] On Behalf Of Brian
West
Sent: Friday, June 06, 2008 9:58 AM
To: freeswitch-dev at lists.freeswitch.org
Subject: Re: [Freeswitch-dev] INFO: Channel variables
Forgot the ones in switch_types.h ;)
/b
On Jun 6, 2008, at 11:41 AM, Michael Collins wrote:
Guys,
I made a list by grepping and perling around in the source.
grep -Pr "c(.)(\s+)switch_channel_set_variable\(channel, \"" * | grep -v
"Binary" > /tmp/chan_vars.tmp
This gave me a massive list of all filenames and occurrences of
"switch_channel_set_variable" with a channel variable explicitly named
in quotes.
I then filtered out stuff with svn in the source filename and then
create a tab-separated list of chan variables and source filenames.
Finally, I distilled that list with this script:
perl -n -e 'm/(\w+)\t(.*)/;next if (exists($seen{$1}));print $1 . "\t" .
$2 . "\n";$seen{$1}=$2;' /tmp/chan_vars3.tmp
This yielded a nice list of variables. Let me know what you think about
using this as the base list for channel variables on the wiki:
Variable Source File:
limit_realm
mod/applications/mod_limit/mod_limit.c
limit_id
mod/applications/mod_limit/mod_limit.c
limit_max
mod/applications/mod_limit/mod_limit.c
enum_route_count mod/applications/mod_enum/mod_enum.c
enum_auto_route mod/applications/mod_enum/mod_enum.c
voicemail_total_new_messages
mod/applications/mod_voicemail/mod_voicemail.c
voicemail_total_saved_messages
mod/applications/mod_voicemail/mod_voicemail.c
voicemail_urgent_new_messages
mod/applications/mod_voicemail/mod_voicemail.c
voicemail_urgent_saved_messages
mod/applications/mod_voicemail/mod_voicemail.c
voicemail_current_folder
mod/applications/mod_voicemail/mod_voicemail.c
voicemail_account
mod/applications/mod_voicemail/mod_voicemail.c
voicemail_domain
mod/applications/mod_voicemail/mod_voicemail.c
voicemail_caller_id_number
mod/applications/mod_voicemail/mod_voicemail.c
voicemail_caller_id_name
mod/applications/mod_voicemail/mod_voicemail.c
voicemail_file_path
mod/applications/mod_voicemail/mod_voicemail.c
voicemail_read_flags
mod/applications/mod_voicemail/mod_voicemail.c
voicemail_time
mod/applications/mod_voicemail/mod_voicemail.c
voicemail_priority
mod/applications/mod_voicemail/mod_voicemail.c
voicemail_message_len
mod/applications/mod_voicemail/mod_voicemail.c
voicemail_email
mod/applications/mod_voicemail/mod_voicemail.c
RECORD_ARTIST
mod/applications/mod_voicemail/mod_voicemail.c
RECORD_DATE
mod/applications/mod_voicemail/mod_voicemail.c
RECORD_SOFTWARE
mod/applications/mod_voicemail/mod_voicemail.c
RECORD_TITLE
mod/applications/mod_voicemail/mod_voicemail.c
RECORD_COMMENT
mod/applications/mod_voicemail/mod_voicemail.c
RECORD_COPYRIGHT
mod/applications/mod_voicemail/mod_voicemail.c
voicemail_notify_email
mod/applications/mod_voicemail/mod_voicemail.c
mailbox
mod/applications/mod_dptools/mod_dptools.c
user_name
mod/applications/mod_dptools/mod_dptools.c
domain_name
mod/applications/mod_dptools/mod_dptools.c
xfer_uuids
mod/applications/mod_dptools/mod_dptools.c
dialed_user
mod/applications/mod_dptools/mod_dptools.c
dialed_domain
mod/applications/mod_dptools/mod_dptools.c
sip_force_video_fmtp mod/applications/mod_fsv/mod_fsv.c
fifo_priority mod/applications/mod_fifo/mod_fifo.c
fifo_status mod/applications/mod_fifo/mod_fifo.c
fifo_timestamp mod/applications/mod_fifo/mod_fifo.c
fifo_target mod/applications/mod_fifo/mod_fifo.c
dl_user
mod/endpoints/mod_dingaling/mod_dingaling.c
dl_host
mod/endpoints/mod_dingaling/mod_dingaling.c
dl_from_user
mod/endpoints/mod_dingaling/mod_dingaling.c
dl_from_host
mod/endpoints/mod_dingaling/mod_dingaling.c
sip_nat_detected mod/endpoints/mod_sofia/sofia_glue.c
sofia_profile_name mod/endpoints/mod_sofia/sofia_glue.c
auto_answer_destination mod/endpoints/mod_sofia/sofia.c
sip_user_agent mod/endpoints/mod_sofia/sofia.c
sip_rtp_txstat mod/endpoints/mod_sofia/sofia.c
sip_rtp_rxstat mod/endpoints/mod_sofia/sofia.c
sip_call_id mod/endpoints/mod_sofia/sofia.c
sip_authorized mod/endpoints/mod_sofia/sofia.c
sip_term_status mod/endpoints/mod_sofia/sofia.c
sip_term_cause mod/endpoints/mod_sofia/sofia.c
transfer_fallback_extension mod/endpoints/mod_sofia/sofia.c
call_clientcode mod/endpoints/mod_sofia/sofia.c
sofia_record_file mod/endpoints/mod_sofia/sofia.c
sip_received_ip mod/endpoints/mod_sofia/sofia.c
sip_received_port mod/endpoints/mod_sofia/sofia.c
sip_looped_call mod/endpoints/mod_sofia/sofia.c
sip_from_user_stripped mod/endpoints/mod_sofia/sofia.c
sip_from_comment mod/endpoints/mod_sofia/sofia.c
sofia_profile_domain_name mod/endpoints/mod_sofia/sofia.c
sip_to_comment mod/endpoints/mod_sofia/sofia.c
sip_referred_by_user_stripped mod/endpoints/mod_sofia/sofia.c
sip_referred_by_cid mod/endpoints/mod_sofia/sofia.c
sip_subject mod/endpoints/mod_sofia/sofia.c
sip_via_host mod/endpoints/mod_sofia/sofia.c
sip_via_port mod/endpoints/mod_sofia/sofia.c
sip_via_rport mod/endpoints/mod_sofia/sofia.c
sip_gateway mod/endpoints/mod_sofia/sofia.c
alert_info mod/endpoints/mod_sofia/sofia.c
presence_id mod/endpoints/mod_sofia/sofia.c
call_timeout
mod/dialplans/mod_dialplan_asterisk/mod_dialplan_asterisk.c
EXTEN
mod/dialplans/mod_dialplan_asterisk/mod_dialplan_asterisk.c
CHANNEL
mod/dialplans/mod_dialplan_asterisk/mod_dialplan_asterisk.c
UNIQUEID
mod/dialplans/mod_dialplan_asterisk/mod_dialplan_asterisk.c
socket_path
mod/event_handlers/mod_event_socket/mod_event_socket.c
socket_host
mod/event_handlers/mod_event_socket/mod_event_socket.c
last_file_position
mod/languages/mod_spidermonkey/mod_spidermonkey.c
hangup_cause switch_channel.c
endpoint_disposition switch_channel.c
start_stamp switch_channel.c
profile_start_stamp switch_channel.c
answer_stamp switch_channel.c
progress_stamp switch_channel.c
progress_media_stamp switch_channel.c
end_stamp switch_channel.c
start_epoch switch_channel.c
start_uepoch switch_channel.c
profile_start_epoch switch_channel.c
profile_start_uepoch switch_channel.c
answer_epoch switch_channel.c
answer_uepoch switch_channel.c
end_epoch switch_channel.c
end_uepoch switch_channel.c
last_app switch_channel.c
last_arg switch_channel.c
caller_id switch_channel.c
duration switch_channel.c
billsec switch_channel.c
progresssec switch_channel.c
progress_mediasec switch_channel.c
flow_billsec switch_channel.c
mduration switch_channel.c
billmsec switch_channel.c
progressmsec switch_channel.c
progress_mediamsec switch_channel.c
flow_billmsec switch_channel.c
uduration switch_channel.c
billusec switch_channel.c
progressusec switch_channel.c
progress_mediausec switch_channel.c
flow_billusec switch_channel.c
read_codec switch_core_codec.c
read_rate switch_core_codec.c
write_codec switch_core_codec.c
write_rate switch_core_codec.c
video_read_codec switch_core_codec.c
video_read_rate switch_core_codec.c
video_write_codec switch_core_codec.c
video_write_rate switch_core_codec.c
sound_prefix switch_ivr_play_say.c
_______________________________________________
Freeswitch-dev mailing list
Freeswitch-dev at lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev
http://www.freeswitch.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20080606/a6b320f0/attachment-0001.html
More information about the Freeswitch-dev
mailing list