Server&&Freeswitch&&命令详解

Server&&Freeswitch&&命令详解

  • 服务命令
    • freeswitch - 启动freeswitch服务并进入控制台
    • freeswitch -nc - 启动freeswitch服务并后台运行
    • fs_cli - 进入freeswitch控制台
  • 控制台命令
    • help - 查看帮助
    • ... 或 shutdown - 停止freeswitch服务
    • module_exists - 查询目标模块是否已经加载
    • load - 加载目标模块
    • reload - 重新加载目标模块
    • status - 查看当前服务

服务命令

freeswitch - 启动freeswitch服务并进入控制台

freeswitch -nc - 启动freeswitch服务并后台运行

fs_cli - 进入freeswitch控制台

控制台命令

help - 查看帮助

最!最!最!重要的命令,如果你想要查找某个freeswitch命令,就在控制台内执行help命令吧

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
freeswitch@freeswitch110> help
Valid Commands:

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

… 或 shutdown - 停止freeswitch服务

module_exists - 查询目标模块是否已经加载

1
2
3
freeswitch@freeswitch110> module_exists mod_av
#值为ture则说明已经加载,值为false则说明未加载
true

load - 加载目标模块

1
freeswitch@freeswitch110> load mod_av

reload - 重新加载目标模块

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
freeswitch@freeswitch110> reload mod_av

2020-05-11 19:17:01.181323 [NOTICE] switch_loadable_module.c:1186 Deleting Codec H264 99 H264 Video 90000hz 0ms
2020-05-11 19:17:01.181323 [NOTICE] switch_loadable_module.c:1186 Deleting Codec H263 34 H263 Video 90000hz 0ms
2020-05-11 19:17:01.181323 [NOTICE] switch_loadable_module.c:1186 Deleting Codec H263-1998 115 H263+ Video 90000hz 0ms
2020-05-11 19:17:01.181323 [INFO] mod_enum.c:884 ENUM Reloaded
2020-05-11 19:17:01.181323 [NOTICE] switch_loadable_module.c:1318 Deleting API Function 'av'
2020-05-11 19:17:01.181323 [NOTICE] switch_loadable_module.c:1393 Deleting File Format 'av'
2020-05-11 19:17:01.181323 [NOTICE] switch_loadable_module.c:1393 Deleting File Format 'rtmp'
2020-05-11 19:17:01.181323 [NOTICE] switch_loadable_module.c:1393 Deleting File Format 'rtsp'
2020-05-11 19:17:01.181323 [NOTICE] switch_loadable_module.c:1393 Deleting File Format 'mp4'
2020-05-11 19:17:01.181323 [NOTICE] switch_loadable_module.c:1393 Deleting File Format 'm4a'
2020-05-11 19:17:01.181323 [NOTICE] switch_loadable_module.c:1393 Deleting File Format 'mov'
2020-05-11 19:17:01.181323 [NOTICE] switch_loadable_module.c:1393 Deleting File Format 'mkv'
2020-05-11 19:17:01.181323 [NOTICE] switch_loadable_module.c:1393 Deleting File Format 'webm'
2020-05-11 19:17:01.181323 [CONSOLE] switch_loadable_module.c:2398 Stopping: mod_av
2020-05-11 19:17:01.181323 [CONSOLE] switch_loadable_module.c:2418 mod_av unloaded.
2020-05-11 19:17:01.181323 [INFO] switch_time.c:1433 Timezone reloaded 1750 definitions
av_log callback installed, level= 32
2020-05-11 19:17:01.181323 [CONSOLE] switch_loadable_module.c:1804 Successfully Loaded [mod_av]
2020-05-11 19:17:01.181323 [NOTICE] switch_loadable_module.c:247 Adding Codec H264 99 H264 Video 90000hz 0ms 1ch (VBR)
2020-05-11 19:17:01.181323 [NOTICE] switch_loadable_module.c:247 Adding Codec H263 34 H263 Video 90000hz 0ms 1ch (VBR)
2020-05-11 19:17:01.181323 [NOTICE] switch_loadable_module.c:247 Adding Codec H263-1998 115 H263+ Video 90000hz 0ms 1ch (VBR)
2020-05-11 19:17:01.181323 [NOTICE] switch_loadable_module.c:412 Adding API Function 'av'
2020-05-11 19:17:01.181323 [NOTICE] switch_loadable_module.c:480 Adding File Format 'av'
2020-05-11 19:17:01.181323 [NOTICE] switch_loadable_module.c:480 Adding File Format 'rtmp'
2020-05-11 19:17:01.181323 [NOTICE] switch_loadable_module.c:480 Adding File Format 'rtsp'
2020-05-11 19:17:01.181323 [NOTICE] switch_loadable_module.c:480 Adding File Format 'mp4'
2020-05-11 19:17:01.181323 [NOTICE] switch_loadable_module.c:480 Adding File Format 'm4a'
2020-05-11 19:17:01.181323 [NOTICE] switch_loadable_module.c:480 Adding File Format 'mov'
2020-05-11 19:17:01.181323 [NOTICE] switch_loadable_module.c:480 Adding File Format 'mkv'
2020-05-11 19:17:01.181323 [NOTICE] switch_loadable_module.c:480 Adding File Format 'webm'

+OK Reloading XML
+OK module unloaded
+OK module loaded

status - 查看当前服务

1
2
3
4
5
6
7
8
9
10
freeswitch@freeswitch110> status

UP 0 years, 0 days, 0 hours, 33 minutes, 10 seconds, 890 milliseconds, 682 microseconds
FreeSWITCH (Version 1.10.2-release git f7bdd38 2019-12-31 14:01:19Z 64bit) is ready
0 session(s) since startup
0 session(s) - peak 0, last 5min 0
0 session(s) per Sec out of max 30, peak 0, last 5min 0
1000 session(s) max
min idle cpu 0.00/99.93
Current Stack Size/Max 240K/8192K

注:以下命令均在freeswitch控制台执行。

1.打开/关闭 debug调试模式,查看详细日志

freeswitch@internal> sofia global siptrace on/off

4.退出freeswitch控制台

freeswitch@internal> freeswitch@internal> /quit

注:注意斜杠“/”前面有空格

6.查看freeswitch的conference 会议房间 使用情况

freeswitch@internal> conference list

7.强制将id为12的视频置于最前面
freeswitch@internal>conference 12345 vid-floor 12 -f

8.手动加载module mod_fail2ban,该模块通过自定义的匹配规则匹配并进行相应处理

freeswitch@internal>module_exists mod_fail2ban

9.列出某个Profile上所有已注册用户

freeswitch@internal>sofia status profile internal reg

10.查看internal 部分信息