Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
d86388db
提交
d86388db
authored
2月 26, 2011
作者:
Mathieu Parent
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Skinny: noop ForwardStatReq and ForwardStat implementation
上级
f217ec48
显示空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
175 行增加
和
134 行删除
+175
-134
skinny_protocol.h
src/mod/endpoints/mod_skinny/skinny_protocol.h
+87
-66
skinny_server.c
src/mod/endpoints/mod_skinny/skinny_server.c
+18
-0
skinny_tables.c
src/mod/endpoints/mod_skinny/skinny_tables.c
+69
-67
skinny_tables.h
src/mod/endpoints/mod_skinny/skinny_tables.h
+1
-1
没有找到文件。
src/mod/endpoints/mod_skinny/skinny_protocol.h
浏览文件 @
d86388db
...
...
@@ -97,6 +97,12 @@ struct PACKED on_hook_message {
uint32_t
call_id
;
};
/* ForwardStatReqMessage */
#define FORWARD_STAT_REQ_MESSAGE 0x0009
struct
PACKED
forward_stat_req_message
{
uint32_t
line_instance
;
};
/* SpeedDialStatReqMessage */
#define SPEED_DIAL_STAT_REQ_MESSAGE 0x000A
struct
PACKED
speed_dial_stat_req_message
{
...
...
@@ -328,6 +334,19 @@ struct PACKED call_info_message {
uint32_t
party_pi_restriction_bits
;
};
/* ForwardStatMessage */
#define FORWARD_STAT_MESSAGE 0x0090
struct
PACKED
forward_stat_message
{
uint32_t
active_forward
;
uint32_t
line_instance
;
uint32_t
forward_all_active
;
char
forward_all_number
[
24
];
uint32_t
forward_busy_active
;
char
forward_busy_number
[
24
];
uint32_t
forward_noanswer_active
;
char
forward_noanswer_number
[
24
];
};
/* SpeedDialStatMessage */
#define SPEED_DIAL_STAT_RES_MESSAGE 0x0091
struct
PACKED
speed_dial_stat_res_message
{
...
...
@@ -573,6 +592,7 @@ union skinny_data {
struct
stimulus_message
stimulus
;
struct
off_hook_message
off_hook
;
struct
on_hook_message
on_hook
;
struct
forward_stat_req_message
forward_stat_req
;
struct
speed_dial_stat_req_message
speed_dial_req
;
struct
line_stat_req_message
line_req
;
/* no data for CONFIG_STAT_REQ_MESSAGE */
...
...
@@ -603,6 +623,7 @@ union skinny_data {
struct
start_media_transmission_message
start_media
;
struct
stop_media_transmission_message
stop_media
;
struct
call_info_message
call_info
;
struct
forward_stat_message
forward_stat
;
struct
speed_dial_stat_res_message
speed_dial_res
;
struct
line_stat_res_message
line_res
;
struct
config_stat_res_message
config_res
;
...
...
src/mod/endpoints/mod_skinny/skinny_server.c
浏览文件 @
d86388db
...
...
@@ -1329,6 +1329,22 @@ switch_status_t skinny_handle_on_hook_message(listener_t *listener, skinny_messa
return
status
;
}
switch_status_t
skinny_handle_forward_stat_req_message
(
listener_t
*
listener
,
skinny_message_t
*
request
)
{
skinny_message_t
*
message
;
skinny_check_data_length
(
request
,
sizeof
(
request
->
data
.
forward_stat_req
));
message
=
switch_core_alloc
(
listener
->
pool
,
12
+
sizeof
(
message
->
data
.
forward_stat
));
message
->
type
=
FORWARD_STAT_MESSAGE
;
message
->
length
=
4
+
sizeof
(
message
->
data
.
forward_stat
);
message
->
data
.
forward_stat
.
line_instance
=
request
->
data
.
forward_stat_req
.
line_instance
;
skinny_send_reply
(
listener
,
message
);
return
SWITCH_STATUS_SUCCESS
;
}
switch_status_t
skinny_handle_speed_dial_stat_request
(
listener_t
*
listener
,
skinny_message_t
*
request
)
{
...
...
@@ -2046,6 +2062,8 @@ switch_status_t skinny_handle_request(listener_t *listener, skinny_message_t *re
return
skinny_handle_off_hook_message
(
listener
,
request
);
case
ON_HOOK_MESSAGE
:
return
skinny_handle_on_hook_message
(
listener
,
request
);
case
FORWARD_STAT_REQ_MESSAGE
:
return
skinny_handle_forward_stat_req_message
(
listener
,
request
);
case
SPEED_DIAL_STAT_REQ_MESSAGE
:
return
skinny_handle_speed_dial_stat_request
(
listener
,
request
);
case
LINE_STAT_REQ_MESSAGE
:
...
...
src/mod/endpoints/mod_skinny/skinny_tables.c
浏览文件 @
d86388db
...
...
@@ -43,6 +43,7 @@ struct skinny_table SKINNY_MESSAGE_TYPES[] = {
{
"StimulusMessage"
,
STIMULUS_MESSAGE
},
{
"OffHookMessage"
,
OFF_HOOK_MESSAGE
},
{
"OnHookMessage"
,
ON_HOOK_MESSAGE
},
{
"ForwardStatReqMessage"
,
FORWARD_STAT_REQ_MESSAGE
},
{
"SpeedDialStatReqMessage"
,
SPEED_DIAL_STAT_REQ_MESSAGE
},
{
"LineStatReqMessage"
,
LINE_STAT_REQ_MESSAGE
},
{
"ConfigStatReqMessage"
,
CONFIG_STAT_REQ_MESSAGE
},
...
...
@@ -73,6 +74,7 @@ struct skinny_table SKINNY_MESSAGE_TYPES[] = {
{
"StartMediaTransmissionMessage"
,
START_MEDIA_TRANSMISSION_MESSAGE
},
{
"StopMediaTransmissionMessage"
,
STOP_MEDIA_TRANSMISSION_MESSAGE
},
{
"CallInfoMessage"
,
CALL_INFO_MESSAGE
},
{
"ForwardStatMessage"
,
FORWARD_STAT_MESSAGE
},
{
"SpeedDialStatResMessage"
,
SPEED_DIAL_STAT_RES_MESSAGE
},
{
"LineStatResMessage"
,
LINE_STAT_RES_MESSAGE
},
{
"ConfigStatResMessage"
,
CONFIG_STAT_RES_MESSAGE
},
...
...
src/mod/endpoints/mod_skinny/skinny_tables.h
浏览文件 @
d86388db
...
...
@@ -87,7 +87,7 @@ uint32_t func(const char *str)\
}
extern
struct
skinny_table
SKINNY_MESSAGE_TYPES
[
6
7
];
extern
struct
skinny_table
SKINNY_MESSAGE_TYPES
[
6
9
];
const
char
*
skinny_message_type2str
(
uint32_t
id
);
uint32_t
skinny_str2message_type
(
const
char
*
str
);
#define SKINNY_PUSH_MESSAGE_TYPES SKINNY_DECLARE_PUSH_MATCH(SKINNY_MESSAGE_TYPES)
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论