Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
aea7800a
提交
aea7800a
authored
3月 16, 2014
作者:
Michael Jerris
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix var type warnings in mod_lcr
上级
4ee5d1f6
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
9 行增加
和
13 行删除
+9
-13
mod_lcr.c
src/mod/applications/mod_lcr/mod_lcr.c
+9
-13
没有找到文件。
src/mod/applications/mod_lcr/mod_lcr.c
浏览文件 @
aea7800a
...
...
@@ -581,16 +581,16 @@ static char *format_custom_sql(const char *custom_sql, callback_t *cb_struct, co
return
(
char
*
)
custom_sql
;
}
static
switch_
bool
_t
lcr_execute_sql_callback
(
char
*
sql
,
switch_core_db_callback_func_t
callback
,
void
*
pdata
)
static
switch_
status
_t
lcr_execute_sql_callback
(
char
*
sql
,
switch_core_db_callback_func_t
callback
,
void
*
pdata
)
{
switch_
bool_t
retval
=
SWITCH_FALSE
;
switch_
status_t
retval
=
SWITCH_STATUS_GENERR
;
switch_cache_db_handle_t
*
dbh
=
NULL
;
if
(
globals
.
odbc_dsn
&&
(
dbh
=
lcr_get_db_handle
()))
{
if
(
switch_cache_db_execute_sql_callback
(
dbh
,
sql
,
callback
,
pdata
,
NULL
)
!=
SWITCH_STATUS_SUCCESS
)
{
retval
=
SWITCH_
FALSE
;
retval
=
SWITCH_
STATUS_GENERR
;
}
else
{
retval
=
SWITCH_
TRUE
;
retval
=
SWITCH_
STATUS_SUCCESS
;
}
}
switch_cache_db_release_db_handle
(
&
dbh
);
...
...
@@ -885,7 +885,7 @@ static switch_status_t lcr_do_lookup(callback_t *cb_struct)
char
*
digits_expanded
=
NULL
;
char
*
lrn_digits_expanded
=
NULL
;
profile_t
*
profile
=
cb_struct
->
profile
;
switch_
bool
_t
lookup_status
;
switch_
status
_t
lookup_status
;
switch_channel_t
*
channel
;
char
*
id_str
;
char
*
safe_sql
=
NULL
;
...
...
@@ -987,11 +987,7 @@ static switch_status_t lcr_do_lookup(callback_t *cb_struct)
switch_safe_free
(
sql_stream
.
data
);
switch_core_hash_destroy
(
&
cb_struct
->
dedup_hash
);
if
(
lookup_status
)
{
return
SWITCH_STATUS_SUCCESS
;
}
else
{
return
SWITCH_STATUS_GENERR
;
}
return
lookup_status
;
}
static
switch_bool_t
test_profile
(
char
*
lcr_profile
)
...
...
@@ -1175,7 +1171,7 @@ static switch_status_t lcr_load_config()
if
(
db_check
(
"ALTER TABLE carrier_gateway add codec varchar(255);"
)
==
SWITCH_TRUE
)
{
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_NOTICE
,
"adding codec field your lcr carrier_gateway database schema.
\n
"
);
}
else
{
return
SWITCH_FALSE
;
return
SWITCH_
STATUS_
FALSE
;
}
}
...
...
@@ -1186,7 +1182,7 @@ static switch_status_t lcr_load_config()
if
(
db_check
(
"ALTER TABLE lcr add cid varchar(32);"
)
==
SWITCH_TRUE
)
{
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_WARNING
,
"adding cid field to your lcr database schema.
\n
"
);
}
else
{
return
SWITCH_FALSE
;
return
SWITCH_
STATUS_
FALSE
;
}
}
...
...
@@ -1194,7 +1190,7 @@ static switch_status_t lcr_load_config()
if
(
db_check
(
"ALTER TABLE lcr ADD lrn BOOLEAN NOT NULL DEFAULT false"
))
{
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_WARNING
,
"adding lrn field to your lcr database schema.
\n
"
);
}
else
{
return
SWITCH_FALSE
;
return
SWITCH_
STATUS_
FALSE
;
}
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论