Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
0fa438a7
提交
0fa438a7
authored
3月 22, 2013
作者:
Jeff Lenk
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
FS-5178 --resolve
上级
0f4f0e71
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
27 行增加
和
4 行删除
+27
-4
mod_skinny.c
src/mod/endpoints/mod_skinny/mod_skinny.c
+19
-1
mod_skinny.h
src/mod/endpoints/mod_skinny/mod_skinny.h
+3
-0
skinny_api.c
src/mod/endpoints/mod_skinny/skinny_api.c
+2
-0
skinny_server.c
src/mod/endpoints/mod_skinny/skinny_server.c
+3
-3
没有找到文件。
src/mod/endpoints/mod_skinny/mod_skinny.c
浏览文件 @
0fa438a7
...
...
@@ -131,7 +131,9 @@ switch_status_t skinny_profile_dump(const skinny_profile_t *profile, switch_stre
stream
->
write_function
(
stream
,
"CALLS-OUT
\t
%d
\n
"
,
profile
->
ob_calls
);
stream
->
write_function
(
stream
,
"FAILED-CALLS-OUT
\t
%d
\n
"
,
profile
->
ob_failed_calls
);
/* listener */
stream
->
write_function
(
stream
,
"Listener-Threads
\t
%d
\n
"
,
profile
->
listener_threads
);
stream
->
write_function
(
stream
,
"Listener-Threads
\t
%d
\n
"
,
profile
->
listener_threads
);
stream
->
write_function
(
stream
,
"Ext-Voicemail
\t
%s
\n
"
,
profile
->
ext_voicemail
);
stream
->
write_function
(
stream
,
"Ext-Redial
\t
%s
\n
"
,
profile
->
ext_redial
);
stream
->
write_function
(
stream
,
"%s
\n
"
,
line
);
return
SWITCH_STATUS_SUCCESS
;
...
...
@@ -1727,6 +1729,14 @@ switch_status_t skinny_profile_set(skinny_profile_t *profile, const char *var, c
profile
->
debug
=
atoi
(
val
);
}
else
if
(
!
strcasecmp
(
var
,
"auto-restart"
))
{
profile
->
auto_restart
=
switch_true
(
val
);
}
else
if
(
!
strcasecmp
(
var
,
"ext-voicemail"
))
{
if
(
!
profile
->
ext_voicemail
||
strcmp
(
val
,
profile
->
ext_voicemail
))
{
profile
->
ext_voicemail
=
switch_core_strdup
(
profile
->
pool
,
val
);
}
}
else
if
(
!
strcasecmp
(
var
,
"ext-redial"
))
{
if
(
!
profile
->
ext_redial
||
strcmp
(
val
,
profile
->
ext_redial
))
{
profile
->
ext_redial
=
switch_core_strdup
(
profile
->
pool
,
val
);
}
}
else
{
return
SWITCH_STATUS_FALSE
;
}
...
...
@@ -1811,6 +1821,14 @@ static switch_status_t load_skinny_config(void)
skinny_profile_set
(
profile
,
"patterns-context"
,
"skinny-patterns"
);
}
if
(
!
profile
->
ext_voicemail
)
{
skinny_profile_set
(
profile
,
"ext-voicemail"
,
"vmain"
);
}
if
(
!
profile
->
ext_redial
)
{
skinny_profile_set
(
profile
,
"ext-redial"
,
"redial"
);
}
if
(
profile
->
port
==
0
)
{
profile
->
port
=
2000
;
}
...
...
src/mod/endpoints/mod_skinny/mod_skinny.h
浏览文件 @
0fa438a7
...
...
@@ -84,6 +84,9 @@ struct skinny_profile {
int
auto_restart
;
switch_hash_t
*
soft_key_set_sets_hash
;
switch_hash_t
*
device_type_params_hash
;
/* extensions */
char
*
ext_voicemail
;
char
*
ext_redial
;
/* db */
char
*
dbname
;
char
*
odbc_dsn
;
...
...
src/mod/endpoints/mod_skinny/skinny_api.c
浏览文件 @
0fa438a7
...
...
@@ -231,6 +231,8 @@ static switch_status_t skinny_api_list_settings(const char *line, const char *cu
switch_console_push_match
(
&
my_matches
,
"odbc-dsn"
);
switch_console_push_match
(
&
my_matches
,
"debug"
);
switch_console_push_match
(
&
my_matches
,
"auto-restart"
);
switch_console_push_match
(
&
my_matches
,
"ext-voicemail"
);
switch_console_push_match
(
&
my_matches
,
"ext-redial"
);
if
(
my_matches
)
{
*
matches
=
my_matches
;
...
...
src/mod/endpoints/mod_skinny/skinny_server.c
浏览文件 @
0fa438a7
...
...
@@ -1214,7 +1214,7 @@ switch_status_t skinny_handle_stimulus_message(listener_t *listener, skinny_mess
switch
(
request
->
data
.
stimulus
.
instance_type
)
{
case
SKINNY_BUTTON_LAST_NUMBER_REDIAL
:
skinny_create_incoming_session
(
listener
,
&
line_instance
,
&
session
);
skinny_session_process_dest
(
session
,
listener
,
line_instance
,
"redial"
,
'\0'
,
0
);
skinny_session_process_dest
(
session
,
listener
,
line_instance
,
listener
->
profile
->
ext_redial
,
'\0'
,
0
);
break
;
case
SKINNY_BUTTON_SPEED_DIAL
:
skinny_speed_dial_get
(
listener
,
request
->
data
.
stimulus
.
instance
,
&
button_speed_dial
);
...
...
@@ -1239,7 +1239,7 @@ switch_status_t skinny_handle_stimulus_message(listener_t *listener, skinny_mess
break
;
case
SKINNY_BUTTON_VOICEMAIL
:
skinny_create_incoming_session
(
listener
,
&
line_instance
,
&
session
);
skinny_session_process_dest
(
session
,
listener
,
line_instance
,
"vmain"
,
'\0'
,
0
);
skinny_session_process_dest
(
session
,
listener
,
line_instance
,
listener
->
profile
->
ext_voicemail
,
'\0'
,
0
);
break
;
case
SKINNY_BUTTON_LINE
:
...
...
@@ -1791,7 +1791,7 @@ switch_status_t skinny_handle_soft_key_event_message(listener_t *listener, skinn
switch
(
request
->
data
.
soft_key_event
.
event
)
{
case
SOFTKEY_REDIAL
:
status
=
skinny_create_incoming_session
(
listener
,
&
line_instance
,
&
session
);
skinny_session_process_dest
(
session
,
listener
,
line_instance
,
"redial"
,
'\0'
,
0
);
skinny_session_process_dest
(
session
,
listener
,
line_instance
,
listener
->
profile
->
ext_redial
,
'\0'
,
0
);
break
;
case
SOFTKEY_NEWCALL
:
status
=
skinny_create_incoming_session
(
listener
,
&
line_instance
,
&
session
);
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论