Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
e00144ac
提交
e00144ac
authored
1月 09, 2012
作者:
Anthony Minessale
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add voicemail work tag
上级
625731a0
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
57 行增加
和
0 行删除
+57
-0
mod_httapi.c
src/mod/applications/mod_httapi/mod_httapi.c
+44
-0
mod_httapi_doc.txt
src/mod/applications/mod_httapi/mod_httapi_doc.txt
+13
-0
没有找到文件。
src/mod/applications/mod_httapi/mod_httapi.c
浏览文件 @
e00144ac
...
...
@@ -238,6 +238,49 @@ static switch_status_t digit_nomatch_action_callback(switch_ivr_dmachine_match_t
return
SWITCH_STATUS_BREAK
;
}
static
switch_status_t
parse_voicemail
(
const
char
*
tag_name
,
client_t
*
client
,
switch_xml_t
tag
,
const
char
*
body
)
{
const
char
*
check
=
switch_xml_attr
(
tag
,
"check"
);
const
char
*
auth
=
switch_xml_attr
(
tag
,
"auth-only"
);
const
char
*
profile
=
switch_xml_attr
(
tag
,
"profile"
);
const
char
*
domain
=
switch_xml_attr
(
tag
,
"domain"
);
const
char
*
id
=
switch_xml_attr
(
tag
,
"id"
);
char
*
ddom
=
NULL
;
char
*
str
;
switch_status_t
status
;
if
(
zstr
(
profile
))
profile
=
"default"
;
if
(
zstr
(
domain
))
{
if
((
ddom
=
switch_core_get_variable_dup
(
"domain"
)))
{
domain
=
ddom
;
}
}
if
(
switch_true
(
check
))
{
check
=
"check"
;
}
else
{
check
=
""
;
}
if
(
switch_true
(
auth
))
{
auth
=
"auth_only"
;
}
else
{
auth
=
""
;
}
str
=
switch_core_session_sprintf
(
client
->
session
,
"%s %s %s %s %s"
,
check
,
auth
,
profile
,
domain
,
id
);
while
(
*
str
==
' '
)
str
++
;
status
=
switch_core_session_execute_application
(
client
->
session
,
"voicemail"
,
str
);
switch_safe_free
(
ddom
);
return
status
;
}
static
switch_status_t
parse_break
(
const
char
*
tag_name
,
client_t
*
client
,
switch_xml_t
tag
,
const
char
*
body
)
{
return
SWITCH_STATUS_FALSE
;
...
...
@@ -2599,6 +2642,7 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_httapi_load)
bind_parser
(
"log"
,
parse_log
);
bind_parser
(
"continue"
,
parse_continue
);
bind_parser
(
"setVar"
,
parse_get_var
);
bind_parser
(
"voicemail"
,
parse_voicemail
);
if
(
do_config
()
!=
SWITCH_STATUS_SUCCESS
)
{
return
SWITCH_STATUS_FALSE
;
...
...
src/mod/applications/mod_httapi/mod_httapi_doc.txt
浏览文件 @
e00144ac
...
...
@@ -258,6 +258,19 @@ temp-action : Change url to submit to. just for the next loop.
permanent : Add as a permanent param or just once.
<voicemail action temp-action check auth-only profile domain id/>
: Get a Channel variable (depends on permissions)
ATTRS:
action : Change url to submit to.
temp-action : Change url to submit to. just for the next loop.
check : true to check (omit to leave)
auth-only : authenticate only and move on
profile : profile name to use (omit for "default")
domain : domain to use (omit for global domain variable)
id : id to use (omit to prompt for id)
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论