Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
29747344
提交
29747344
authored
6月 09, 2014
作者:
Nathan Neulinger
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
FS-477 mod_skinny: re-add ability to set digit timeout in patterns, update example configs
上级
8b6fd66f
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
20 行增加
和
7 行删除
+20
-7
skinny-patterns.xml
conf/vanilla/dialplan/skinny-patterns.xml
+3
-3
internal.xml
conf/vanilla/skinny_profiles/internal.xml
+3
-0
skinny-patterns.xml
...od/endpoints/mod_skinny/conf/dialplan/skinny-patterns.xml
+3
-3
internal.xml
...od/endpoints/mod_skinny/conf/skinny_profiles/internal.xml
+1
-0
mod_skinny.c
src/mod/endpoints/mod_skinny/mod_skinny.c
+10
-1
没有找到文件。
conf/vanilla/dialplan/skinny-patterns.xml
浏览文件 @
29747344
...
@@ -7,17 +7,17 @@
...
@@ -7,17 +7,17 @@
The special applications:
The special applications:
- skinny-process tells skinny to process the call (route, set call forwarding, ...)
- skinny-process tells skinny to process the call (route, set call forwarding, ...)
- skinny-drop tells skinny to drop the call
- skinny-drop tells skinny to drop the call
- skinny-wait tells skinny to wait
for more digits
- skinny-wait tells skinny to wait
'data' seconds for more numbers before drop
-->
-->
<!-- http://wiki.freeswitch.org/wiki/Mod_skinny -->
<!-- http://wiki.freeswitch.org/wiki/Mod_skinny -->
<include>
<include>
<context
name=
"skinny-patterns"
>
<context
name=
"skinny-patterns"
>
<!--
<!--
Wait
for another digit by
default
Wait
10 seconds for another digit by default, if data not specified, uses profile
default
-->
-->
<extension
name=
"Default"
>
<extension
name=
"Default"
>
<condition>
<condition>
<action
application=
"skinny-wait"
/>
<action
application=
"skinny-wait"
data=
"10"
/>
</condition>
</condition>
</extension>
</extension>
...
...
conf/vanilla/skinny_profiles/internal.xml
浏览文件 @
29747344
...
@@ -12,6 +12,9 @@
...
@@ -12,6 +12,9 @@
<param
name=
"odbc-dsn"
value=
""
/>
<param
name=
"odbc-dsn"
value=
""
/>
<param
name=
"debug"
value=
"4"
/>
<param
name=
"debug"
value=
"4"
/>
<param
name=
"auto-restart"
value=
"true"
/>
<param
name=
"auto-restart"
value=
"true"
/>
<!-- timeout to wait for another digit in milliseconds -->
<param
name=
"digit-timeout"
value=
"10000"
/>
</settings>
</settings>
<soft-key-set-sets>
<soft-key-set-sets>
<soft-key-set-set
name=
"default"
>
<soft-key-set-set
name=
"default"
>
...
...
src/mod/endpoints/mod_skinny/conf/dialplan/skinny-patterns.xml
浏览文件 @
29747344
...
@@ -7,17 +7,17 @@
...
@@ -7,17 +7,17 @@
The special applications:
The special applications:
- skinny-process tells skinny to process the call (route, set call forwarding, ...)
- skinny-process tells skinny to process the call (route, set call forwarding, ...)
- skinny-drop tells skinny to drop the call
- skinny-drop tells skinny to drop the call
- skinny-wait tells skinny to wait
for more digits
- skinny-wait tells skinny to wait
'data' seconds for more numbers before drop
-->
-->
<!-- http://wiki.freeswitch.org/wiki/Mod_skinny -->
<!-- http://wiki.freeswitch.org/wiki/Mod_skinny -->
<include>
<include>
<context
name=
"skinny-patterns"
>
<context
name=
"skinny-patterns"
>
<!--
<!--
Wait
for another digit by
default
Wait
10 seconds for another digit by default, if data not specified, uses profile
default
-->
-->
<extension
name=
"Default"
continue=
"true"
>
<extension
name=
"Default"
continue=
"true"
>
<condition>
<condition>
<action
application=
"skinny-wait"
/>
<action
application=
"skinny-wait"
data=
"10"
/>
</condition>
</condition>
</extension>
</extension>
...
...
src/mod/endpoints/mod_skinny/conf/skinny_profiles/internal.xml
浏览文件 @
29747344
...
@@ -15,6 +15,7 @@
...
@@ -15,6 +15,7 @@
<param
name=
"ext-voicemail"
value=
"vmain"
/>
<param
name=
"ext-voicemail"
value=
"vmain"
/>
<param
name=
"ext-redial"
value=
"redial"
/>
<param
name=
"ext-redial"
value=
"redial"
/>
<!-- <param name="ext-meetme" value="conference"/> -->
<!-- <param name="ext-meetme" value="conference"/> -->
<param
name=
"digit-timeout"
value=
"10000"
/>
-->
<!-- usually place this one on the directory entry for a skinny phone and not global -->
<!-- usually place this one on the directory entry for a skinny phone and not global -->
<!-- <param name="ext-pickup" value="pickup"/> -->
<!-- <param name="ext-pickup" value="pickup"/> -->
...
...
src/mod/endpoints/mod_skinny/mod_skinny.c
浏览文件 @
29747344
...
@@ -751,6 +751,7 @@ switch_status_t channel_on_routing(switch_core_session_t *session)
...
@@ -751,6 +751,7 @@ switch_status_t channel_on_routing(switch_core_session_t *session)
char
*
data
=
NULL
;
char
*
data
=
NULL
;
listener_t
*
listener
=
NULL
;
listener_t
*
listener
=
NULL
;
struct
channel_on_routing_helper
helper
=
{
0
};
struct
channel_on_routing_helper
helper
=
{
0
};
int
digit_timeout
;
if
(
switch_test_flag
(
tech_pvt
,
TFLAG_FORCE_ROUTE
))
{
if
(
switch_test_flag
(
tech_pvt
,
TFLAG_FORCE_ROUTE
))
{
action
=
SKINNY_ACTION_PROCESS
;
action
=
SKINNY_ACTION_PROCESS
;
...
@@ -783,7 +784,15 @@ switch_status_t channel_on_routing(switch_core_session_t *session)
...
@@ -783,7 +784,15 @@ switch_status_t channel_on_routing(switch_core_session_t *session)
atoi
(
switch_channel_get_variable
(
channel
,
"skinny_device_instance"
)),
&
listener
);
atoi
(
switch_channel_get_variable
(
channel
,
"skinny_device_instance"
)),
&
listener
);
if
(
listener
)
{
if
(
listener
)
{
listener
->
digit_timeout_time
=
switch_mono_micro_time_now
()
+
listener
->
profile
->
digit_timeout
*
1000
;
digit_timeout
=
listener
->
profile
->
digit_timeout
;
if
(
!
zstr
(
data
))
{
digit_timeout
=
atoi
(
data
);
if
(
digit_timeout
<
100
)
{
digit_timeout
*=
1000
;
}
}
listener
->
digit_timeout_time
=
switch_mono_micro_time_now
()
+
digit_timeout
*
1000
;
}
else
{
}
else
{
switch_log_printf
(
SWITCH_CHANNEL_SESSION_LOG
(
session
),
SWITCH_LOG_WARNING
,
"Could not find listener %s:%s for Channel %s
\n
"
,
switch_log_printf
(
SWITCH_CHANNEL_SESSION_LOG
(
session
),
SWITCH_LOG_WARNING
,
"Could not find listener %s:%s for Channel %s
\n
"
,
switch_channel_get_variable
(
channel
,
"skinny_device_name"
),
switch_channel_get_variable
(
channel
,
"skinny_device_instance"
),
switch_channel_get_variable
(
channel
,
"skinny_device_name"
),
switch_channel_get_variable
(
channel
,
"skinny_device_instance"
),
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论