Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
454c238e
提交
454c238e
authored
11月 01, 2010
作者:
Stefan Knoblich
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'master' of
ssh://git.freeswitch.org/freeswitch
上级
cc1e8339
7ac78ac2
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
20 行增加
和
12 行删除
+20
-12
bootstrap.sh
bootstrap.sh
+1
-1
mod_commands.c
src/mod/applications/mod_commands/mod_commands.c
+6
-5
sofia_glue.c
src/mod/endpoints/mod_sofia/sofia_glue.c
+4
-5
switch_console.c
src/switch_console.c
+5
-0
switch_core_sqldb.c
src/switch_core_sqldb.c
+4
-1
没有找到文件。
bootstrap.sh
浏览文件 @
454c238e
...
...
@@ -148,7 +148,7 @@ if [ "x$libtoolize" = "x" ]; then
exit
1
fi
if
[
!
-x
"
$libtoolize
"
]
;
then
echo
"
$libtoolize
does not exist or is
t
not executable"
echo
"
$libtoolize
does not exist or is not executable"
exit
1
fi
...
...
src/mod/applications/mod_commands/mod_commands.c
浏览文件 @
454c238e
...
...
@@ -3483,6 +3483,12 @@ SWITCH_STANDARD_API(show_function)
char
hostname
[
256
]
=
""
;
gethostname
(
hostname
,
sizeof
(
hostname
));
if
(
!
(
cflags
&
SCF_USE_SQL
))
{
stream
->
write_function
(
stream
,
"-ERR SQL DISABLED NO DATA AVAILABLE!
\n
"
);
return
SWITCH_STATUS_SUCCESS
;
}
if
(
switch_core_db_handle
(
&
db
)
!=
SWITCH_STATUS_SUCCESS
)
{
stream
->
write_function
(
stream
,
"%s"
,
"-ERR Databse Error!
\n
"
);
return
SWITCH_STATUS_SUCCESS
;
...
...
@@ -3515,11 +3521,6 @@ SWITCH_STANDARD_API(show_function)
holder
.
print_title
=
1
;
if
(
!
(
cflags
&
SCF_USE_SQL
)
&&
command
&&
!
strcasecmp
(
command
,
"channels"
))
{
stream
->
write_function
(
stream
,
"-ERR SQL DISABLED NO CHANNEL DATA AVAILABLE!
\n
"
);
goto
end
;
}
/* If you change the field qty or order of any of these select */
/* statements, you must also change show_callback and friends to match! */
if
(
!
command
)
{
...
...
src/mod/endpoints/mod_sofia/sofia_glue.c
浏览文件 @
454c238e
...
...
@@ -392,11 +392,6 @@ void sofia_glue_set_local_sdp(private_object_t *tech_pvt, const char *ip, uint32
}
}
if
(
!
tech_pvt
->
rm_encoding
&&
(
b_sdp
=
switch_channel_get_variable
(
tech_pvt
->
channel
,
SWITCH_B_SDP_VARIABLE
)))
{
sofia_glue_sdp_map
(
b_sdp
,
&
map
,
&
ptmap
);
}
if
(
fmtp_out_var
)
{
fmtp_out
=
fmtp_out_var
;
}
...
...
@@ -435,6 +430,10 @@ void sofia_glue_set_local_sdp(private_object_t *tech_pvt, const char *ip, uint32
return
;
}
if
(
!
tech_pvt
->
rm_encoding
&&
(
b_sdp
=
switch_channel_get_variable
(
tech_pvt
->
channel
,
SWITCH_B_SDP_VARIABLE
)))
{
sofia_glue_sdp_map
(
b_sdp
,
&
map
,
&
ptmap
);
}
if
(
!
sr
)
{
if
((
var_val
=
switch_channel_get_variable
(
tech_pvt
->
channel
,
"media_audio_mode"
)))
{
sr
=
var_val
;
...
...
src/switch_console.c
浏览文件 @
454c238e
...
...
@@ -238,9 +238,14 @@ SWITCH_DECLARE(char *) switch_console_expand_alias(char *cmd, char *arg)
char
*
sql
=
NULL
;
char
*
exp
=
NULL
;
switch_cache_db_handle_t
*
db
=
NULL
;
switch_core_flag_t
cflags
=
switch_core_flags
();
int
full
=
0
;
if
(
!
(
cflags
&
SCF_USE_SQL
))
{
return
NULL
;
}
if
(
switch_core_db_handle
(
&
db
)
!=
SWITCH_STATUS_SUCCESS
)
{
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_ERROR
,
"Database Error
\n
"
);
return
NULL
;
...
...
src/switch_core_sqldb.c
浏览文件 @
454c238e
...
...
@@ -1590,6 +1590,8 @@ switch_status_t switch_core_sqldb_start(switch_memory_pool_t *pool, switch_bool_
top:
if
(
!
sql_manager
.
manage
)
goto
skip
;
/* Activate SQL database */
if
(
switch_core_db_handle
(
&
dbh
)
!=
SWITCH_STATUS_SUCCESS
)
{
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_ERROR
,
"Error Opening DB!
\n
"
);
...
...
@@ -1707,6 +1709,7 @@ switch_status_t switch_core_sqldb_start(switch_memory_pool_t *pool, switch_bool_
switch_cache_db_execute_sql
(
dbh
,
"create index channels1 on channels(hostname)"
,
NULL
);
switch_cache_db_execute_sql
(
dbh
,
"create index calls1 on calls(hostname)"
,
NULL
);
skip:
if
(
sql_manager
.
manage
)
{
if
(
switch_event_bind_removable
(
"core_db"
,
SWITCH_EVENT_ALL
,
SWITCH_EVENT_SUBCLASS_ANY
,
...
...
@@ -1729,7 +1732,7 @@ switch_status_t switch_core_sqldb_start(switch_memory_pool_t *pool, switch_bool_
switch_yield
(
10000
);
}
switch_cache_db_release_db_handle
(
&
dbh
);
if
(
sql_manager
.
manage
)
switch_cache_db_release_db_handle
(
&
dbh
);
return
SWITCH_STATUS_SUCCESS
;
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论