Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
e78f3f0c
提交
e78f3f0c
authored
6月 22, 2017
作者:
Anthony Minessale
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
FS-10387: [core] High memory usage with mod_sofia, osmo-nitb and DTX setting active #resolve
上级
7c196158
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
22 行增加
和
1 行删除
+22
-1
switch_channel.h
src/include/switch_channel.h
+1
-0
switch_channel.c
src/switch_channel.c
+19
-0
switch_core_session.c
src/switch_core_session.c
+2
-1
没有找到文件。
src/include/switch_channel.h
浏览文件 @
e78f3f0c
...
@@ -678,6 +678,7 @@ SWITCH_DECLARE(void) switch_channel_process_device_hangup(switch_channel_t *chan
...
@@ -678,6 +678,7 @@ SWITCH_DECLARE(void) switch_channel_process_device_hangup(switch_channel_t *chan
SWITCH_DECLARE
(
switch_caller_extension_t
*
)
switch_channel_get_queued_extension
(
switch_channel_t
*
channel
);
SWITCH_DECLARE
(
switch_caller_extension_t
*
)
switch_channel_get_queued_extension
(
switch_channel_t
*
channel
);
SWITCH_DECLARE
(
void
)
switch_channel_transfer_to_extension
(
switch_channel_t
*
channel
,
switch_caller_extension_t
*
caller_extension
);
SWITCH_DECLARE
(
void
)
switch_channel_transfer_to_extension
(
switch_channel_t
*
channel
,
switch_caller_extension_t
*
caller_extension
);
SWITCH_DECLARE
(
const
char
*
)
switch_channel_get_partner_uuid
(
switch_channel_t
*
channel
);
SWITCH_DECLARE
(
const
char
*
)
switch_channel_get_partner_uuid
(
switch_channel_t
*
channel
);
SWITCH_DECLARE
(
const
char
*
)
switch_channel_get_partner_uuid_copy
(
switch_channel_t
*
channel
,
char
*
buf
,
switch_size_t
blen
);
SWITCH_DECLARE
(
switch_hold_record_t
*
)
switch_channel_get_hold_record
(
switch_channel_t
*
channel
);
SWITCH_DECLARE
(
switch_hold_record_t
*
)
switch_channel_get_hold_record
(
switch_channel_t
*
channel
);
SWITCH_DECLARE
(
void
)
switch_channel_state_thread_lock
(
switch_channel_t
*
channel
);
SWITCH_DECLARE
(
void
)
switch_channel_state_thread_lock
(
switch_channel_t
*
channel
);
SWITCH_DECLARE
(
void
)
switch_channel_state_thread_unlock
(
switch_channel_t
*
channel
);
SWITCH_DECLARE
(
void
)
switch_channel_state_thread_unlock
(
switch_channel_t
*
channel
);
...
...
src/switch_channel.c
浏览文件 @
e78f3f0c
...
@@ -4687,6 +4687,25 @@ SWITCH_DECLARE(switch_status_t) switch_channel_set_timestamps(switch_channel_t *
...
@@ -4687,6 +4687,25 @@ SWITCH_DECLARE(switch_status_t) switch_channel_set_timestamps(switch_channel_t *
return
status
;
return
status
;
}
}
SWITCH_DECLARE
(
const
char
*
)
switch_channel_get_partner_uuid_copy
(
switch_channel_t
*
channel
,
char
*
buf
,
switch_size_t
blen
)
{
const
char
*
uuid
=
NULL
;
switch_mutex_lock
(
channel
->
profile_mutex
);
if
(
!
(
uuid
=
switch_channel_get_variable_dup
(
channel
,
SWITCH_SIGNAL_BOND_VARIABLE
,
SWITCH_TRUE
,
-
1
)))
{
uuid
=
switch_channel_get_variable_dup
(
channel
,
SWITCH_ORIGINATE_SIGNAL_BOND_VARIABLE
,
SWITCH_TRUE
,
-
1
);
}
if
(
uuid
)
{
strncpy
(
buf
,
uuid
,
blen
);
uuid
=
(
const
char
*
)
buf
;
}
switch_mutex_unlock
(
channel
->
profile_mutex
);
return
uuid
;
}
SWITCH_DECLARE
(
const
char
*
)
switch_channel_get_partner_uuid
(
switch_channel_t
*
channel
)
SWITCH_DECLARE
(
const
char
*
)
switch_channel_get_partner_uuid
(
switch_channel_t
*
channel
)
{
{
const
char
*
uuid
=
NULL
;
const
char
*
uuid
=
NULL
;
...
...
src/switch_core_session.c
浏览文件 @
e78f3f0c
...
@@ -190,8 +190,9 @@ SWITCH_DECLARE(switch_status_t) switch_core_session_perform_get_partner(switch_c
...
@@ -190,8 +190,9 @@ SWITCH_DECLARE(switch_status_t) switch_core_session_perform_get_partner(switch_c
const
char
*
file
,
const
char
*
func
,
int
line
)
const
char
*
file
,
const
char
*
func
,
int
line
)
{
{
const
char
*
uuid
;
const
char
*
uuid
;
char
uuid_str
[
SWITCH_UUID_FORMATTED_LENGTH
+
1
];
if
((
uuid
=
switch_channel_get_partner_uuid
(
session
->
channel
)))
{
if
((
uuid
=
switch_channel_get_partner_uuid
_copy
(
session
->
channel
,
uuid_str
,
sizeof
(
uuid_str
)
)))
{
if
((
*
partner
=
switch_core_session_perform_locate
(
uuid
,
file
,
func
,
line
)))
{
if
((
*
partner
=
switch_core_session_perform_locate
(
uuid
,
file
,
func
,
line
)))
{
return
SWITCH_STATUS_SUCCESS
;
return
SWITCH_STATUS_SUCCESS
;
}
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论