Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
b073e82b
提交
b073e82b
authored
5月 25, 2010
作者:
Anthony Minessale
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
FSMOD-51
上级
0c9bb174
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
9 行增加
和
8 行删除
+9
-8
mod_cidlookup.c
src/mod/applications/mod_cidlookup/mod_cidlookup.c
+1
-2
mod_easyroute.c
src/mod/applications/mod_easyroute/mod_easyroute.c
+2
-2
mod_lcr.c
src/mod/applications/mod_lcr/mod_lcr.c
+2
-3
mod_nibblebill.c
src/mod/applications/mod_nibblebill/mod_nibblebill.c
+4
-1
没有找到文件。
src/mod/applications/mod_cidlookup/mod_cidlookup.c
浏览文件 @
b073e82b
...
...
@@ -189,8 +189,7 @@ static switch_bool_t cidlookup_execute_sql_callback(char *sql, switch_core_db_ca
switch_cache_db_handle_t
*
dbh
=
NULL
;
if
(
globals
.
odbc_dsn
&&
(
dbh
=
cidlookup_get_db_handle
()))
{
if
(
switch_cache_db_execute_sql_callback
(
dbh
,
sql
,
callback
,
(
void
*
)
cbt
,
err
)
==
SWITCH_ODBC_FAIL
)
{
if
(
switch_cache_db_execute_sql_callback
(
dbh
,
sql
,
callback
,
(
void
*
)
cbt
,
err
)
!=
SWITCH_STATUS_SUCCESS
)
{
retval
=
SWITCH_FALSE
;
}
else
{
retval
=
SWITCH_TRUE
;
...
...
src/mod/applications/mod_easyroute/mod_easyroute.c
浏览文件 @
b073e82b
...
...
@@ -152,10 +152,10 @@ static switch_status_t load_config(void)
}
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_INFO
,
"Connected ODBC DSN: %s
\n
"
,
globals
.
db_dsn
);
if
(
!
globals
.
custom_query
)
{
if
(
switch_odbc_handle_exec
(
globals
.
master_odbc
,
"select count(*) from numbers"
,
NULL
,
NULL
)
!=
SWITCH_
STATUS
_SUCCESS
)
{
if
(
switch_odbc_handle_exec
(
globals
.
master_odbc
,
"select count(*) from numbers"
,
NULL
,
NULL
)
!=
SWITCH_
ODBC
_SUCCESS
)
{
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_CRIT
,
"Cannot find SQL Database! (Where
\'
s the numbers table\?\?)
\n
"
);
}
if
(
switch_odbc_handle_exec
(
globals
.
master_odbc
,
"select count(*) from gateways"
,
NULL
,
NULL
)
!=
SWITCH_
STATUS
_SUCCESS
)
{
if
(
switch_odbc_handle_exec
(
globals
.
master_odbc
,
"select count(*) from gateways"
,
NULL
,
NULL
)
!=
SWITCH_
ODBC
_SUCCESS
)
{
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_CRIT
,
"Cannot find SQL Database! (Where
\'
s the gateways table\?\?)
\n
"
);
}
}
...
...
src/mod/applications/mod_lcr/mod_lcr.c
浏览文件 @
b073e82b
...
...
@@ -415,7 +415,7 @@ static switch_bool_t db_check(char *sql)
switch_cache_db_handle_t
*
dbh
=
NULL
;
if
(
globals
.
odbc_dsn
&&
(
dbh
=
lcr_get_db_handle
()))
{
if
(
switch_cache_db_execute_sql
(
dbh
,
sql
,
NULL
)
==
SWITCH_
ODBC
_SUCCESS
)
{
if
(
switch_cache_db_execute_sql
(
dbh
,
sql
,
NULL
)
==
SWITCH_
STATUS
_SUCCESS
)
{
ret
=
SWITCH_TRUE
;
}
}
...
...
@@ -545,8 +545,7 @@ static switch_bool_t lcr_execute_sql_callback(char *sql, switch_core_db_callback
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_ODBC_FAIL
)
{
if
(
switch_cache_db_execute_sql_callback
(
dbh
,
sql
,
callback
,
pdata
,
NULL
)
!=
SWITCH_STATUS_SUCCESS
)
{
retval
=
SWITCH_FALSE
;
}
else
{
retval
=
SWITCH_TRUE
;
...
...
src/mod/applications/mod_nibblebill/mod_nibblebill.c
浏览文件 @
b073e82b
...
...
@@ -320,11 +320,13 @@ static switch_status_t bill_event(float billamount, const char *billaccount, swi
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_DEBUG
,
"Doing update query
\n
[%s]
\n
"
,
sql
);
if
(
(
status
=
switch_odbc_handle_exec
(
globals
.
master_odbc
,
sql
,
&
stmt
,
NULL
)
)
!=
SWITCH_ODBC_SUCCESS
)
{
if
(
switch_odbc_handle_exec
(
globals
.
master_odbc
,
sql
,
&
stmt
,
NULL
)
!=
SWITCH_ODBC_SUCCESS
)
{
char
*
err_str
;
err_str
=
switch_odbc_handle_get_error
(
globals
.
master_odbc
,
stmt
);
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_ERROR
,
"ERR: [%s]
\n
[%s]
\n
"
,
sql
,
switch_str_nil
(
err_str
));
switch_safe_free
(
err_str
);
}
else
{
status
=
SWITCH_STATUS_SUCCESS
;
}
if
(
stmt
)
{
...
...
@@ -332,6 +334,7 @@ static switch_status_t bill_event(float billamount, const char *billaccount, swi
}
switch_safe_free
(
dsql
);
return
status
;
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论