Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
76c3f4be
提交
76c3f4be
authored
7月 12, 2013
作者:
Nathan Neulinger
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add a few additional skinny message types
上级
9bdfb187
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
15 行增加
和
1 行删除
+15
-1
skinny_protocol.h
src/mod/endpoints/mod_skinny/skinny_protocol.h
+11
-0
skinny_tables.c
src/mod/endpoints/mod_skinny/skinny_tables.c
+3
-0
skinny_tables.h
src/mod/endpoints/mod_skinny/skinny_tables.h
+1
-1
没有找到文件。
src/mod/endpoints/mod_skinny/skinny_protocol.h
浏览文件 @
76c3f4be
...
@@ -145,6 +145,8 @@ struct PACKED capabilities_res_message {
...
@@ -145,6 +145,8 @@ struct PACKED capabilities_res_message {
struct
station_capabilities
caps
[
SWITCH_MAX_CODECS
];
struct
station_capabilities
caps
[
SWITCH_MAX_CODECS
];
};
};
#define SERVER_REQ_MESSAGE 0x0012
/* AlarmMessage */
/* AlarmMessage */
#define ALARM_MESSAGE 0x0020
#define ALARM_MESSAGE 0x0020
struct
PACKED
alarm_message
{
struct
PACKED
alarm_message
{
...
@@ -207,6 +209,8 @@ struct PACKED data_message {
...
@@ -207,6 +209,8 @@ struct PACKED data_message {
#define DEVICE_TO_USER_DATA_RESPONSE_MESSAGE 0x002F
#define DEVICE_TO_USER_DATA_RESPONSE_MESSAGE 0x002F
/* See struct PACKED data_message */
/* See struct PACKED data_message */
#define DEVICE_UPDATECAPABILITIES 0x0030
/* ServiceUrlStatReqMessage */
/* ServiceUrlStatReqMessage */
#define SERVICE_URL_STAT_REQ_MESSAGE 0x0033
#define SERVICE_URL_STAT_REQ_MESSAGE 0x0033
struct
PACKED
service_url_stat_req_message
{
struct
PACKED
service_url_stat_req_message
{
...
@@ -442,6 +446,8 @@ struct PACKED register_reject_message {
...
@@ -442,6 +446,8 @@ struct PACKED register_reject_message {
char
error
[
33
];
char
error
[
33
];
};
};
#define SERVER_RESPONSE_MESSAGE 0x009E
/* ResetMessage */
/* ResetMessage */
#define RESET_MESSAGE 0x009F
#define RESET_MESSAGE 0x009F
struct
PACKED
reset_message
{
struct
PACKED
reset_message
{
...
@@ -723,6 +729,8 @@ typedef struct skinny_message skinny_message_t;
...
@@ -723,6 +729,8 @@ typedef struct skinny_message skinny_message_t;
/* SKINNY TYPES */
/* SKINNY TYPES */
/*****************************************************************************/
/*****************************************************************************/
enum
skinny_codecs
{
enum
skinny_codecs
{
SKINNY_CODEC_NONE
=
0
,
SKINNY_CODEC_NONSTANDARD
=
1
,
SKINNY_CODEC_ALAW_64K
=
2
,
SKINNY_CODEC_ALAW_64K
=
2
,
SKINNY_CODEC_ALAW_56K
=
3
,
SKINNY_CODEC_ALAW_56K
=
3
,
SKINNY_CODEC_ULAW_64K
=
4
,
SKINNY_CODEC_ULAW_64K
=
4
,
...
@@ -744,6 +752,8 @@ enum skinny_codecs {
...
@@ -744,6 +752,8 @@ enum skinny_codecs {
SKINNY_CODEC_WIDEBAND_256K
=
25
,
SKINNY_CODEC_WIDEBAND_256K
=
25
,
SKINNY_CODEC_DATA_64K
=
32
,
SKINNY_CODEC_DATA_64K
=
32
,
SKINNY_CODEC_DATA_56K
=
33
,
SKINNY_CODEC_DATA_56K
=
33
,
SKINNY_CODEC_G722_1_32K
=
40
,
SKINNY_CODEC_G722_1_24K
=
41
,
SKINNY_CODEC_GSM
=
80
,
SKINNY_CODEC_GSM
=
80
,
SKINNY_CODEC_ACTIVEVOICE
=
81
,
SKINNY_CODEC_ACTIVEVOICE
=
81
,
SKINNY_CODEC_G726_32K
=
82
,
SKINNY_CODEC_G726_32K
=
82
,
...
@@ -754,6 +764,7 @@ enum skinny_codecs {
...
@@ -754,6 +764,7 @@ enum skinny_codecs {
SKINNY_CODEC_H261
=
100
,
SKINNY_CODEC_H261
=
100
,
SKINNY_CODEC_H263
=
101
,
SKINNY_CODEC_H263
=
101
,
SKINNY_CODEC_VIDEO
=
102
,
SKINNY_CODEC_VIDEO
=
102
,
SKINNY_CODEC_H264
=
103
,
SKINNY_CODEC_T120
=
105
,
SKINNY_CODEC_T120
=
105
,
SKINNY_CODEC_H224
=
106
,
SKINNY_CODEC_H224
=
106
,
SKINNY_CODEC_RFC2833_DYNPAYLOAD
=
257
SKINNY_CODEC_RFC2833_DYNPAYLOAD
=
257
...
...
src/mod/endpoints/mod_skinny/skinny_tables.c
浏览文件 @
76c3f4be
...
@@ -61,6 +61,7 @@ struct skinny_table SKINNY_MESSAGE_TYPES[] = {
...
@@ -61,6 +61,7 @@ struct skinny_table SKINNY_MESSAGE_TYPES[] = {
{
REGISTER_AVAILABLE_LINES_MESSAGE
,
"RegisterAvailableLinesMessage"
},
{
REGISTER_AVAILABLE_LINES_MESSAGE
,
"RegisterAvailableLinesMessage"
},
{
DEVICE_TO_USER_DATA_MESSAGE
,
"DeviceToUserDataMessage"
},
{
DEVICE_TO_USER_DATA_MESSAGE
,
"DeviceToUserDataMessage"
},
{
DEVICE_TO_USER_DATA_RESPONSE_MESSAGE
,
"DeviceToUserDataResponseMessage"
},
{
DEVICE_TO_USER_DATA_RESPONSE_MESSAGE
,
"DeviceToUserDataResponseMessage"
},
{
DEVICE_UPDATECAPABILITIES
,
"DeviceUpdateCapabilities"
},
{
SERVICE_URL_STAT_REQ_MESSAGE
,
"ServiceUrlStatReqMessage"
},
{
SERVICE_URL_STAT_REQ_MESSAGE
,
"ServiceUrlStatReqMessage"
},
{
FEATURE_STAT_REQ_MESSAGE
,
"FeatureStatReqMessage"
},
{
FEATURE_STAT_REQ_MESSAGE
,
"FeatureStatReqMessage"
},
{
DEVICE_TO_USER_DATA_VERSION1_MESSAGE
,
"DeviceToUserDataVersion1Message"
},
{
DEVICE_TO_USER_DATA_VERSION1_MESSAGE
,
"DeviceToUserDataVersion1Message"
},
...
@@ -84,7 +85,9 @@ struct skinny_table SKINNY_MESSAGE_TYPES[] = {
...
@@ -84,7 +85,9 @@ struct skinny_table SKINNY_MESSAGE_TYPES[] = {
{
BUTTON_TEMPLATE_RES_MESSAGE
,
"ButtonTemplateResMessage"
},
{
BUTTON_TEMPLATE_RES_MESSAGE
,
"ButtonTemplateResMessage"
},
{
VERSION_MESSAGE
,
"VersionMessage"
},
{
VERSION_MESSAGE
,
"VersionMessage"
},
{
CAPABILITIES_REQ_MESSAGE
,
"CapabilitiesReqMessage"
},
{
CAPABILITIES_REQ_MESSAGE
,
"CapabilitiesReqMessage"
},
{
SERVER_REQ_MESSAGE
,
"Server Request Message"
},
{
REGISTER_REJECT_MESSAGE
,
"RegisterRejectMessage"
},
{
REGISTER_REJECT_MESSAGE
,
"RegisterRejectMessage"
},
{
SERVER_RESPONSE_MESSAGE
,
"ServerResponseMessage"
},
{
RESET_MESSAGE
,
"ResetMessage"
},
{
RESET_MESSAGE
,
"ResetMessage"
},
{
KEEP_ALIVE_ACK_MESSAGE
,
"KeepAliveAckMessage"
},
{
KEEP_ALIVE_ACK_MESSAGE
,
"KeepAliveAckMessage"
},
{
OPEN_RECEIVE_CHANNEL_MESSAGE
,
"OpenReceiveChannelMessage"
},
{
OPEN_RECEIVE_CHANNEL_MESSAGE
,
"OpenReceiveChannelMessage"
},
...
...
src/mod/endpoints/mod_skinny/skinny_tables.h
浏览文件 @
76c3f4be
...
@@ -87,7 +87,7 @@ if (my_matches) {\
...
@@ -87,7 +87,7 @@ if (my_matches) {\
}
}
extern
struct
skinny_table
SKINNY_MESSAGE_TYPES
[
7
2
];
extern
struct
skinny_table
SKINNY_MESSAGE_TYPES
[
7
5
];
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
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论