Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
277c1141
提交
277c1141
authored
4月 04, 2012
作者:
root
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
a few perf tweaks
上级
df8d2f1e
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
22 行增加
和
13 行删除
+22
-13
switch_xml.h
src/include/switch_xml.h
+1
-1
sofia_glue.c
src/mod/endpoints/mod_sofia/sofia_glue.c
+1
-1
switch_channel.c
src/switch_channel.c
+2
-3
switch_core_io.c
src/switch_core_io.c
+7
-7
switch_xml.c
src/switch_xml.c
+11
-1
没有找到文件。
src/include/switch_xml.h
浏览文件 @
277c1141
...
...
@@ -214,7 +214,7 @@ SWITCH_DECLARE(switch_xml_t) switch_xml_get(_In_ switch_xml_t xml,...);
///\param prn_header add <?xml version..> header too
///\return the xml text string
SWITCH_DECLARE
(
char
*
)
switch_xml_toxml
(
_In_
switch_xml_t
xml
,
_In_
switch_bool_t
prn_header
);
SWITCH_DECLARE
(
char
*
)
switch_xml_toxml_nolock
(
switch_xml_t
xml
,
_In_
switch_bool_t
prn_header
);
///\brief Converts an switch_xml structure back to xml using the buffer passed in the parameters.
///\param xml the xml node
///\param buf buffer to use
...
...
src/mod/endpoints/mod_sofia/sofia_glue.c
浏览文件 @
277c1141
...
...
@@ -5971,7 +5971,7 @@ void sofia_glue_tech_track(sofia_profile_t *profile, switch_core_session_t *sess
}
if
(
switch_ivr_generate_xml_cdr
(
session
,
&
cdr
)
==
SWITCH_STATUS_SUCCESS
)
{
xml_cdr_text
=
switch_xml_toxml
(
cdr
,
SWITCH_FALSE
);
xml_cdr_text
=
switch_xml_toxml
_nolock
(
cdr
,
SWITCH_FALSE
);
switch_xml_free
(
cdr
);
}
...
...
src/switch_channel.c
浏览文件 @
277c1141
...
...
@@ -1868,12 +1868,11 @@ SWITCH_DECLARE(switch_channel_state_t) switch_channel_perform_set_running_state(
switch_channel_clear_flag
(
channel
,
CF_TAGGED
);
switch_mutex_lock
(
channel
->
state_mutex
);
switch_log_printf
(
SWITCH_CHANNEL_ID_LOG
,
file
,
func
,
line
,
switch_channel_get_uuid
(
channel
),
SWITCH_LOG_DEBUG
,
"(%s) Running State Change %s
\n
"
,
channel
->
name
,
state_names
[
state
]);
switch_mutex_lock
(
channel
->
state_mutex
);
channel
->
running_state
=
state
;
if
(
state
==
CS_ROUTING
||
state
==
CS_HANGUP
)
{
...
...
src/switch_core_io.c
浏览文件 @
277c1141
...
...
@@ -41,7 +41,7 @@ SWITCH_DECLARE(switch_status_t) switch_core_session_write_video_frame(switch_cor
switch_io_event_hook_video_write_frame_t
*
ptr
;
switch_status_t
status
=
SWITCH_STATUS_FALSE
;
if
(
switch_channel_down
_nosig
(
session
->
channel
))
{
if
(
switch_channel_down
(
session
->
channel
))
{
return
SWITCH_STATUS_FALSE
;
}
...
...
@@ -65,7 +65,7 @@ SWITCH_DECLARE(switch_status_t) switch_core_session_read_video_frame(switch_core
switch_assert
(
session
!=
NULL
);
if
(
switch_channel_down
_nosig
(
session
->
channel
))
{
if
(
switch_channel_down
(
session
->
channel
))
{
return
SWITCH_STATUS_FALSE
;
}
...
...
@@ -153,7 +153,7 @@ SWITCH_DECLARE(switch_status_t) switch_core_session_read_frame(switch_core_sessi
}
}
if
(
switch_channel_down
_nosig
(
session
->
channel
)
||
!
switch_core_codec_ready
(
session
->
read_codec
))
{
if
(
switch_channel_down
(
session
->
channel
)
||
!
switch_core_codec_ready
(
session
->
read_codec
))
{
*
frame
=
NULL
;
status
=
SWITCH_STATUS_FALSE
;
goto
even_more_done
;
...
...
@@ -1114,7 +1114,7 @@ SWITCH_DECLARE(switch_status_t) switch_core_session_write_frame(switch_core_sess
while
(
switch_buffer_inuse
(
session
->
raw_write_buffer
)
>=
session
->
write_impl
.
decoded_bytes_per_packet
)
{
int
rate
;
if
(
switch_channel_down
_nosig
(
session
->
channel
)
||
!
session
->
raw_write_buffer
)
{
if
(
switch_channel_down
(
session
->
channel
)
||
!
session
->
raw_write_buffer
)
{
goto
error
;
}
if
((
session
->
raw_write_frame
.
datalen
=
(
uint32_t
)
...
...
@@ -1296,7 +1296,7 @@ SWITCH_DECLARE(switch_status_t) switch_core_session_recv_dtmf(switch_core_sessio
switch_dtmf_t
new_dtmf
;
int
fed
=
0
;
if
(
switch_channel_down
_nosig
(
session
->
channel
))
{
if
(
switch_channel_down
(
session
->
channel
))
{
return
SWITCH_STATUS_FALSE
;
}
...
...
@@ -1339,7 +1339,7 @@ SWITCH_DECLARE(switch_status_t) switch_core_session_send_dtmf(switch_core_sessio
switch_status_t
status
=
SWITCH_STATUS_FALSE
;
switch_dtmf_t
new_dtmf
;
if
(
switch_channel_down
_nosig
(
session
->
channel
))
{
if
(
switch_channel_down
(
session
->
channel
))
{
return
SWITCH_STATUS_FALSE
;
}
...
...
@@ -1418,7 +1418,7 @@ SWITCH_DECLARE(switch_status_t) switch_core_session_send_dtmf_string(switch_core
dtmf
.
flags
=
0
;
}
if
(
switch_channel_down
_nosig
(
session
->
channel
))
{
if
(
switch_channel_down
(
session
->
channel
))
{
return
SWITCH_STATUS_FALSE
;
}
...
...
src/switch_xml.c
浏览文件 @
277c1141
...
...
@@ -2451,12 +2451,22 @@ static char *switch_xml_toxml_r(switch_xml_t xml, char **s, switch_size_t *len,
}
}
SWITCH_DECLARE
(
char
*
)
switch_xml_toxml_nolock
(
switch_xml_t
xml
,
switch_bool_t
prn_header
)
{
char
*
s
=
(
char
*
)
malloc
(
SWITCH_XML_BUFSIZE
);
switch_assert
(
s
);
return
switch_xml_toxml_buf
(
xml
,
s
,
SWITCH_XML_BUFSIZE
,
0
,
prn_header
);
}
SWITCH_DECLARE
(
char
*
)
switch_xml_toxml
(
switch_xml_t
xml
,
switch_bool_t
prn_header
)
{
char
*
r
,
*
s
;
switch_mutex_lock
(
XML_GEN_LOCK
);
s
=
(
char
*
)
malloc
(
SWITCH_XML_BUFSIZE
);
switch_assert
(
s
);
switch_mutex_lock
(
XML_GEN_LOCK
);
r
=
switch_xml_toxml_buf
(
xml
,
s
,
SWITCH_XML_BUFSIZE
,
0
,
prn_header
);
switch_mutex_unlock
(
XML_GEN_LOCK
);
return
r
;
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论