[Freeswitch-dev] INFO: Channel variables
Michael Collins
mcollins at fcnetwork.com
Fri Jun 6 12:41:41 EDT 2008
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
amd_result mod/applications/mod_amd/mod_amd.c
amd_status mod/applications/mod_amd/mod_amd.c
amd_wait_status mod/applications/mod_amd/mod_amd.c
amd_wait_result mod/applications/mod_amd/mod_amd.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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20080606/403661f7/attachment-0001.html
More information about the Freeswitch-dev
mailing list