Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
03892b55
提交
03892b55
authored
4月 22, 2013
作者:
Seven Du
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix show module as json
上级
4e780190
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
7 行增加
和
7 行删除
+7
-7
mod_commands.c
src/mod/applications/mod_commands/mod_commands.c
+7
-7
没有找到文件。
src/mod/applications/mod_commands/mod_commands.c
浏览文件 @
03892b55
...
...
@@ -2042,7 +2042,7 @@ SWITCH_STANDARD_API(status_function)
stream
->
write_function
(
stream
,
"FreeSWITCH (Version %s) is %s%s"
,
SWITCH_VERSION_FULL_HUMAN
,
switch_core_ready
()
?
"ready"
:
"not ready"
,
nl
);
stream
->
write_function
(
stream
,
"%"
SWITCH_SIZE_T_FMT
" session(s) since startup%s"
,
switch_core_session_id
()
-
1
,
nl
);
switch_core_session_ctl
(
SCSC_LAST_SPS
,
&
last_sps
);
switch_core_session_ctl
(
SCSC_SPS
,
&
sps
);
...
...
@@ -2195,7 +2195,7 @@ SWITCH_STANDARD_API(ctl_function)
}
else
if
(
!
strcasecmp
(
argv
[
0
],
"debug_sql"
))
{
int
x
=
0
;
switch_core_session_ctl
(
SCSC_DEBUG_SQL
,
&
x
);
stream
->
write_function
(
stream
,
"+OK SQL DEBUG [%s]
\n
"
,
x
?
"on"
:
"off"
);
stream
->
write_function
(
stream
,
"+OK SQL DEBUG [%s]
\n
"
,
x
?
"on"
:
"off"
);
}
else
if
(
!
strcasecmp
(
argv
[
0
],
"sql"
))
{
if
(
argv
[
1
])
{
...
...
@@ -2204,7 +2204,7 @@ SWITCH_STANDARD_API(ctl_function)
x
=
1
;
}
switch_core_session_ctl
(
SCSC_SQL
,
&
x
);
stream
->
write_function
(
stream
,
"+OK
\n
"
);
stream
->
write_function
(
stream
,
"+OK
\n
"
);
}
}
else
if
(
!
strcasecmp
(
argv
[
0
],
"reclaim_mem"
))
{
...
...
@@ -3030,7 +3030,7 @@ SWITCH_STANDARD_API(uuid_media_neg_function)
msg
.
numeric_arg
++
;
uuid
++
;
}
if
((
lsession
=
switch_core_session_locate
(
uuid
)))
{
status
=
switch_core_session_receive_message
(
lsession
,
&
msg
);
switch_core_session_rwunlock
(
lsession
);
...
...
@@ -4598,7 +4598,7 @@ SWITCH_STANDARD_API(show_function)
}
sprintf
(
sql
,
"select type, name, ikey from interfaces where hostname='%s' and type = '%s' order by type,name"
,
hostname
,
command
);
}
else
if
(
!
strncasecmp
(
command
,
"module"
,
6
))
{
if
(
argv
[
1
])
{
if
(
argv
[
1
]
&&
strcasecmp
(
argv
[
1
],
"as"
)
)
{
sprintf
(
sql
,
"select distinct type, name, ikey, filename from interfaces where hostname='%s' and ikey = '%s' order by type,name"
,
hostname
,
argv
[
1
]);
}
else
{
...
...
@@ -5540,7 +5540,7 @@ SWITCH_STANDARD_API(uuid_loglevel)
if
(
!
zstr
(
cmd
)
&&
(
uuid
=
strdup
(
cmd
)))
{
if
((
text
=
strchr
(
uuid
,
' '
)))
{
*
text
++
=
'\0'
;
if
(
!
strncasecmp
(
text
,
"-b"
,
2
))
{
b
++
;
if
((
text
=
strchr
(
text
,
' '
)))
{
...
...
@@ -6049,7 +6049,7 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_commands_load)
SWITCH_ADD_API
(
commands_api_interface
,
"uuid_send_info"
,
"Send info to the endpoint"
,
uuid_send_info_function
,
INFO_SYNTAX
);
SWITCH_ADD_API
(
commands_api_interface
,
"uuid_video_refresh"
,
"Send video refresh."
,
uuid_video_refresh_function
,
VIDEO_REFRESH_SYNTAX
);
SWITCH_ADD_API
(
commands_api_interface
,
"uuid_outgoing_answer"
,
"Answer outgoing channel"
,
outgoing_answer_function
,
OUTGOING_ANSWER_SYNTAX
);
SWITCH_ADD_API
(
commands_api_interface
,
"uuid_limit"
,
"Increase limit resource"
,
uuid_limit_function
,
LIMIT_SYNTAX
);
SWITCH_ADD_API
(
commands_api_interface
,
"uuid_limit"
,
"Increase limit resource"
,
uuid_limit_function
,
LIMIT_SYNTAX
);
SWITCH_ADD_API
(
commands_api_interface
,
"uuid_limit_release"
,
"Release limit resource"
,
uuid_limit_release_function
,
LIMIT_RELEASE_SYNTAX
);
SWITCH_ADD_API
(
commands_api_interface
,
"uuid_limit_release"
,
"Release limit resource"
,
uuid_limit_release_function
,
LIMIT_RELEASE_SYNTAX
);
SWITCH_ADD_API
(
commands_api_interface
,
"uuid_loglevel"
,
"Set loglevel on session"
,
uuid_loglevel
,
UUID_LOGLEVEL_SYNTAX
);
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论