Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
690b3b5b
提交
690b3b5b
authored
5月 09, 2011
作者:
Moises Silva
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add uuid completion to uuid_outgoing_answer
fix segfault due to typo in uuid_outgoing_answer
上级
72f2ffce
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
5 行增加
和
4 行删除
+5
-4
mod_commands.c
src/mod/applications/mod_commands/mod_commands.c
+5
-4
没有找到文件。
src/mod/applications/mod_commands/mod_commands.c
浏览文件 @
690b3b5b
...
@@ -2050,7 +2050,7 @@ SWITCH_STANDARD_API(kill_function)
...
@@ -2050,7 +2050,7 @@ SWITCH_STANDARD_API(kill_function)
#define OUTGOING_ANSWER_SYNTAX "<uuid>"
#define OUTGOING_ANSWER_SYNTAX "<uuid>"
SWITCH_STANDARD_API
(
outgoing_answer_function
)
SWITCH_STANDARD_API
(
outgoing_answer_function
)
{
{
switch_core_session_t
*
a
session
=
NULL
;
switch_core_session_t
*
outgoing_
session
=
NULL
;
char
*
mycmd
=
NULL
;
char
*
mycmd
=
NULL
;
if
(
zstr
(
cmd
)
||
!
(
mycmd
=
strdup
(
cmd
)))
{
if
(
zstr
(
cmd
)
||
!
(
mycmd
=
strdup
(
cmd
)))
{
...
@@ -2058,17 +2058,17 @@ SWITCH_STANDARD_API(outgoing_answer_function)
...
@@ -2058,17 +2058,17 @@ SWITCH_STANDARD_API(outgoing_answer_function)
return
SWITCH_STATUS_SUCCESS
;
return
SWITCH_STATUS_SUCCESS
;
}
}
if
(
zstr
(
mycmd
)
||
!
(
a
session
=
switch_core_session_locate
(
mycmd
)))
{
if
(
zstr
(
mycmd
)
||
!
(
outgoing_
session
=
switch_core_session_locate
(
mycmd
)))
{
stream
->
write_function
(
stream
,
"-ERR No Such Channel!
\n
"
);
stream
->
write_function
(
stream
,
"-ERR No Such Channel!
\n
"
);
}
else
{
}
else
{
switch_channel_t
*
channel
=
switch_core_session_get_channel
(
a
session
);
switch_channel_t
*
channel
=
switch_core_session_get_channel
(
outgoing_
session
);
if
(
switch_channel_direction
(
channel
)
==
SWITCH_CALL_DIRECTION_OUTBOUND
)
{
if
(
switch_channel_direction
(
channel
)
==
SWITCH_CALL_DIRECTION_OUTBOUND
)
{
switch_channel_mark_answered
(
channel
);
switch_channel_mark_answered
(
channel
);
stream
->
write_function
(
stream
,
"+OK
\n
"
);
stream
->
write_function
(
stream
,
"+OK
\n
"
);
}
else
{
}
else
{
stream
->
write_function
(
stream
,
"-ERR Not an outbound channel!
\n
"
);
stream
->
write_function
(
stream
,
"-ERR Not an outbound channel!
\n
"
);
}
}
switch_core_session_rwunlock
(
session
);
switch_core_session_rwunlock
(
outgoing_
session
);
}
}
switch_safe_free
(
mycmd
);
switch_safe_free
(
mycmd
);
...
@@ -5210,6 +5210,7 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_commands_load)
...
@@ -5210,6 +5210,7 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_commands_load)
switch_console_set_complete
(
"add uuid_hold ::console::list_uuid"
);
switch_console_set_complete
(
"add uuid_hold ::console::list_uuid"
);
switch_console_set_complete
(
"add uuid_jitterbuffer ::console::list_uuid"
);
switch_console_set_complete
(
"add uuid_jitterbuffer ::console::list_uuid"
);
switch_console_set_complete
(
"add uuid_kill ::console::list_uuid"
);
switch_console_set_complete
(
"add uuid_kill ::console::list_uuid"
);
switch_console_set_complete
(
"add uuid_outgoing_answer ::console::list_uuid"
);
switch_console_set_complete
(
"add uuid_limit_release ::console::list_uuid"
);
switch_console_set_complete
(
"add uuid_limit_release ::console::list_uuid"
);
switch_console_set_complete
(
"add uuid_loglevel ::console::list_uuid console"
);
switch_console_set_complete
(
"add uuid_loglevel ::console::list_uuid console"
);
switch_console_set_complete
(
"add uuid_loglevel ::console::list_uuid alert"
);
switch_console_set_complete
(
"add uuid_loglevel ::console::list_uuid alert"
);
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论