Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
f217ec48
提交
f217ec48
authored
2月 26, 2011
作者:
Mathieu Parent
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Skinny: remove some unused vars
上级
1cbb8f22
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
24 行增加
和
25 行删除
+24
-25
mod_skinny.c
src/mod/endpoints/mod_skinny/mod_skinny.c
+8
-6
mod_skinny.h
src/mod/endpoints/mod_skinny/mod_skinny.h
+16
-19
没有找到文件。
src/mod/endpoints/mod_skinny/mod_skinny.c
浏览文件 @
f217ec48
...
@@ -1515,6 +1515,8 @@ static void *SWITCH_THREAD_FUNC skinny_profile_run(switch_thread_t *thread, void
...
@@ -1515,6 +1515,8 @@ static void *SWITCH_THREAD_FUNC skinny_profile_run(switch_thread_t *thread, void
listener_t
*
listener
;
listener_t
*
listener
;
switch_memory_pool_t
*
tmp_pool
=
NULL
,
*
listener_pool
=
NULL
;
switch_memory_pool_t
*
tmp_pool
=
NULL
,
*
listener_pool
=
NULL
;
uint32_t
errs
=
0
;
uint32_t
errs
=
0
;
switch_sockaddr_t
*
local_sa
=
NULL
;
switch_sockaddr_t
*
remote_sa
=
NULL
;
if
(
switch_core_new_memory_pool
(
&
tmp_pool
)
!=
SWITCH_STATUS_SUCCESS
)
{
if
(
switch_core_new_memory_pool
(
&
tmp_pool
)
!=
SWITCH_STATUS_SUCCESS
)
{
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_ERROR
,
"OH OH no pool
\n
"
);
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_ERROR
,
"OH OH no pool
\n
"
);
...
@@ -1598,13 +1600,13 @@ new_socket:
...
@@ -1598,13 +1600,13 @@ new_socket:
switch_mutex_init
(
&
listener
->
flag_mutex
,
SWITCH_MUTEX_NESTED
,
listener
->
pool
);
switch_mutex_init
(
&
listener
->
flag_mutex
,
SWITCH_MUTEX_NESTED
,
listener
->
pool
);
switch_socket_addr_get
(
&
listener
->
remote_sa
,
SWITCH_TRUE
,
listener
->
sock
);
switch_socket_addr_get
(
&
remote_sa
,
SWITCH_TRUE
,
listener
->
sock
);
switch_get_addr
(
listener
->
remote_ip
,
sizeof
(
listener
->
remote_ip
),
listener
->
remote_sa
);
switch_get_addr
(
listener
->
remote_ip
,
sizeof
(
listener
->
remote_ip
),
remote_sa
);
listener
->
remote_port
=
switch_sockaddr_get_port
(
listener
->
remote_sa
);
listener
->
remote_port
=
switch_sockaddr_get_port
(
remote_sa
);
switch_socket_addr_get
(
&
l
istener
->
l
ocal_sa
,
SWITCH_FALSE
,
listener
->
sock
);
switch_socket_addr_get
(
&
local_sa
,
SWITCH_FALSE
,
listener
->
sock
);
switch_get_addr
(
listener
->
local_ip
,
sizeof
(
listener
->
local_ip
),
l
istener
->
l
ocal_sa
);
switch_get_addr
(
listener
->
local_ip
,
sizeof
(
listener
->
local_ip
),
local_sa
);
listener
->
local_port
=
switch_sockaddr_get_port
(
l
istener
->
l
ocal_sa
);
listener
->
local_port
=
switch_sockaddr_get_port
(
local_sa
);
launch_listener_thread
(
listener
);
launch_listener_thread
(
listener
);
...
...
src/mod/endpoints/mod_skinny/mod_skinny.h
浏览文件 @
f217ec48
...
@@ -132,28 +132,25 @@ typedef enum {
...
@@ -132,28 +132,25 @@ typedef enum {
#define SKINNY_MAX_LINES 42
#define SKINNY_MAX_LINES 42
struct
listener
{
struct
listener
{
skinny_profile_t
*
profile
;
skinny_profile_t
*
profile
;
char
device_name
[
16
];
char
device_name
[
16
];
uint32_t
device_instance
;
uint32_t
device_instance
;
uint32_t
device_type
;
uint32_t
device_type
;
char
firmware_version
[
16
];
char
firmware_version
[
16
];
char
*
soft_key_set_set
;
char
*
soft_key_set_set
;
switch_socket_t
*
sock
;
switch_socket_t
*
sock
;
switch_memory_pool_t
*
pool
;
switch_memory_pool_t
*
pool
;
switch_thread_rwlock_t
*
rwlock
;
switch_thread_rwlock_t
*
rwlock
;
switch_sockaddr_t
*
remote_sa
;
char
remote_ip
[
50
];
char
remote_ip
[
50
];
switch_port_t
remote_port
;
switch_port_t
remote_port
;
char
local_ip
[
50
];
switch_sockaddr_t
*
local_sa
;
switch_port_t
local_port
;
char
local_ip
[
50
];
switch_mutex_t
*
flag_mutex
;
switch_port_t
local_port
;
uint32_t
flags
;
switch_mutex_t
*
flag_mutex
;
time_t
expire_time
;
uint32_t
flags
;
struct
listener
*
next
;
uint32_t
id
;
time_t
expire_time
;
struct
listener
*
next
;
};
};
typedef
struct
listener
listener_t
;
typedef
struct
listener
listener_t
;
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论