Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
8bf40819
提交
8bf40819
authored
6月 25, 2013
作者:
Chris Rienzo
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
mod_rayo: valgrind fixes
上级
e52f1314
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
26 行增加
和
6 行删除
+26
-6
mod_rayo.c
src/mod/event_handlers/mod_rayo/mod_rayo.c
+22
-5
xmpp_streams.c
src/mod/event_handlers/mod_rayo/xmpp_streams.c
+4
-1
没有找到文件。
src/mod/event_handlers/mod_rayo/mod_rayo.c
浏览文件 @
8bf40819
...
...
@@ -3242,6 +3242,7 @@ static void send_console_command(struct rayo_client *client, const char *to, con
str
=
iks_string
(
iks_stack
(
iq
),
iq
);
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_CONSOLE
,
"
\n
SEND: to %s, %s
\n
"
,
to
,
str
);
rayo_client_command_recv
(
client
,
iq
);
iks_delete
(
command
);
}
else
{
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_CONSOLE
,
"bad request xml
\n
"
);
}
...
...
@@ -3639,11 +3640,6 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_rayo_load)
*/
SWITCH_MODULE_SHUTDOWN_FUNCTION
(
mod_rayo_shutdown
)
{
if
(
globals
.
console
)
{
RAYO_UNLOCK
(
globals
.
console
);
RAYO_DESTROY
(
globals
.
console
);
}
switch_console_del_complete_func
(
"::rayo::list_actors"
);
switch_console_set_complete
(
"del rayo"
);
...
...
@@ -3655,6 +3651,18 @@ SWITCH_MODULE_SHUTDOWN_FUNCTION(mod_rayo_shutdown)
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_DEBUG
,
"Waiting for message threads to stop
\n
"
);
stop_deliver_message_threads
();
if
(
globals
.
console
)
{
RAYO_UNLOCK
(
globals
.
console
);
RAYO_DESTROY
(
globals
.
console
);
globals
.
console
=
NULL
;
}
if
(
globals
.
server
)
{
RAYO_UNLOCK
(
globals
.
server
);
RAYO_DESTROY
(
globals
.
server
);
globals
.
server
=
NULL
;
}
rayo_components_shutdown
();
/* cleanup module */
...
...
@@ -3662,6 +3670,15 @@ SWITCH_MODULE_SHUTDOWN_FUNCTION(mod_rayo_shutdown)
switch_event_unbind_callback
(
on_call_end_event
);
switch_event_unbind_callback
(
route_mixer_event
);
switch_core_hash_destroy
(
&
globals
.
command_handlers
);
switch_core_hash_destroy
(
&
globals
.
event_handlers
);
switch_core_hash_destroy
(
&
globals
.
clients_roster
);
switch_core_hash_destroy
(
&
globals
.
actors
);
switch_core_hash_destroy
(
&
globals
.
destroy_actors
);
switch_core_hash_destroy
(
&
globals
.
actors_by_id
);
switch_core_hash_destroy
(
&
globals
.
dial_gateways
);
switch_core_hash_destroy
(
&
globals
.
cmd_aliases
);
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_DEBUG
,
"Module shutdown
\n
"
);
return
SWITCH_STATUS_SUCCESS
;
...
...
src/mod/event_handlers/mod_rayo/xmpp_streams.c
浏览文件 @
8bf40819
...
...
@@ -1592,7 +1592,7 @@ static void *SWITCH_THREAD_FUNC xmpp_listener_thread(switch_thread_t *thread, vo
int
allowed
=
0
;
char
remote_ip
[
50
]
=
{
0
};
if
(
switch_socket_addr_get
(
&
sa
,
SWITCH_TRUE
,
socket
)
==
SWITCH_STATUS_SUCCESS
&&
sa
)
{
switch_get_addr
(
remote_ip
,
sizeof
(
remote_ip
),
sa
);
switch_get_addr
(
remote_ip
,
sizeof
(
remote_ip
),
sa
);
allowed
=
switch_check_network_list_ip
(
remote_ip
,
listener
->
acl
);
}
if
(
!
allowed
)
{
...
...
@@ -1779,6 +1779,9 @@ void xmpp_stream_context_destroy(struct xmpp_stream_context *context)
context
->
shutdown
=
1
;
/* wait for threads to finish */
switch_thread_rwlock_wrlock
(
context
->
shutdown_rwlock
);
switch_core_hash_destroy
(
&
context
->
routes
);
switch_core_hash_destroy
(
&
context
->
streams
);
switch_core_hash_destroy
(
&
context
->
users
);
pool
=
context
->
pool
;
switch_core_destroy_memory_pool
(
&
pool
);
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论