Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
e6bfa118
提交
e6bfa118
authored
2月 09, 2012
作者:
Anthony Minessale
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
minor presence tweaks
上级
d5f47a87
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
11 行增加
和
5 行删除
+11
-5
mod_conference.c
src/mod/applications/mod_conference/mod_conference.c
+8
-2
sofia_presence.c
src/mod/endpoints/mod_sofia/sofia_presence.c
+2
-2
switch_ivr.c
src/switch_ivr.c
+1
-1
没有找到文件。
src/mod/applications/mod_conference/mod_conference.c
浏览文件 @
e6bfa118
...
...
@@ -6957,7 +6957,7 @@ static conference_obj_t *conference_new(char *name, conf_xml_cfg_t cfg, switch_c
switch_uuid_t
uuid
;
switch_codec_implementation_t
read_impl
=
{
0
};
switch_channel_t
*
channel
=
NULL
;
const
char
*
force_rate
=
NULL
,
*
force_interval
=
NULL
;
const
char
*
force_rate
=
NULL
,
*
force_interval
=
NULL
,
*
presence_id
=
NULL
;
uint32_t
force_rate_i
=
0
,
force_interval_i
=
0
;
/* Validate the conference name */
...
...
@@ -6972,6 +6972,8 @@ static conference_obj_t *conference_new(char *name, conf_xml_cfg_t cfg, switch_c
switch_core_session_get_read_impl
(
session
,
&
read_impl
);
channel
=
switch_core_session_get_channel
(
session
);
presence_id
=
switch_channel_get_variable
(
channel
,
"presence_id"
);
if
((
force_rate
=
switch_channel_get_variable
(
channel
,
"conference_force_rate"
)))
{
if
(
!
strcasecmp
(
force_rate
,
"auto"
))
{
force_rate_i
=
read_impl
.
actual_samples_per_second
;
...
...
@@ -7365,7 +7367,11 @@ static conference_obj_t *conference_new(char *name, conf_xml_cfg_t cfg, switch_c
conference
->
name
=
switch_core_strdup
(
conference
->
pool
,
name
);
if
((
name_domain
=
strchr
(
conference
->
name
,
'@'
)))
{
if
(
presence_id
&&
(
name_domain
=
strchr
(
presence_id
,
'@'
)))
{
name_domain
++
;
conference
->
domain
=
switch_core_strdup
(
conference
->
pool
,
name_domain
);
}
else
if
((
name_domain
=
strchr
(
conference
->
name
,
'@'
)))
{
name_domain
++
;
conference
->
domain
=
switch_core_strdup
(
conference
->
pool
,
name_domain
);
}
else
if
(
domain
)
{
conference
->
domain
=
switch_core_strdup
(
conference
->
pool
,
domain
);
...
...
src/mod/endpoints/mod_sofia/sofia_presence.c
浏览文件 @
e6bfa118
...
...
@@ -1090,7 +1090,7 @@ static void actual_sofia_presence_event_handler(switch_event_t *event)
}
if
(
!
strcmp
(
proto
,
"dp"
))
{
sql
=
switch_mprintf
(
"update sip_presence set rpid='%q',status='%q' where hostname='%q'
na
d profile_name='%q' and "
sql
=
switch_mprintf
(
"update sip_presence set rpid='%q',status='%q' where hostname='%q'
an
d profile_name='%q' and "
"sip_user='%q' and sip_host='%q'"
,
rpid
,
status
,
mod_sofia_globals
.
hostname
,
profile
->
name
,
euser
,
host
);
sofia_glue_execute_sql_now
(
profile
,
&
sql
,
SWITCH_TRUE
);
...
...
@@ -3299,7 +3299,7 @@ void sofia_presence_handle_sip_i_subscribe(int status,
np
.
network_port
,
np
.
network_ip
,
orig_proto
,
full_to
,
to_tag
);
switch_assert
(
sql
!=
NULL
);
if
(
mod_sofia_globals
.
debug_presence
>
0
||
mod_sofia_globals
.
debug_sla
>
0
)
{
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_NOTICE
,
"%s SUBSCRIBE %s@%s %s@%s
\n
%s
\n
"
,
...
...
src/switch_ivr.c
浏览文件 @
e6bfa118
...
...
@@ -3184,7 +3184,7 @@ SWITCH_DECLARE(char *) switch_ivr_check_presence_mapping(const char *exten_name,
for
(
x_domain
=
switch_xml_child
(
x_domains
,
"domain"
);
x_domain
;
x_domain
=
x_domain
->
next
)
{
const
char
*
dname
=
switch_xml_attr
(
x_domain
,
"name"
);
if
(
!
dname
||
strcasecmp
(
domain_name
,
dname
))
continue
;
if
(
!
dname
||
(
strcasecmp
(
dname
,
"*"
)
&&
strcasecmp
(
domain_name
,
dname
)
))
continue
;
for
(
x_exten
=
switch_xml_child
(
x_domain
,
"exten"
);
x_exten
;
x_exten
=
x_exten
->
next
)
{
const
char
*
regex
=
switch_xml_attr
(
x_exten
,
"regex"
);
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论