Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
1fa0c8b3
提交
1fa0c8b3
authored
9月 17, 2013
作者:
Nathan Neulinger
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
FS-5796 --resolve add cfwdall extension param for mod_skinny
上级
dffe48aa
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
26 行增加
和
0 行删除
+26
-0
internal.xml
...od/endpoints/mod_skinny/conf/skinny_profiles/internal.xml
+5
-0
mod_skinny.c
src/mod/endpoints/mod_skinny/mod_skinny.c
+9
-0
mod_skinny.h
src/mod/endpoints/mod_skinny/mod_skinny.h
+2
-0
skinny_api.c
src/mod/endpoints/mod_skinny/skinny_api.c
+1
-0
skinny_server.c
src/mod/endpoints/mod_skinny/skinny_server.c
+9
-0
没有找到文件。
src/mod/endpoints/mod_skinny/conf/skinny_profiles/internal.xml
浏览文件 @
1fa0c8b3
...
@@ -15,6 +15,11 @@
...
@@ -15,6 +15,11 @@
<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"/> -->
<!-- usually place this one on the directory entry for a skinny phone and not global -->
<!-- <param name="ext-pickup" value="pickup"/> -->
<!-- <param name="ext-cfwdall" value="cfwdall"/> -->
</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/mod_skinny.c
浏览文件 @
1fa0c8b3
...
@@ -173,6 +173,7 @@ switch_status_t skinny_profile_dump(const skinny_profile_t *profile, switch_stre
...
@@ -173,6 +173,7 @@ switch_status_t skinny_profile_dump(const skinny_profile_t *profile, switch_stre
stream
->
write_function
(
stream
,
"Ext-Redial
\t
%s
\n
"
,
profile
->
ext_redial
);
stream
->
write_function
(
stream
,
"Ext-Redial
\t
%s
\n
"
,
profile
->
ext_redial
);
stream
->
write_function
(
stream
,
"Ext-MeetMe
\t
%s
\n
"
,
profile
->
ext_meetme
);
stream
->
write_function
(
stream
,
"Ext-MeetMe
\t
%s
\n
"
,
profile
->
ext_meetme
);
stream
->
write_function
(
stream
,
"Ext-PickUp
\t
%s
\n
"
,
profile
->
ext_pickup
);
stream
->
write_function
(
stream
,
"Ext-PickUp
\t
%s
\n
"
,
profile
->
ext_pickup
);
stream
->
write_function
(
stream
,
"Ext-CFwdAll
\t
%s
\n
"
,
profile
->
ext_cfwdall
);
stream
->
write_function
(
stream
,
"%s
\n
"
,
line
);
stream
->
write_function
(
stream
,
"%s
\n
"
,
line
);
return
SWITCH_STATUS_SUCCESS
;
return
SWITCH_STATUS_SUCCESS
;
...
@@ -1939,6 +1940,10 @@ switch_status_t skinny_profile_set(skinny_profile_t *profile, const char *var, c
...
@@ -1939,6 +1940,10 @@ switch_status_t skinny_profile_set(skinny_profile_t *profile, const char *var, c
if
(
!
profile
->
ext_pickup
||
strcmp
(
val
,
profile
->
ext_pickup
))
{
if
(
!
profile
->
ext_pickup
||
strcmp
(
val
,
profile
->
ext_pickup
))
{
profile
->
ext_pickup
=
switch_core_strdup
(
profile
->
pool
,
val
);
profile
->
ext_pickup
=
switch_core_strdup
(
profile
->
pool
,
val
);
}
}
}
else
if
(
!
strcasecmp
(
var
,
"ext-cfwdall"
))
{
if
(
!
profile
->
ext_cfwdall
||
strcmp
(
val
,
profile
->
ext_cfwdall
))
{
profile
->
ext_cfwdall
=
switch_core_strdup
(
profile
->
pool
,
val
);
}
}
else
{
}
else
{
return
SWITCH_STATUS_FALSE
;
return
SWITCH_STATUS_FALSE
;
}
}
...
@@ -2039,6 +2044,10 @@ static switch_status_t load_skinny_config(void)
...
@@ -2039,6 +2044,10 @@ static switch_status_t load_skinny_config(void)
skinny_profile_set
(
profile
,
"ext-pickup"
,
"pickup"
);
skinny_profile_set
(
profile
,
"ext-pickup"
,
"pickup"
);
}
}
if
(
!
profile
->
ext_cfwdall
)
{
skinny_profile_set
(
profile
,
"ext-pickup"
,
"cfwdall"
);
}
if
(
profile
->
port
==
0
)
{
if
(
profile
->
port
==
0
)
{
profile
->
port
=
2000
;
profile
->
port
=
2000
;
}
}
...
...
src/mod/endpoints/mod_skinny/mod_skinny.h
浏览文件 @
1fa0c8b3
...
@@ -125,6 +125,7 @@ struct skinny_profile {
...
@@ -125,6 +125,7 @@ struct skinny_profile {
char
*
ext_redial
;
char
*
ext_redial
;
char
*
ext_meetme
;
char
*
ext_meetme
;
char
*
ext_pickup
;
char
*
ext_pickup
;
char
*
ext_cfwdall
;
/* db */
/* db */
char
*
dbname
;
char
*
dbname
;
char
*
odbc_dsn
;
char
*
odbc_dsn
;
...
@@ -194,6 +195,7 @@ struct listener {
...
@@ -194,6 +195,7 @@ struct listener {
char
*
ext_redial
;
char
*
ext_redial
;
char
*
ext_meetme
;
char
*
ext_meetme
;
char
*
ext_pickup
;
char
*
ext_pickup
;
char
*
ext_cfwdall
;
};
};
typedef
struct
listener
listener_t
;
typedef
struct
listener
listener_t
;
...
...
src/mod/endpoints/mod_skinny/skinny_api.c
浏览文件 @
1fa0c8b3
...
@@ -235,6 +235,7 @@ static switch_status_t skinny_api_list_settings(const char *line, const char *cu
...
@@ -235,6 +235,7 @@ static switch_status_t skinny_api_list_settings(const char *line, const char *cu
switch_console_push_match
(
&
my_matches
,
"ext-redial"
);
switch_console_push_match
(
&
my_matches
,
"ext-redial"
);
switch_console_push_match
(
&
my_matches
,
"ext-meetme"
);
switch_console_push_match
(
&
my_matches
,
"ext-meetme"
);
switch_console_push_match
(
&
my_matches
,
"ext-pickup"
);
switch_console_push_match
(
&
my_matches
,
"ext-pickup"
);
switch_console_push_match
(
&
my_matches
,
"ext-cfwdall"
);
if
(
my_matches
)
{
if
(
my_matches
)
{
*
matches
=
my_matches
;
*
matches
=
my_matches
;
...
...
src/mod/endpoints/mod_skinny/skinny_server.c
浏览文件 @
1fa0c8b3
...
@@ -1097,6 +1097,10 @@ switch_status_t skinny_handle_register(listener_t *listener, skinny_message_t *r
...
@@ -1097,6 +1097,10 @@ switch_status_t skinny_handle_register(listener_t *listener, skinny_message_t *r
if
(
!
listener
->
ext_pickup
||
strcmp
(
value
,
listener
->
ext_pickup
))
{
if
(
!
listener
->
ext_pickup
||
strcmp
(
value
,
listener
->
ext_pickup
))
{
listener
->
ext_pickup
=
switch_core_strdup
(
profile
->
pool
,
value
);
listener
->
ext_pickup
=
switch_core_strdup
(
profile
->
pool
,
value
);
}
}
}
else
if
(
!
strcasecmp
(
name
,
"ext-cfwdall"
))
{
if
(
!
listener
->
ext_cfwdall
||
strcmp
(
value
,
listener
->
ext_cfwdall
))
{
listener
->
ext_cfwdall
=
switch_core_strdup
(
profile
->
pool
,
value
);
}
}
}
}
}
}
}
...
@@ -2001,6 +2005,11 @@ switch_status_t skinny_handle_soft_key_event_message(listener_t *listener, skinn
...
@@ -2001,6 +2005,11 @@ switch_status_t skinny_handle_soft_key_event_message(listener_t *listener, skinn
skinny_session_process_dest
(
session
,
listener
,
line_instance
,
skinny_session_process_dest
(
session
,
listener
,
line_instance
,
empty_null2
(
listener
->
ext_pickup
,
listener
->
profile
->
ext_pickup
),
'\0'
,
0
);
empty_null2
(
listener
->
ext_pickup
,
listener
->
profile
->
ext_pickup
),
'\0'
,
0
);
break
;
break
;
case
SOFTKEY_CFWDALL
:
skinny_create_incoming_session
(
listener
,
&
line_instance
,
&
session
);
skinny_session_process_dest
(
session
,
listener
,
line_instance
,
empty_null2
(
listener
->
ext_cfwdall
,
listener
->
profile
->
ext_cfwdall
),
'\0'
,
0
);
break
;
default:
default:
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_WARNING
,
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_WARNING
,
"Unknown SoftKeyEvent type: %d.
\n
"
,
request
->
data
.
soft_key_event
.
event
);
"Unknown SoftKeyEvent type: %d.
\n
"
,
request
->
data
.
soft_key_event
.
event
);
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论