Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
75b36c95
提交
75b36c95
authored
7月 11, 2012
作者:
Anthony Minessale
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
tweaks
上级
9cad51b7
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
21 行增加
和
21 行删除
+21
-21
.update
libs/sofia-sip/.update
+1
-1
mod_conference.c
src/mod/applications/mod_conference/mod_conference.c
+20
-20
没有找到文件。
libs/sofia-sip/.update
浏览文件 @
75b36c95
Sat Jun 9 03:24:47 UTC
2012
Wed Jul 11 16:48:51 CDT
2012
src/mod/applications/mod_conference/mod_conference.c
浏览文件 @
75b36c95
...
...
@@ -467,7 +467,7 @@ static switch_status_t conference_play_file(conference_obj_t *conference, char *
static
void
conference_send_all_dtmf
(
conference_member_t
*
member
,
conference_obj_t
*
conference
,
const
char
*
dtmf
);
static
switch_status_t
conference_say
(
conference_obj_t
*
conference
,
const
char
*
text
,
uint32_t
leadin
);
static
void
conference_list
(
conference_obj_t
*
conference
,
switch_stream_handle_t
*
stream
,
char
*
delim
);
static
conference_obj_t
*
conference_find
(
char
*
name
);
static
conference_obj_t
*
conference_find
(
char
*
name
,
char
*
domain
);
static
void
member_bind_controls
(
conference_member_t
*
member
,
const
char
*
controls
);
static
void
conference_send_presence
(
conference_obj_t
*
conference
);
...
...
@@ -6023,7 +6023,7 @@ SWITCH_STANDARD_API(conf_api_main)
if
(
argc
&&
argv
[
0
])
{
conference_obj_t
*
conference
=
NULL
;
if
((
conference
=
conference_find
(
argv
[
0
])))
{
if
((
conference
=
conference_find
(
argv
[
0
]
,
NULL
)))
{
if
(
argc
>=
2
)
{
conf_api_dispatch
(
conference
,
stream
,
argc
,
argv
,
cmd
,
1
);
}
else
{
...
...
@@ -6838,7 +6838,7 @@ SWITCH_STANDARD_APP(conference_function)
conf_name
=
uuid
;
}
if
((
conference
=
conference_find
(
conf_name
)))
{
if
((
conference
=
conference_find
(
conf_name
,
NULL
)))
{
switch_thread_rwlock_unlock
(
conference
->
rwlock
);
switch_log_printf
(
SWITCH_CHANNEL_SESSION_LOG
(
session
),
SWITCH_LOG_ERROR
,
"Conference %s already exists!
\n
"
,
conf_name
);
goto
done
;
...
...
@@ -6878,7 +6878,7 @@ SWITCH_STANDARD_APP(conference_function)
enforce_security
=
switch_true
(
pvar
);
}
if
((
conference
=
conference_find
(
conf_name
)))
{
if
((
conference
=
conference_find
(
conf_name
,
NULL
)))
{
if
(
locked
)
{
switch_mutex_unlock
(
globals
.
setup_mutex
);
locked
=
0
;
...
...
@@ -7395,7 +7395,7 @@ static switch_status_t chat_send(switch_event_t *message_event)
switch_copy_string
(
name
,
to
,
sizeof
(
name
));
}
if
(
!
(
conference
=
conference_find
(
name
)))
{
if
(
!
(
conference
=
conference_find
(
name
,
NULL
)))
{
switch_core_chat_send_args
(
proto
,
CONF_CHAT_PROTO
,
to
,
hint
&&
strchr
(
hint
,
'/'
)
?
hint
:
from
,
""
,
"Conference not active."
,
NULL
,
NULL
);
return
SWITCH_STATUS_FALSE
;
}
...
...
@@ -7421,7 +7421,7 @@ static switch_status_t chat_send(switch_event_t *message_event)
return
SWITCH_STATUS_SUCCESS
;
}
static
conference_obj_t
*
conference_find
(
char
*
name
)
static
conference_obj_t
*
conference_find
(
char
*
name
,
char
*
domain
)
{
conference_obj_t
*
conference
;
...
...
@@ -7432,6 +7432,10 @@ static conference_obj_t *conference_find(char *name)
switch_clear_flag
(
conference
,
CFLAG_INHASH
);
conference
=
NULL
;
}
if
(
!
zstr
(
domain
)
&&
conference
->
domain
&&
strcasecmp
(
domain
,
conference
->
domain
))
{
conference
=
NULL
;
}
}
if
(
conference
)
{
if
(
switch_thread_rwlock_tryrdlock
(
conference
->
rwlock
)
!=
SWITCH_STATUS_SUCCESS
)
{
...
...
@@ -8021,11 +8025,12 @@ static void call_setup_event_handler(switch_event_t *event)
{
conference_obj_t
*
conference
=
NULL
;
char
*
conf
=
switch_event_get_header
(
event
,
"Target-Component"
);
char
*
domain
=
switch_event_get_header
(
event
,
"Target-Domain"
);
char
*
dial_str
=
switch_event_get_header
(
event
,
"Request-Target"
);
char
*
action
=
switch_event_get_header
(
event
,
"Request-Action"
);
if
(
!
zstr
(
conf
)
&&
!
zstr
(
dial_str
)
&&
!
zstr
(
action
)
&&
(
conference
=
conference_find
(
conf
)))
{
if
(
!
zstr
(
conf
)
&&
!
zstr
(
dial_str
)
&&
!
zstr
(
action
)
&&
(
conference
=
conference_find
(
conf
,
domain
)))
{
switch_event_t
*
var_event
;
switch_event_header_t
*
hp
;
...
...
@@ -8059,38 +8064,33 @@ static void conf_data_event_handler(switch_event_t *event)
{
switch_event_t
*
revent
;
char
*
name
=
switch_event_get_header
(
event
,
"conference-name"
);
char
*
domain
=
switch_event_get_header
(
event
,
"conference-domain"
);
conference_obj_t
*
conference
=
NULL
;
char
*
body
=
NULL
;
switch_event_dup
(
&
revent
,
event
);
revent
->
event_id
=
SWITCH_EVENT_CONFERENCE_DATA
;
revent
->
flags
|=
EF_UNIQ_HEADERS
;
switch_event_add_header
(
revent
,
SWITCH_STACK_TOP
,
"Event-Name"
,
"CONFERENCE_DATA"
);
if
(
!
zstr
(
name
)
&&
(
conference
=
conference_find
(
name
)))
{
if
(
!
zstr
(
name
)
&&
(
conference
=
conference_find
(
name
,
domain
)))
{
if
(
switch_test_flag
(
conference
,
CFLAG_RFC4579
))
{
body
=
conference_rfc4579_render
(
conference
,
event
);
switch_event_add_body
(
revent
,
body
);
}
switch_thread_rwlock_unlock
(
conference
->
rwlock
);
}
if
(
!
body
)
{
char
*
domain
=
switch_event_get_header
(
event
,
"conference-domain"
);
if
(
zstr
(
domain
))
{
domain
=
"cluecon.com"
;
}
body
=
switch_mprintf
(
"<conference-info xmlns=
\"
urn:ietf:params:xml:ns:conference-info
\"
"
"entity=
\"
sip:%s@%s
\"
state=
\"
full
\"
/>
\n
"
,
name
,
domain
);
switch_event_add_body
(
revent
,
"CONFERENCE NOT FOUND"
);
switch_event_add_header
(
revent
,
SWITCH_STACK_BOTTOM
,
"notfound"
,
"true"
);
}
switch_event_add_body
(
revent
,
body
);
switch_event_fire
(
&
revent
);
switch_safe_free
(
body
);
}
...
...
@@ -8119,7 +8119,7 @@ static void pres_event_handler(switch_event_t *event)
dup_conf_name
=
switch_mprintf
(
"%q@%q"
,
conf_name
,
domain_name
);
if
((
conference
=
conference_find
(
conf_name
))
||
(
conference
=
conference_find
(
dup_conf_name
)))
{
if
((
conference
=
conference_find
(
conf_name
,
NULL
))
||
(
conference
=
conference_find
(
dup_conf_name
,
NULL
)))
{
if
(
switch_event_create
(
&
event
,
SWITCH_EVENT_PRESENCE_IN
)
==
SWITCH_STATUS_SUCCESS
)
{
switch_event_add_header_string
(
event
,
SWITCH_STACK_BOTTOM
,
"proto"
,
CONF_CHAT_PROTO
);
switch_event_add_header_string
(
event
,
SWITCH_STACK_BOTTOM
,
"login"
,
conference
->
name
);
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论