Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
715d250e
提交
715d250e
authored
12月 15, 2010
作者:
Mathieu Parent
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Skinny: handle new XMLAlarmMessage
This add support for new SCCP Firmware 9.1 (part of FS-2912)
上级
a95af703
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
6 行增加
和
2 行删除
+6
-2
skinny_protocol.h
src/mod/endpoints/mod_skinny/skinny_protocol.h
+3
-0
skinny_server.c
src/mod/endpoints/mod_skinny/skinny_server.c
+1
-1
skinny_tables.c
src/mod/endpoints/mod_skinny/skinny_tables.c
+1
-0
skinny_tables.h
src/mod/endpoints/mod_skinny/skinny_tables.h
+1
-1
没有找到文件。
src/mod/endpoints/mod_skinny/skinny_protocol.h
浏览文件 @
715d250e
...
@@ -547,6 +547,9 @@ struct PACKED service_url_stat_res_message {
...
@@ -547,6 +547,9 @@ struct PACKED service_url_stat_res_message {
#define USER_TO_DEVICE_DATA_VERSION1_MESSAGE 0x013F
#define USER_TO_DEVICE_DATA_VERSION1_MESSAGE 0x013F
/* See struct PACKED extended_data_message */
/* See struct PACKED extended_data_message */
/* XMLAlarmMessage */
#define XML_ALARM_MESSAGE 0x015A
/*****************************************************************************/
/*****************************************************************************/
/* SKINNY MESSAGE */
/* SKINNY MESSAGE */
/*****************************************************************************/
/*****************************************************************************/
...
...
src/mod/endpoints/mod_skinny/skinny_server.c
浏览文件 @
715d250e
...
@@ -1970,7 +1970,7 @@ switch_status_t skinny_handle_request(listener_t *listener, skinny_message_t *re
...
@@ -1970,7 +1970,7 @@ switch_status_t skinny_handle_request(listener_t *listener, skinny_message_t *re
"Received %s (type=%x,length=%d) from %s:%d.
\n
"
,
skinny_message_type2str
(
request
->
type
),
request
->
type
,
request
->
length
,
"Received %s (type=%x,length=%d) from %s:%d.
\n
"
,
skinny_message_type2str
(
request
->
type
),
request
->
type
,
request
->
length
,
listener
->
device_name
,
listener
->
device_instance
);
listener
->
device_name
,
listener
->
device_instance
);
}
}
if
(
zstr
(
listener
->
device_name
)
&&
request
->
type
!=
REGISTER_MESSAGE
&&
request
->
type
!=
ALARM_MESSAGE
)
{
if
(
zstr
(
listener
->
device_name
)
&&
request
->
type
!=
REGISTER_MESSAGE
&&
request
->
type
!=
ALARM_MESSAGE
&&
request
->
type
!=
XML_ALARM_MESSAGE
)
{
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_ERROR
,
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_ERROR
,
"Device should send a register message first.
\n
"
);
"Device should send a register message first.
\n
"
);
return
SWITCH_STATUS_FALSE
;
return
SWITCH_STATUS_FALSE
;
...
...
src/mod/endpoints/mod_skinny/skinny_tables.c
浏览文件 @
715d250e
...
@@ -99,6 +99,7 @@ struct skinny_table SKINNY_MESSAGE_TYPES[] = {
...
@@ -99,6 +99,7 @@ struct skinny_table SKINNY_MESSAGE_TYPES[] = {
{
"DisplayPriNotifyMessage"
,
DISPLAY_PRI_NOTIFY_MESSAGE
},
{
"DisplayPriNotifyMessage"
,
DISPLAY_PRI_NOTIFY_MESSAGE
},
{
"ServiceUrlStatMessage"
,
SERVICE_URL_STAT_RES_MESSAGE
},
{
"ServiceUrlStatMessage"
,
SERVICE_URL_STAT_RES_MESSAGE
},
{
"UserToDeviceDataVersion1Message"
,
USER_TO_DEVICE_DATA_VERSION1_MESSAGE
},
{
"UserToDeviceDataVersion1Message"
,
USER_TO_DEVICE_DATA_VERSION1_MESSAGE
},
{
"XMLAlarmMessage"
,
XML_ALARM_MESSAGE
},
{
NULL
,
0
}
{
NULL
,
0
}
};
};
SKINNY_DECLARE_ID2STR
(
skinny_message_type2str
,
SKINNY_MESSAGE_TYPES
,
"UnknownMessage"
)
SKINNY_DECLARE_ID2STR
(
skinny_message_type2str
,
SKINNY_MESSAGE_TYPES
,
"UnknownMessage"
)
...
...
src/mod/endpoints/mod_skinny/skinny_tables.h
浏览文件 @
715d250e
...
@@ -87,7 +87,7 @@ uint32_t func(const char *str)\
...
@@ -87,7 +87,7 @@ uint32_t func(const char *str)\
}
}
extern
struct
skinny_table
SKINNY_MESSAGE_TYPES
[
6
5
];
extern
struct
skinny_table
SKINNY_MESSAGE_TYPES
[
6
6
];
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
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论