FreeSWITCH API
Нажмите, чтобы отобразить
Нажмите, чтобы скрыть
name | description | ikey | syntax |
---|---|---|---|
console | Console | mod_console | loglevel [level]|colorize [on|toggle|off] |
enum | ENUM | mod_enum | |
enum_auto | ENUM | mod_enum | |
cdr_csv | cdr_csv controls | mod_cdr_csv | parameters |
event_sink | event_sink | mod_event_socket | <web data> |
sofia | Sofia Controls | mod_sofia | <cmd> <args> |
sofia_gateway_data | Get data from a sofia gateway | mod_sofia | <gateway_name> [ivar|ovar|var] <name> |
sofia_username_of | Sofia Username Lookup | mod_sofia | [profile/]<user>@<domain> |
sofia_contact | Sofia Contacts | mod_sofia | [profile/]<user>@<domain> |
sofia_count_reg | Count Sofia registration | mod_sofia | [profile/]<user>@<domain> |
sofia_dig | SIP DIG | mod_sofia | <url> |
sofia_presence_data | Sofia Presence Data | mod_sofia | [list|status|rpid|user_agent] [profile/]<user>@domain |
verto | Verto API | mod_verto | syntax |
verto_contact | Generate a verto endpoint dialstring | mod_verto | user@domain |
bg_system | Execute a system command in the background | mod_commands | <command> |
system | Execute a system command | mod_commands | <command> |
acl | Compare an ip to an acl list | mod_commands | <ip> <list_name> |
alias | Alias | mod_commands | [add|stickyadd] <alias> <command> | del [<alias>|*] |
coalesce | Return first nonempty parameter | mod_commands | [^^<delim>]<value1>,<value2>,... |
banner | Return the system banner | mod_commands | |
bgapi | Execute an api command in a thread | mod_commands | <command>[ <arg>] |
break | uuid_break | mod_commands | <uuid> [all] |
complete | Complete | mod_commands | add <word>|del [<word>|*] |
cond | Evaluate a conditional | mod_commands | <expr> ? <true val> : <false val> |
console_complete | mod_commands | <line> | |
console_complete_xml | mod_commands | <line> | |
create_uuid | Create a uuid | mod_commands | <uuid> <other_uuid> |
db_cache | Manage db cache | mod_commands | status |
domain_exists | Check if a domain exists | mod_commands | <domain> |
echo | Echo | mod_commands | <data> |
escape | Escape a string | mod_commands | <data> |
eval | eval (noop) | mod_commands | [uuid:<uuid> ]<expression> |
expand | Execute an api with variable expansion | mod_commands | [uuid:<uuid> ]<cmd> <args> |
find_user_xml | Find a user | mod_commands | <key> <user> <domain> |
fsctl | FS control messages | mod_commands | [recover|send_sighup|hupall|pause [inbound|outbound]|resume [inbound|outbound]|shutdown [cancel|elegant|asap|now|restart]|sps|sps_peak_reset|sync_clock|sync_clock_when_idle|reclaim_mem|max_sessions|min_dtmf_duration [num]|max_dtmf_duration [num]|default_dtmf_duration [num]|min_idle_cpu|loglevel [level]|debug_level [level]] |
... | Shutdown | mod_commands | |
shutdown | Shutdown | mod_commands | |
version | Version | mod_commands | [short] |
global_getvar | Get global var | mod_commands | <var> |
global_setvar | Set global var | mod_commands | <var>=<value> [=<value2>] |
group_call | Generate a dial string to call a group | mod_commands | <group>[@<domain>] |
help | Show help for all the api commands | mod_commands | |
host_lookup | Lookup host | mod_commands | <hostname> |
hostname | Return the system hostname | mod_commands | |
interface_ip | Return the primary IP of an interface | mod_commands | [auto|ipv4|ipv6] <ifname> |
switchname | Return the switch name | mod_commands | |
gethost | gethostbyname | mod_commands | |
getenv | getenv | mod_commands | <name> |
hupall | hupall | mod_commands | <cause> [<var> <value>] |
in_group | Determine if a user is in a group | mod_commands | <user>[@<domain>] <group_name> |
is_lan_addr | See if an ip is a lan addr | mod_commands | <ip> |
limit_usage | Get the usage count of a limited resource | mod_commands | <backend> <realm> <id> |
limit_hash_usage | Deprecated: gets the usage count of a limited resource | mod_commands | <realm> <id> |
limit_status | Get the status of a limit backend | mod_commands | <backend> |
limit_reset | Reset the counters of a limit backend | mod_commands | <backend> |
limit_interval_reset | Reset the interval counter for a limited resource | mod_commands | <backend> <realm> <resource> |
list_users | List Users configured in Directory | mod_commands | [group <group>] [domain <domain>] [user <user>] [context <context>] |
load | Load Module | mod_commands | <mod_name> |
log | Log | mod_commands | <level> <message> |
md5 | Return md5 hash | mod_commands | <data> |
module_exists | Check if module exists | mod_commands | <module> |
msleep | Sleep N milliseconds | mod_commands | <milliseconds> |
nat_map | Manage NAT | mod_commands | [status|republish|reinit] | [add|del] <port> [tcp|udp] [static] |
originate | Originate a call | mod_commands | <call url> <exten>|&<application_name>(<app_args>) [<dialplan>] [<context>] [<cid_name>] [<cid_num>] [<timeout_sec>] |
pause | Pause media on a channel | mod_commands | <uuid> <on|off> |
quote_shell_arg | Quote/escape a string for use on shell command line | mod_commands | <data> |
regex | Evaluate a regex | mod_commands | <data>|<pattern>[|<subst string>][n|b] |
reloadacl | Reload XML | mod_commands | |
reload | Reload module | mod_commands | [-f] <mod_name> |
reloadxml | Reload XML | mod_commands | |
replace | Replace a string | mod_commands | <data>|<string1>|<string2> |
say_string | mod_commands | <module_name>[.<ext>] <lang>[.<ext>] <say_type> <say_method> [<say_gender>] <text> | |
sched_api | Schedule an api command | mod_commands | [+@]<time> <group_name> <command_string>[&] |
sched_broadcast | Schedule a broadcast event to a running call | mod_commands | [[+]<time>|@time] <uuid> <path> [aleg|bleg|both] |
sched_del | Delete a scheduled task | mod_commands | <task_id>|<group_id> |
sched_hangup | Schedule a running call to hangup | mod_commands | [+]<time> <uuid> [<cause>] |
sched_transfer | Schedule a transfer for a running call | mod_commands | [+]<time> <uuid> <extension> [<dialplan>] [<context>] |
show | Show various reports | mod_commands | codec|endpoint|application|api|dialplan|file|timer|calls [count]|channels [count|like <match string>]|calls|detailed_calls|bridged_calls|detailed_bridged_calls|aliases|complete|chat|management|modules|nat_map|say|interfaces|interface_types|tasks|limits|status |
sql_escape | Escape a string to prevent sql injection | mod_commands | <string> |
status | Show current status | mod_commands | |
strftime_tz | Display formatted time of timezone | mod_commands | <timezone_name> [<epoch>|][format string] |
stun | Execute STUN lookup | mod_commands | <stun_server>[:port] [<source_ip>[:<source_port]] |
time_test | Show time jitter | mod_commands | <mss> [count] |
timer_test | Exercise FS timer | mod_commands | <10|20|40|60|120> [<1..200>] [<timer_name>] |
tone_detect | Start tone detection on a channel | mod_commands | <uuid> <key> <tone_spec> [<flags> <timeout> <app> <args> <hits>] |
unload | Unload module | mod_commands | [-f] <mod_name> |
unsched_api | Unschedule an api command | mod_commands | <task_id> |
uptime | Show uptime | mod_commands | [us|ms|s|m|h|d|microseconds|milliseconds|seconds|minutes|hours|days] |
reg_url | mod_commands | <user>@<realm> | |
url_decode | Url decode a string | mod_commands | <string> |
url_encode | Url encode a string | mod_commands | <string> |
user_data | Find user data | mod_commands | <user>@<domain> [var|param|attr] <name> |
uuid_early_ok | stop ignoring early media | mod_commands | <uuid> |
user_exists | Find a user | mod_commands | <key> <user> <domain> |
uuid_answer | answer | mod_commands | <uuid> |
uuid_audio | uuid_audio | mod_commands | <uuid> [start [read|write] [mute|level <level>]|stop] |
uuid_break | Break out of media sent to channel | mod_commands | <uuid> [all] |
uuid_bridge | Bridge call legs | mod_commands | |
uuid_broadcast | Execute dialplan application | mod_commands | <uuid> <path> [aleg|bleg|holdb|both] |
uuid_buglist | List media bugs on a session | mod_commands | <uuid> |
uuid_chat | Send a chat message | mod_commands | <uuid> <text> |
uuid_codec_debug | Send codec a debug message | mod_commands | <uuid> audio|video <level> |
uuid_codec_param | Send codec a param | mod_commands | <uuid> audio|video read|write <param> <val> |
uuid_debug_media | Debug media | mod_commands | <uuid> <read|write|both|vread|vwrite|vboth|all> <on|off> |
uuid_deflect | Send a deflect | mod_commands | <uuid> <uri> |
uuid_displace | Displace audio | mod_commands | <uuid> [start|stop] <path> [<limit>] [mux] |
uuid_display | Update phone display | mod_commands | <uuid> <display> |
uuid_drop_dtmf | Drop all DTMF or replace it with a mask | mod_commands | <uuid> [on | off ] [ mask_digits <digits> | mask_file <file>] |
uuid_dump | Dump session vars | mod_commands | <uuid> [format] |
uuid_exists | Check if a uuid exists | mod_commands | <uuid> |
uuid_fileman | Manage session audio | mod_commands | <uuid> <cmd>:<val> |
uuid_flush_dtmf | Flush dtmf on a given uuid | mod_commands | <uuid> |
uuid_getvar | Get a variable from a channel | mod_commands | <uuid> <var> |
uuid_hold | Place call on hold | mod_commands | [off|toggle] <uuid> [<display>] |
uuid_kill | Kill channel | mod_commands | <uuid> [cause] |
uuid_send_message | Send MESSAGE to the endpoint | mod_commands | <uuid> <message> |
uuid_send_info | Send info to the endpoint | mod_commands | <uuid> [<mime_type> <mime_subtype>] <message> |
uuid_set_media_stats | Set media stats | mod_commands | <uuid> |
uuid_video_bitrate | Send video bitrate req. | mod_commands | <uuid> <bitrate> |
uuid_video_refresh | Send video refresh. | mod_commands | <uuid> |
uuid_outgoing_answer | Answer outgoing channel | mod_commands | <uuid> |
uuid_limit | Increase limit resource | mod_commands | <uuid> <backend> <realm> <resource> [<max>[/interval]] [number [dialplan [context]]] |
uuid_limit_release | Release limit resource | mod_commands | <uuid> <backend> [realm] [resource] |
uuid_limit_release | Release limit resource | mod_commands | <uuid> <backend> [realm] [resource] |
uuid_loglevel | Set loglevel on session | mod_commands | <uuid> <level> |
uuid_media | Reinvite FS in or out of media path | mod_commands | [off] <uuid> |
uuid_media_3p | Reinvite FS in or out of media path using 3pcc | mod_commands | [off] <uuid> |
uuid_media_reneg | Media negotiation | mod_commands | <uuid>[ <codec_string>] |
uuid_park | Park channel | mod_commands | <uuid> |
uuid_pause | Pause media on a channel | mod_commands | <uuid> <on|off> |
uuid_phone_event | Send an event to the phone | mod_commands | <uuid> |
uuid_ring_ready | Sending ringing to a channel | mod_commands | <uuid> [queued] |
uuid_pre_answer | pre_answer | mod_commands | <uuid> |
uuid_preprocess | Pre-process Channel | mod_commands | <> |
uuid_record | Record session audio | mod_commands | <uuid> [start|stop|mask|unmask] <path> [<limit>] |
uuid_recovery_refresh | Send a recovery_refresh | mod_commands | <uuid> <uri> |
uuid_recv_dtmf | Receive dtmf digits | mod_commands | <uuid> <dtmf_data> |
uuid_redirect | Send a redirect | mod_commands | <uuid> <uri> |
uuid_send_dtmf | Send dtmf digits | mod_commands | <uuid> <dtmf_data> |
uuid_session_heartbeat | uuid_session_heartbeat | mod_commands | <uuid> [sched] [0|<seconds>] |
uuid_setvar_multi | Set multiple variables | mod_commands | <uuid> <var>=<value>;<var>=<value>... |
uuid_setvar | Set a variable | mod_commands | <uuid> <var> [value] |
uuid_transfer | Transfer a session | mod_commands | <uuid> [-bleg|-both] <dest-exten> [<dialplan>] [<context>] |
uuid_dual_transfer | Transfer a session and its partner | mod_commands | <uuid> <A-dest-exten>[/<A-dialplan>][/<A-context>] <B-dest-exten>[/<B-dialplan>][/<B-context>] |
uuid_simplify | Try to cut out of a call path / attended xfer | mod_commands | <uuid> |
uuid_jitterbuffer | uuid_jitterbuffer | mod_commands | <uuid> [0|<min_msec>[:<max_msec>]] |
uuid_zombie_exec | Set zombie_exec flag on the specified uuid | mod_commands | <uuid> |
xml_flush_cache | Clear xml cache | mod_commands | <id> <key> <val> |
xml_locate | Find some xml | mod_commands | [root | <section> <tag> <tag_attr_name> <tag_attr_val>] |
xml_wrap | Wrap another api command in xml | mod_commands | <command> <args> |
file_exists | Check if a file exists on server | mod_commands | <file> |
getcputime | Gets CPU time in milliseconds (user,kernel) | mod_commands | [reset] |
json | JSON API | mod_commands | JSON |
conference | Conference module commands | mod_conference | |
db | db get/set | mod_db | [insert|delete|select|exists|count|list]/<realm>/<key>/<value> |
group | group [insert|delete|call] | mod_db | [insert|delete|call]:<group name>:<url> |
strepoch | Convert a date string into epoch time | mod_dptools | <string> |
page | Send a file as a page | mod_dptools | (var1=val1,var2=val2)<var1=val1,var2=val2><chan1>[:_:<chanN>] |
strmicroepoch | Convert a date string into micoepoch time | mod_dptools | <string> |
chat | chat | mod_dptools | <proto>|<from>|<to>|<message>|[<content-type>] |
strftime | strftime | mod_dptools | <format_string> |
presence | presence | mod_dptools | [in|out] <user> <rpid> <message> |
expr | Eval an expression | mod_expr | <expr> |
fifo | Return data about a fifo | mod_fifo | list|list_verbose|count|debug|status|has_outbound|importance [<fifo name>]|reparse [del_all] |
fifo_member | Add members to a fifo | mod_fifo | [add <fifo_name> <originate_string> [<simo_count>] [<timeout>] [<lag>] [<expires>] [<taking_calls>] | del <fifo_name> <originate_string>] |
fifo_add_outbound | Add outbound members to a fifo | mod_fifo | <node> <url> [<priority>] |
fifo_check_bridge | check if uuid is in a bridge | mod_fifo | <uuid>|<outbound_id> |
hash | hash get/set | mod_hash | [insert|delete|select]/<realm>/<key>/<value> |
hash_dump | dump hash/limit_hash data (used for synchronization) | mod_hash | all|limit|db [<realm>] |
hash_remote | hash remote | mod_hash | list|kill [name]|rescan |
voicemail | voicemail | mod_voicemail | rss [<host> <port> <uri> <user> <domain>] | [load|unload|reload] <profile> [reloadxml] |
voicemail_inject | voicemail_inject | mod_voicemail | [group=<group>[@domain]|domain=<domain>|<box>[@<domain>]] <sound_file> [<cid_num>] [<cid_name>] |
vm_inject | vm_inject | mod_voicemail | [group=<group>[@domain]|domain=<domain>|<box>[@<domain>]] <sound_file> [<cid_num>] [<cid_name>] |
vm_boxcount | vm_boxcount | mod_voicemail | [profile/]<user>@<domain>[|[new|saved|new-urgent|saved-urgent|all]] |
vm_prefs | vm_prefs | mod_voicemail | [profile/]<user>@<domain>[|[name_path|greeting_path|password]] |
vm_delete | vm_delete | mod_voicemail | <id>@<domain>[/profile] [<uuid>] |
vm_read | vm_read | mod_voicemail | <id>@<domain>[/profile] <read|unread> [<uuid>] |
vm_list | vm_list | mod_voicemail | <id>@<domain>[/profile] [xml] |
vm_fsdb_auth_login | vm_fsdb_auth_login | mod_voicemail | <profile> <domain> <user> <password> |
vm_fsdb_msg_count | vm_fsdb_msg_count | mod_voicemail | <format> <profile> <domain> <user> <folder> |
vm_fsdb_msg_list | vm_fsdb_msg_list | mod_voicemail | <format> <profile> <domain> <user> <folder> <filter> [msg-order = ASC | DESC] |
vm_fsdb_msg_get | vm_fsdb_msg_get | mod_voicemail | <format> <profile> <domain> <user> <uuid> |
vm_fsdb_msg_delete | vm_fsdb_msg_delete | mod_voicemail | <profile> <domain> <user> <uuid> |
vm_fsdb_msg_undelete | vm_fsdb_msg_undelete | mod_voicemail | <profile> <domain> <user> <uuid> |
vm_fsdb_msg_email | vm_fsdb_msg_email | mod_voicemail | <profile> <domain> <user> <uuid> <email> |
vm_fsdb_msg_purge | vm_fsdb_msg_purge | mod_voicemail | <profile> <domain> <user> |
vm_fsdb_msg_save | vm_fsdb_msg_save | mod_voicemail | <profile> <domain> <user> <uuid> |
vm_fsdb_msg_forward | vm_fsdb_msg_forward | mod_voicemail | <profile> <domain> <user> <uuid> <dst_domain> <dst_user> [prepend_file_location] |
vm_fsdb_pref_greeting_set | vm_fsdb_pref_greeting_set | mod_voicemail | <profile> <domain> <user> <slot> [file-path] |
vm_fsdb_pref_greeting_get | vm_fsdb_pref_greeting_get | mod_voicemail | <format> <profile> <domain> <user> [slot] |
vm_fsdb_pref_recname_set | vm_fsdb_pref_recname_set | mod_voicemail | <profile> <domain> <user> <file-path> |
vm_fsdb_pref_password_set | vm_fsdb_pref_password_set | mod_voicemail | <profile> <domain> <user> <password> |
valet_info | Valet Parking Info | mod_valet_parking | [<lot name>] |
httapi | HT-TAPI Hypertext Telephony API | mod_httapi | [debug_on|debug_off] |
spandsp_start_tone_detect | Start background tone detection with cadence | mod_spandsp | <uuid> <name> |
spandsp_stop_tone_detect | Stop background tone detection with cadence | mod_spandsp | <uuid> |
start_tdd_detect | Start background tdd detection | mod_spandsp | <uuid> |
stop_tdd_detect | Stop background tdd detection | mod_spandsp | <uuid> |
uuid_send_tdd | send tdd data to a uuid | mod_spandsp | <uuid> <text> |
opus_debug | Set OPUS Debug | mod_opus | <on|off> |
uuid_write_png | grab an image from a call | mod_png | |
telecast | telecast | mod_shout | |
hup_local_stream | Skip to next file in local_stream | mod_local_stream | <local_stream_name> |
reload_local_stream | Reloads a local_stream | mod_local_stream | <local_stream_name> |
stop_local_stream | Stops and unloads a local_stream | mod_local_stream | <local_stream_name> |
start_local_stream | Starts a new local_stream | mod_local_stream | <local_stream_name> |
show_local_stream | Shows a local stream | mod_local_stream | [local_stream_name [xml]] |
luarun | run a script | mod_lua | <script> |
lua | run a script as an api function | mod_lua | <script> |