Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
409e0da3
提交
409e0da3
authored
3月 25, 2008
作者:
Anthony Minessale
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update
git-svn-id:
http://svn.freeswitch.org/svn/freeswitch/trunk@7956
d0543943-73ff-0310-b7d9-9358b9ac24b2
上级
4d0b60ad
显示空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
20 行增加
和
9 行删除
+20
-9
switch_ivr.h
src/include/switch_ivr.h
+1
-0
mod_sofia.c
src/mod/endpoints/mod_sofia/mod_sofia.c
+1
-2
switch_ivr.c
src/switch_ivr.c
+16
-5
switch_ivr_bridge.c
src/switch_ivr_bridge.c
+1
-1
switch_xml.cpp
src/switch_xml.cpp
+1
-1
没有找到文件。
src/include/switch_ivr.h
浏览文件 @
409e0da3
...
...
@@ -106,6 +106,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_parse_event(_In_ switch_core_session_
\return SWITCH_STATUS_SUCCESS if successful
*/
SWITCH_DECLARE
(
switch_status_t
)
switch_ivr_parse_all_events
(
switch_core_session_t
*
session
);
SWITCH_DECLARE
(
switch_status_t
)
switch_ivr_parse_next_event
(
switch_core_session_t
*
session
);
/*!
\brief Wait for time to pass for a specified number of milliseconds
...
...
src/mod/endpoints/mod_sofia/mod_sofia.c
浏览文件 @
409e0da3
...
...
@@ -782,7 +782,6 @@ static switch_status_t sofia_receive_message(switch_core_session_t *session, swi
if
(
!
tech_pvt
->
local_sdp_str
)
{
sofia_glue_tech_absorb_sdp
(
tech_pvt
);
}
switch_channel_set_flag
(
tech_pvt
->
channel
,
CF_REQ_MEDIA
);
sofia_glue_do_invite
(
session
);
}
break
;
...
...
@@ -828,7 +827,7 @@ static switch_status_t sofia_receive_message(switch_core_session_t *session, swi
sofia_glue_set_local_sdp
(
tech_pvt
,
NULL
,
0
,
NULL
,
1
);
if
(
send_invite
)
{
switch_channel_set_flag
(
tech_pvt
->
channel
,
CF_REQ_MEDIA
);
switch_channel_set_flag
(
channel
,
CF_REQ_MEDIA
);
sofia_glue_do_invite
(
session
);
}
}
...
...
src/switch_ivr.c
浏览文件 @
409e0da3
...
...
@@ -399,15 +399,24 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_parse_event(switch_core_session_t *se
return
status
;
}
SWITCH_DECLARE
(
switch_status_t
)
switch_ivr_parse_
all_events
(
switch_core_session_t
*
session
)
SWITCH_DECLARE
(
switch_status_t
)
switch_ivr_parse_
next_event
(
switch_core_session_t
*
session
)
{
switch_event_t
*
event
;
while
(
switch_core_session_dequeue_private_event
(
session
,
&
event
)
==
SWITCH_STATUS_SUCCESS
)
{
if
(
switch_core_session_dequeue_private_event
(
session
,
&
event
)
==
SWITCH_STATUS_SUCCESS
)
{
switch_ivr_parse_event
(
session
,
event
);
switch_event_fire
(
&
event
);
return
SWITCH_STATUS_SUCCESS
;
}
return
SWITCH_STATUS_FALSE
;
}
SWITCH_DECLARE
(
switch_status_t
)
switch_ivr_parse_all_events
(
switch_core_session_t
*
session
)
{
while
(
switch_ivr_parse_next_event
(
session
)
==
SWITCH_STATUS_SUCCESS
);
return
SWITCH_STATUS_SUCCESS
;
}
...
...
@@ -843,6 +852,8 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_media(const char *uuid, switch_media_
}
else
{
switch_ivr_uuid_bridge
(
uuid
,
other_uuid
);
}
switch_channel_wait_for_flag
(
channel
,
CF_BRIDGED
,
SWITCH_TRUE
,
1000
);
switch_channel_wait_for_flag
(
other_channel
,
CF_BRIDGED
,
SWITCH_TRUE
,
1000
);
}
}
...
...
@@ -871,14 +882,12 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_nomedia(const char *uuid, switch_medi
if
((
flags
&
SMF_FORCE
)
||
!
switch_channel_test_flag
(
channel
,
CF_PROXY_MODE
))
{
switch_core_session_receive_message
(
session
,
&
msg
);
switch_channel_wait_for_flag
(
channel
,
CF_REQ_MEDIA
,
SWITCH_FALSE
,
10000
);
if
((
flags
&
SMF_REBRIDGE
)
&&
(
other_uuid
=
switch_channel_get_variable
(
channel
,
SWITCH_BRIDGE_VARIABLE
))
&&
(
other_session
=
switch_core_session_locate
(
other_uuid
)))
{
other_channel
=
switch_core_session_get_channel
(
other_session
);
switch_core_session_receive_message
(
other_session
,
&
msg
);
switch_channel_wait_for_flag
(
other_channel
,
CF_REQ_MEDIA
,
SWITCH_FALSE
,
10000
);
switch_channel_clear_state_handler
(
other_channel
,
NULL
);
}
...
...
@@ -889,6 +898,8 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_nomedia(const char *uuid, switch_medi
}
else
{
switch_ivr_signal_bridge
(
session
,
other_session
);
}
switch_channel_wait_for_flag
(
channel
,
CF_BRIDGED
,
SWITCH_TRUE
,
1000
);
switch_channel_wait_for_flag
(
other_channel
,
CF_BRIDGED
,
SWITCH_TRUE
,
1000
);
switch_core_session_rwunlock
(
other_session
);
}
}
...
...
src/switch_ivr_bridge.c
浏览文件 @
409e0da3
...
...
@@ -153,7 +153,7 @@ static void *audio_bridge_thread(switch_thread_t * thread, void *obj)
msg
.
message_id
=
SWITCH_MESSAGE_INDICATE_UNBRIDGE
;
msg
.
from
=
__FILE__
;
switch_core_session_receive_message
(
session_a
,
&
msg
);
switch_ivr_parse_
all_events
(
session_a
);
switch_ivr_parse_
next_event
(
session_a
);
msg
.
message_id
=
SWITCH_MESSAGE_INDICATE_BRIDGE
;
switch_core_session_receive_message
(
session_a
,
&
msg
);
switch_channel_clear_flag
(
chan_b
,
CF_SUSPEND
);
...
...
src/switch_xml.cpp
浏览文件 @
409e0da3
...
...
@@ -1410,7 +1410,7 @@ SWITCH_DECLARE(switch_status_t) switch_xml_locate_user(const char *key,
if
(
user_name
)
{
if
(
params
&&
switch_event_get_header
(
params
,
"mailbox"
))
{
if
(
params
&&
switch_event_get_header
(
params
,
(
char
*
)
"mailbox"
))
{
if
((
*
user
=
switch_xml_find_child
(
*
domain
,
"user"
,
"mailbox"
,
user_name
)))
{
return
SWITCH_STATUS_SUCCESS
;
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论