Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
7340b7a9
提交
7340b7a9
authored
6月 18, 2014
作者:
Brian West
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'master' of
ssh://git.freeswitch.org/freeswitch
上级
d2a487dc
e279ae82
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
15 行增加
和
1 行删除
+15
-1
skinny-example.xml
...ints/mod_skinny/conf/directory/default/skinny-example.xml
+1
-0
mod_skinny.h
src/mod/endpoints/mod_skinny/mod_skinny.h
+1
-0
skinny_server.c
src/mod/endpoints/mod_skinny/skinny_server.c
+13
-1
没有找到文件。
src/mod/endpoints/mod_skinny/conf/directory/default/skinny-example.xml
浏览文件 @
7340b7a9
...
...
@@ -7,6 +7,7 @@
<param name="ext-voicemail" value="voicemail">
<param name="ext-redial" value="redial">
<param name="ext-meetme" value="conference">
<param name="ext-autodial" value="operator">
-->
<!-- if you define an extension that runs 'pickup' application with 'key' as the data
...
...
src/mod/endpoints/mod_skinny/mod_skinny.h
浏览文件 @
7340b7a9
...
...
@@ -203,6 +203,7 @@ struct listener {
char
*
ext_meetme
;
char
*
ext_pickup
;
char
*
ext_cfwdall
;
char
*
ext_autodial
;
};
typedef
struct
listener
listener_t
;
...
...
src/mod/endpoints/mod_skinny/skinny_server.c
浏览文件 @
7340b7a9
...
...
@@ -285,7 +285,15 @@ switch_status_t skinny_session_process_dest(switch_core_session_t *session, list
channel
=
switch_core_session_get_channel
(
session
);
tech_pvt
=
switch_core_session_get_private
(
session
);
if
(
!
dest
)
{
// get listener profile setting for ringdown/autodial
// if initial offhook - and we have a ringdown/autodial configured, just dial it in one shot
if
(
!
dest
&&
append_dest
==
'\0'
&&
listener
->
ext_autodial
)
{
switch_log_printf
(
SWITCH_CHANNEL_SESSION_LOG
(
session
),
SWITCH_LOG_WARNING
,
"triggering auto dial to (%s)
\n
"
,
listener
->
ext_autodial
);
tech_pvt
->
caller_profile
->
destination_number
=
switch_core_strdup
(
tech_pvt
->
caller_profile
->
pool
,
listener
->
ext_autodial
);
switch_set_flag_locked
(
tech_pvt
,
TFLAG_FORCE_ROUTE
);
}
else
if
(
!
dest
)
{
if
(
strlen
(
tech_pvt
->
caller_profile
->
destination_number
)
==
0
)
{
/* no digit yet */
send_start_tone
(
listener
,
SKINNY_TONE_DIALTONE
,
0
,
line_instance
,
tech_pvt
->
call_id
);
}
...
...
@@ -1128,6 +1136,10 @@ switch_status_t skinny_handle_register(listener_t *listener, skinny_message_t *r
if
(
!
listener
->
ext_cfwdall
||
strcmp
(
value
,
listener
->
ext_cfwdall
))
{
listener
->
ext_cfwdall
=
switch_core_strdup
(
profile
->
pool
,
value
);
}
}
else
if
(
!
strcasecmp
(
name
,
"ext-autodial"
))
{
if
(
!
listener
->
ext_autodial
||
strcmp
(
value
,
listener
->
ext_autodial
))
{
listener
->
ext_autodial
=
switch_core_strdup
(
profile
->
pool
,
value
);
}
}
}
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论