Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
32ec4319
提交
32ec4319
authored
1月 07, 2012
作者:
Anthony Minessale
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
temp-action attr
上级
8c600038
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
31 行增加
和
16 行删除
+31
-16
mod_httapi.c
src/mod/applications/mod_httapi/mod_httapi.c
+5
-0
mod_httapi_doc.txt
src/mod/applications/mod_httapi/mod_httapi_doc.txt
+26
-16
没有找到文件。
src/mod/applications/mod_httapi/mod_httapi.c
浏览文件 @
32ec4319
...
...
@@ -929,10 +929,15 @@ static switch_status_t parse_record(const char *tag_name, client_t *client, swit
static
switch_status_t
parse_common
(
const
char
*
tag_name
,
client_t
*
client
,
switch_xml_t
tag
,
const
char
*
body
)
{
const
char
*
action
=
switch_xml_attr
(
tag
,
"action"
);
const
char
*
tmp_action
=
switch_xml_attr
(
tag
,
"temp-action"
);
if
(
action
)
{
switch_event_add_header_string
(
client
->
params
,
SWITCH_STACK_BOTTOM
,
"url"
,
action
);
}
if
(
tmp_action
)
{
switch_event_add_header_string
(
client
->
one_time_params
,
SWITCH_STACK_BOTTOM
,
"url"
,
tmp_action
);
}
return
SWITCH_STATUS_SUCCESS
;
}
...
...
src/mod/applications/mod_httapi/mod_httapi_doc.txt
浏览文件 @
32ec4319
...
...
@@ -71,7 +71,8 @@ ATTRS:
file : The file
name : Param name to save result.
error-file : Error file to play on invalid input.
action : Change the new target url
action : Change the new target url.
temp-action : Change url to submit to. just for the next loop.
digit-timeout : Timeout waiting for digits after file plays (when input bindings are present)
input-timeout : Timeout waiting for more digits in a multi-digit input.
loops : max times to play the file when input bindings are present.
...
...
@@ -82,13 +83,14 @@ asr-grammar : ASR grammar to use
<record file name error-file action digit-timeout input-timeout><bind action strip>*EXPR*</bind></record>
: Records a file, optionally collects input and posts the file back to the target url
: Records a file, optionally collects input and posts the file back to the target url
.
ATTRS:
file : The file
name : Param name to save result.
error-file : Error file to play on invalid input.
action : Change the new target url
action : Change the new target url.
temp-action : Change url to submit to. just for the next loop.
digit-timeout : Timeout waiting for digits after file plays (when input bindings are present)
input-timeout : Timeout waiting for more digits in a multi-digit input.
...
...
@@ -103,7 +105,8 @@ ATTRS:
milliseconds : Number of milliseconds to pause
name : Param name to save result.
error-file : Error file to play on invalid input.
action : Change the new target url
action : Change the new target url.
temp-action : Change url to submit to. just for the next loop.
digit-timeout : Timeout waiting for digits after file plays (when input bindings are present)
input-timeout : Timeout waiting for more digits in a multi-digit input.
loops : max times to play the file when input bindings are present.
...
...
@@ -119,7 +122,8 @@ ATTRS:
file : The file
name : Param name to save result.
error-file : Error file to play on invalid input.
action : Change the new target url
action : Change the new target url.
temp-action : Change url to submit to. just for the next loop.
digit-timeout : Timeout waiting for digits after file plays (when input bindings are present)
input-timeout : Timeout waiting for more digits in a multi-digit input.
loops : max times to play the file when input bindings are present.
...
...
@@ -137,7 +141,8 @@ ATTRS:
file : The file
name : Param name to save result.
error-file : Error file to play on invalid input.
action : Change the new target url
action : Change the new target url.
temp-action : Change url to submit to. just for the next loop.
digit-timeout : Timeout waiting for digits after file plays (when input bindings are present)
input-timeout : Timeout waiting for more digits in a multi-digit input.
loops : max times to play the file when input bindings are present.
...
...
@@ -154,7 +159,8 @@ gender : gender (fs param)
: Execute a FreeSWITCH app.
ATTRS:
application : The app to run
action : Change url to submit to
action : Change url to submit to.
temp-action : Change url to submit to. just for the next loop.
data : Alternate source for app data
*DATA* : The app data
...
...
@@ -164,7 +170,8 @@ data : Alternate source for app data
: Send a SMS message.
ATTRS:
to : The dest number
action : Change url to submit to
action : Change url to submit to.
temp-action : Change url to submit to. just for the next loop.
*DATA* : The message data
...
...
@@ -179,7 +186,8 @@ context : Dialplan context.
dialplan : Dialplan dialplan.
caller-id-name : Caller ID Name.
caller-id-number : Caller ID Number.
action : Change url to submit to
action : Change url to submit to.
temp-action : Change url to submit to. just for the next loop.
*DATA* : Number to dial or originate string
...
...
@@ -193,7 +201,7 @@ ATTRS:
limit : Timeout in seconds.
name : Name to use for input values.
action : URL action to use.
temp-action : Change url to submit to. just for the next loop.
...
...
@@ -203,8 +211,8 @@ action : URL action to use.
ATTRS:
profile : Conference profile to use.
action : Change url to submit to
action : Change url to submit to
.
temp-action : Change url to submit to. just for the next loop.
...
...
@@ -213,8 +221,8 @@ action : Change url to submit to
ATTRS:
cause : Hangup cause
action : Change url to submit to
action : Change url to submit to
.
temp-action : Change url to submit to. just for the next loop.
...
...
@@ -230,13 +238,15 @@ action : Change url to submit to
ATTRS:
level : The log level to use.
clean : If true do not pring log prefix.
action : Change url to submit to
action : Change url to submit to.
temp-action : Change url to submit to. just for the next loop.
<continue action>
: Just continue (no-op)
ATTRS:
action : Change url to submit to
action : Change url to submit to.
temp-action : Change url to submit to. just for the next loop.
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论