Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
4263dda2
提交
4263dda2
authored
4月 16, 2010
作者:
Mathieu Parent
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Skinny: Initial implementation of VersionReq
And reordering
上级
00b26223
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
486 行增加
和
448 行删除
+486
-448
skinny_protocol.c
src/mod/endpoints/mod_skinny/skinny_protocol.c
+469
-447
skinny_protocol.h
src/mod/endpoints/mod_skinny/skinny_protocol.h
+14
-0
skinny_tables.c
src/mod/endpoints/mod_skinny/skinny_tables.c
+2
-0
skinny_tables.h
src/mod/endpoints/mod_skinny/skinny_tables.h
+1
-1
没有找到文件。
src/mod/endpoints/mod_skinny/skinny_protocol.c
浏览文件 @
4263dda2
差异被折叠。
点击展开。
src/mod/endpoints/mod_skinny/skinny_protocol.h
浏览文件 @
4263dda2
...
@@ -114,6 +114,9 @@ struct line_stat_req_message {
...
@@ -114,6 +114,9 @@ struct line_stat_req_message {
/* ButtonTemplateReqMessage */
/* ButtonTemplateReqMessage */
#define BUTTON_TEMPLATE_REQ_MESSAGE 0x000E
#define BUTTON_TEMPLATE_REQ_MESSAGE 0x000E
/* VersionReqMessage */
#define VERSION_REQ_MESSAGE 0x000F
/* CapabilitiesResMessage */
/* CapabilitiesResMessage */
#define CAPABILITIES_RES_MESSAGE 0x0010
#define CAPABILITIES_RES_MESSAGE 0x0010
struct
station_capabilities
{
struct
station_capabilities
{
...
@@ -343,6 +346,12 @@ struct button_template_message {
...
@@ -343,6 +346,12 @@ struct button_template_message {
struct
button_definition
btn
[
SKINNY_MAX_BUTTON_COUNT
];
struct
button_definition
btn
[
SKINNY_MAX_BUTTON_COUNT
];
};
};
/* VersionMessage */
#define VERSION_MESSAGE 0x0098
struct
version_message
{
char
version
[
16
];
};
/* CapabilitiesReqMessage */
/* CapabilitiesReqMessage */
#define CAPABILITIES_REQ_MESSAGE 0x009B
#define CAPABILITIES_REQ_MESSAGE 0x009B
...
@@ -535,6 +544,7 @@ union skinny_data {
...
@@ -535,6 +544,7 @@ union skinny_data {
struct
config_stat_res_message
config_res
;
struct
config_stat_res_message
config_res
;
struct
define_time_date_message
define_time_date
;
struct
define_time_date_message
define_time_date
;
struct
button_template_message
button_template
;
struct
button_template_message
button_template
;
struct
version_message
version
;
struct
register_reject_message
reg_rej
;
struct
register_reject_message
reg_rej
;
struct
reset_message
reset
;
struct
reset_message
reset
;
struct
open_receive_channel_message
open_receive_channel
;
struct
open_receive_channel_message
open_receive_channel
;
...
@@ -724,6 +734,10 @@ switch_status_t send_define_time_date(listener_t *listener,
...
@@ -724,6 +734,10 @@ switch_status_t send_define_time_date(listener_t *listener,
uint32_t
milliseconds
,
uint32_t
milliseconds
,
uint32_t
timestamp
);
uint32_t
timestamp
);
switch_status_t
send_define_current_time_date
(
listener_t
*
listener
);
switch_status_t
send_define_current_time_date
(
listener_t
*
listener
);
switch_status_t
send_version
(
listener_t
*
listener
,
char
*
version
);
switch_status_t
send_register_reject
(
listener_t
*
listener
,
char
*
error
);
switch_status_t
send_open_receive_channel
(
listener_t
*
listener
,
switch_status_t
send_open_receive_channel
(
listener_t
*
listener
,
uint32_t
conference_id
,
uint32_t
conference_id
,
uint32_t
pass_thru_party_id
,
uint32_t
pass_thru_party_id
,
...
...
src/mod/endpoints/mod_skinny/skinny_tables.c
浏览文件 @
4263dda2
...
@@ -47,6 +47,7 @@ struct skinny_table SKINNY_MESSAGE_TYPES[] = {
...
@@ -47,6 +47,7 @@ struct skinny_table SKINNY_MESSAGE_TYPES[] = {
{
"ConfigStatReqMessage"
,
CONFIG_STAT_REQ_MESSAGE
},
{
"ConfigStatReqMessage"
,
CONFIG_STAT_REQ_MESSAGE
},
{
"TimeDateReqMessage"
,
TIME_DATE_REQ_MESSAGE
},
{
"TimeDateReqMessage"
,
TIME_DATE_REQ_MESSAGE
},
{
"ButtonTemplateReqMessage"
,
BUTTON_TEMPLATE_REQ_MESSAGE
},
{
"ButtonTemplateReqMessage"
,
BUTTON_TEMPLATE_REQ_MESSAGE
},
{
"VersionReqMessage"
,
VERSION_REQ_MESSAGE
},
{
"CapabilitiesReqMessage"
,
CAPABILITIES_RES_MESSAGE
},
{
"CapabilitiesReqMessage"
,
CAPABILITIES_RES_MESSAGE
},
{
"AlarmMessage"
,
ALARM_MESSAGE
},
{
"AlarmMessage"
,
ALARM_MESSAGE
},
{
"OpenReceiveChannelAckMessage"
,
OPEN_RECEIVE_CHANNEL_ACK_MESSAGE
},
{
"OpenReceiveChannelAckMessage"
,
OPEN_RECEIVE_CHANNEL_ACK_MESSAGE
},
...
@@ -72,6 +73,7 @@ struct skinny_table SKINNY_MESSAGE_TYPES[] = {
...
@@ -72,6 +73,7 @@ struct skinny_table SKINNY_MESSAGE_TYPES[] = {
{
"ConfigStatResMessage"
,
CONFIG_STAT_RES_MESSAGE
},
{
"ConfigStatResMessage"
,
CONFIG_STAT_RES_MESSAGE
},
{
"DefineTimeDateMessage"
,
DEFINE_TIME_DATE_MESSAGE
},
{
"DefineTimeDateMessage"
,
DEFINE_TIME_DATE_MESSAGE
},
{
"ButtonTemplateResMessage"
,
BUTTON_TEMPLATE_RES_MESSAGE
},
{
"ButtonTemplateResMessage"
,
BUTTON_TEMPLATE_RES_MESSAGE
},
{
"VersionMessage"
,
VERSION_MESSAGE
},
{
"CapabilitiesReqMessage"
,
CAPABILITIES_REQ_MESSAGE
},
{
"CapabilitiesReqMessage"
,
CAPABILITIES_REQ_MESSAGE
},
{
"RegisterRejectMessage"
,
REGISTER_REJECT_MESSAGE
},
{
"RegisterRejectMessage"
,
REGISTER_REJECT_MESSAGE
},
{
"ResetMessage"
,
RESET_MESSAGE
},
{
"ResetMessage"
,
RESET_MESSAGE
},
...
...
src/mod/endpoints/mod_skinny/skinny_tables.h
浏览文件 @
4263dda2
...
@@ -84,7 +84,7 @@ uint32_t func(const char *str)\
...
@@ -84,7 +84,7 @@ uint32_t func(const char *str)\
}
}
struct
skinny_table
SKINNY_MESSAGE_TYPES
[
5
7
];
struct
skinny_table
SKINNY_MESSAGE_TYPES
[
5
9
];
const
char
*
skinny_message_type2str
(
uint32_t
id
);
const
char
*
skinny_message_type2str
(
uint32_t
id
);
uint32_t
skinny_str2message_type
(
const
char
*
str
);
uint32_t
skinny_str2message_type
(
const
char
*
str
);
#define SKINNY_PUSH_MESSAGE_TYPES SKINNY_DECLARE_PUSH_MATCH(SKINNY_MESSAGE_TYPES)
#define SKINNY_PUSH_MESSAGE_TYPES SKINNY_DECLARE_PUSH_MATCH(SKINNY_MESSAGE_TYPES)
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论