Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
1242f0b6
提交
1242f0b6
authored
1月 09, 2012
作者:
Anthony Minessale
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update docs
上级
de3e008b
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
41 行增加
和
6 行删除
+41
-6
httapi.conf.xml
conf/autoload_configs/httapi.conf.xml
+35
-2
mod_httapi.c
src/mod/applications/mod_httapi/mod_httapi.c
+4
-2
mod_httapi_doc.txt
src/mod/applications/mod_httapi/mod_httapi_doc.txt
+2
-2
没有找到文件。
conf/autoload_configs/httapi.conf.xml
浏览文件 @
1242f0b6
...
...
@@ -26,7 +26,26 @@
<!-- <permission name="all" value="true"/> -->
<!--<permission name="none" value="true"/> -->
<permission
name=
"set-params"
value=
"true"
/>
<permission
name=
"set-vars"
value=
"false"
/>
<permission
name=
"set-vars"
value=
"false"
>
<!-- default to "deny" or "allow" -->
<!-- type attr can be "deny" or "allow" nothing defaults to opposite of the list default so allow in this case -->
<!--
<variable-list default="deny">
<variable name="caller_id_name"/>
<variable name="hangup"/>
</variable-list>
-->
</permission>
<permission
name=
"get-vars"
value=
"false"
>
<!-- default to "deny" or "allow" -->
<!-- type attr can be "deny" or "allow" nothing defaults to opposite of the list default so allow in this case -->
<!--
<variable-list default="deny">
<variable name="caller_id_name"/>
<variable name="hangup"/>
</variable-list>
-->
</permission>
<permission
name=
"extended-data"
value=
"false"
/>
<permission
name=
"execute-apps"
value=
"true"
>
<!-- default to "deny" or "allow" -->
...
...
@@ -36,7 +55,21 @@
<application
name=
"hangup"
/>
</application-list>
</permission>
<permission
name=
"expand-vars-in-tag-body"
value=
"false"
/>
<permission
name=
"expand-vars-in-tag-body"
value=
"false"
>
<!-- default to "deny" or "allow" -->
<!-- type attr can be "deny" or "allow" nothing defaults to opposite of the list default so allow in this case -->
<!--
<variable-list default="deny">
<variable name="caller_id_name"/>
<variable name="hangup"/>
</variable-list>
<api-list default="deny">
<api name="expr"/>
<api name="lua"/>
</api-list>
-->
</permission>
<permission
name=
"dial"
value=
"true"
/>
<permission
name=
"dial-set-context"
value=
"false"
/>
<permission
name=
"dial-set-dialplan"
value=
"false"
/>
...
...
src/mod/applications/mod_httapi/mod_httapi.c
浏览文件 @
1242f0b6
...
...
@@ -999,7 +999,7 @@ static switch_status_t parse_xml(client_t *client)
}
switch_event_add_header_string
(
client
->
params
,
SWITCH_STACK_BOTTOM
,
tag
->
name
,
val
);
}
tag
=
tag
->
sibling
;
tag
=
tag
->
ordered
;
}
}
}
...
...
@@ -1014,6 +1014,8 @@ static switch_status_t parse_xml(client_t *client)
if
(
zstr
(
val
))
{
val
=
NULL
;
}
printf
(
"WTF [%s][%s]
\n
"
,
tag
->
name
,
val
);
if
(
client
->
profile
->
perms
.
set_vars
&&
(
!
client
->
profile
->
var_params
.
set_var_list
||
switch_event_check_permission_list
(
client
->
profile
->
var_params
.
set_var_list
,
tag
->
name
)))
{
...
...
@@ -1022,7 +1024,7 @@ static switch_status_t parse_xml(client_t *client)
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_ERROR
,
"variable %s permission denied!
\n
"
,
tag
->
name
);
}
}
tag
=
tag
->
sibling
;
tag
=
tag
->
ordered
;
}
}
}
...
...
src/mod/applications/mod_httapi/mod_httapi_doc.txt
浏览文件 @
1242f0b6
...
...
@@ -18,10 +18,10 @@ The format is roughly as described below (We could use a DTD maybe).
<document type="xml/freeswitch-httapi">
<params>
<param name="" value=""/
>
<someparam>someval</someparam
>
</params>
<variables>
<variable name="" value=""/
>
<somevar>someval</somevar
>
</variables>
<work>
<...>
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论