Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
995ae262
提交
995ae262
authored
4月 10, 2012
作者:
Anthony Minessale
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
FS-3769 --resolve
上级
a40f3049
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
152 行增加
和
126 行删除
+152
-126
switch_caller.c
src/switch_caller.c
+2
-2
switch_core_session.c
src/switch_core_session.c
+1
-1
switch_core_sqldb.c
src/switch_core_sqldb.c
+2
-2
switch_ivr_bridge.c
src/switch_ivr_bridge.c
+29
-29
switch_ivr_originate.c
src/switch_ivr_originate.c
+6
-6
switch_log.c
src/switch_log.c
+1
-1
switch_rtp.c
src/switch_rtp.c
+111
-85
没有找到文件。
src/switch_caller.c
浏览文件 @
995ae262
...
@@ -479,7 +479,7 @@ SWITCH_DECLARE(void) switch_caller_extension_add_application_printf(switch_core_
...
@@ -479,7 +479,7 @@ SWITCH_DECLARE(void) switch_caller_extension_add_application_printf(switch_core_
char
*
p
;
char
*
p
;
if
((
p
=
strstr
(
data
,
"
\\
'"
)))
{
if
((
p
=
strstr
(
data
,
"
\\
'"
)))
{
switch_log_printf
(
SWITCH_CHANNEL_
LOG
,
SWITCH_LOG_WARNING
,
"App not added, Invalid character sequence in data string [%s]
\n
"
,
data
);
switch_log_printf
(
SWITCH_CHANNEL_
SESSION_LOG
(
session
)
,
SWITCH_LOG_WARNING
,
"App not added, Invalid character sequence in data string [%s]
\n
"
,
data
);
free
(
data
);
free
(
data
);
return
;
return
;
}
}
...
@@ -505,7 +505,7 @@ SWITCH_DECLARE(void) switch_caller_extension_add_application(switch_core_session
...
@@ -505,7 +505,7 @@ SWITCH_DECLARE(void) switch_caller_extension_add_application(switch_core_session
if
(
caller_application
->
application_data
&&
(
p
=
strstr
(
caller_application
->
application_data
,
"
\\
'"
)))
{
if
(
caller_application
->
application_data
&&
(
p
=
strstr
(
caller_application
->
application_data
,
"
\\
'"
)))
{
switch_log_printf
(
SWITCH_CHANNEL_
LOG
,
SWITCH_LOG_WARNING
,
"App not added, Invalid character sequence in data string [%s]
\n
"
,
switch_log_printf
(
SWITCH_CHANNEL_
SESSION_LOG
(
session
)
,
SWITCH_LOG_WARNING
,
"App not added, Invalid character sequence in data string [%s]
\n
"
,
caller_application
->
application_data
);
caller_application
->
application_data
);
return
;
return
;
}
}
...
...
src/switch_core_session.c
浏览文件 @
995ae262
...
@@ -1465,7 +1465,7 @@ SWITCH_DECLARE(switch_status_t) switch_core_session_set_uuid(switch_core_session
...
@@ -1465,7 +1465,7 @@ SWITCH_DECLARE(switch_status_t) switch_core_session_set_uuid(switch_core_session
switch_mutex_lock
(
runtime
.
session_hash_mutex
);
switch_mutex_lock
(
runtime
.
session_hash_mutex
);
if
(
switch_core_hash_find
(
session_manager
.
session_table
,
use_uuid
))
{
if
(
switch_core_hash_find
(
session_manager
.
session_table
,
use_uuid
))
{
switch_log_printf
(
SWITCH_CHANNEL_
LOG
,
SWITCH_LOG_CRIT
,
"Duplicate UUID!
\n
"
);
switch_log_printf
(
SWITCH_CHANNEL_
SESSION_LOG
(
session
)
,
SWITCH_LOG_CRIT
,
"Duplicate UUID!
\n
"
);
switch_mutex_unlock
(
runtime
.
session_hash_mutex
);
switch_mutex_unlock
(
runtime
.
session_hash_mutex
);
return
SWITCH_STATUS_FALSE
;
return
SWITCH_STATUS_FALSE
;
}
}
...
...
src/switch_core_sqldb.c
浏览文件 @
995ae262
...
@@ -390,7 +390,7 @@ SWITCH_DECLARE(switch_status_t) _switch_cache_db_get_db_handle(switch_cache_db_h
...
@@ -390,7 +390,7 @@ SWITCH_DECLARE(switch_status_t) _switch_cache_db_get_db_handle(switch_cache_db_h
{
{
if
(
!
switch_odbc_available
())
{
if
(
!
switch_odbc_available
())
{
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_CRIT
,
"Failure! ODBC NOT AVAILABLE!
\n
"
);
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_CRIT
,
"Failure! ODBC NOT AVAILABLE!
Can't connect to DSN %s
\n
"
,
connection_options
->
odbc_options
.
dsn
);
goto
end
;
goto
end
;
}
}
...
@@ -415,7 +415,7 @@ SWITCH_DECLARE(switch_status_t) _switch_cache_db_get_db_handle(switch_cache_db_h
...
@@ -415,7 +415,7 @@ SWITCH_DECLARE(switch_status_t) _switch_cache_db_get_db_handle(switch_cache_db_h
}
}
if
(
!
db
&&
!
odbc_dbh
)
{
if
(
!
db
&&
!
odbc_dbh
)
{
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_CRIT
,
"Failure
!
\n
"
);
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_CRIT
,
"Failure
to connect to %s %s!
\n
"
,
db
?
"SQLITE"
:
"ODBC"
,
db
?
connection_options
->
core_db_options
.
db_path
:
connection_options
->
odbc_options
.
dsn
);
goto
end
;
goto
end
;
}
}
...
...
src/switch_ivr_bridge.c
浏览文件 @
995ae262
差异被折叠。
点击展开。
src/switch_ivr_originate.c
浏览文件 @
995ae262
...
@@ -1204,7 +1204,7 @@ static switch_status_t setup_ringback(originate_global_t *oglobals, originate_st
...
@@ -1204,7 +1204,7 @@ static switch_status_t setup_ringback(originate_global_t *oglobals, originate_st
read_codec
->
implementation
->
number_of_channels
,
read_codec
->
implementation
->
number_of_channels
,
read_codec
->
implementation
->
actual_samples_per_second
,
read_codec
->
implementation
->
actual_samples_per_second
,
SWITCH_FILE_FLAG_READ
|
SWITCH_FILE_DATA_SHORT
,
NULL
)
!=
SWITCH_STATUS_SUCCESS
)
{
SWITCH_FILE_FLAG_READ
|
SWITCH_FILE_DATA_SHORT
,
NULL
)
!=
SWITCH_STATUS_SUCCESS
)
{
switch_log_printf
(
SWITCH_CHANNEL_
LOG
,
SWITCH_LOG_ERROR
,
"Error Playing File
\n
"
);
switch_log_printf
(
SWITCH_CHANNEL_
SESSION_LOG
(
oglobals
->
session
)
,
SWITCH_LOG_ERROR
,
"Error Playing File
\n
"
);
switch_safe_free
(
tmp_data
);
switch_safe_free
(
tmp_data
);
switch_goto_status
(
SWITCH_STATUS_GENERR
,
end
);
switch_goto_status
(
SWITCH_STATUS_GENERR
,
end
);
//switch_goto_status(SWITCH_STATUS_FALSE, end);
//switch_goto_status(SWITCH_STATUS_FALSE, end);
...
@@ -1226,12 +1226,12 @@ static switch_status_t setup_ringback(originate_global_t *oglobals, originate_st
...
@@ -1226,12 +1226,12 @@ static switch_status_t setup_ringback(originate_global_t *oglobals, originate_st
teletone_init_session
(
&
ringback
->
ts
,
0
,
teletone_handler
,
ringback
);
teletone_init_session
(
&
ringback
->
ts
,
0
,
teletone_handler
,
ringback
);
ringback
->
ts
.
rate
=
read_codec
->
implementation
->
actual_samples_per_second
;
ringback
->
ts
.
rate
=
read_codec
->
implementation
->
actual_samples_per_second
;
switch_log_printf
(
SWITCH_CHANNEL_
LOG
,
SWITCH_LOG_DEBUG
,
"Play Ringback Tone [%s]
\n
"
,
ringback_data
);
switch_log_printf
(
SWITCH_CHANNEL_
SESSION_LOG
(
oglobals
->
session
)
,
SWITCH_LOG_DEBUG
,
"Play Ringback Tone [%s]
\n
"
,
ringback_data
);
/* ringback->ts.debug = 1;
/* ringback->ts.debug = 1;
ringback->ts.debug_stream = switch_core_get_console(); */
ringback->ts.debug_stream = switch_core_get_console(); */
if
(
teletone_run
(
&
ringback
->
ts
,
ringback_data
))
{
if
(
teletone_run
(
&
ringback
->
ts
,
ringback_data
))
{
switch_log_printf
(
SWITCH_CHANNEL_
LOG
,
SWITCH_LOG_ERROR
,
"Error Playing Tone
\n
"
);
switch_log_printf
(
SWITCH_CHANNEL_
SESSION_LOG
(
oglobals
->
session
)
,
SWITCH_LOG_ERROR
,
"Error Playing Tone
\n
"
);
teletone_destroy_session
(
&
ringback
->
ts
);
teletone_destroy_session
(
&
ringback
->
ts
);
switch_buffer_destroy
(
&
ringback
->
audio_buffer
);
switch_buffer_destroy
(
&
ringback
->
audio_buffer
);
switch_goto_status
(
SWITCH_STATUS_GENERR
,
end
);
switch_goto_status
(
SWITCH_STATUS_GENERR
,
end
);
...
@@ -1412,7 +1412,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_enterprise_originate(switch_core_sess
...
@@ -1412,7 +1412,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_enterprise_originate(switch_core_sess
}
}
/* extract channel variables, allowing multiple sets of braces */
/* extract channel variables, allowing multiple sets of braces */
switch_log_printf
(
SWITCH_CHANNEL_
LOG
,
SWITCH_LOG_DEBUG
,
"Parsing ultra-global variables
\n
"
);
switch_log_printf
(
SWITCH_CHANNEL_
SESSION_LOG
(
session
)
,
SWITCH_LOG_DEBUG
,
"Parsing ultra-global variables
\n
"
);
while
(
*
data
==
'<'
)
{
while
(
*
data
==
'<'
)
{
char
*
parsed
=
NULL
;
char
*
parsed
=
NULL
;
...
@@ -1883,7 +1883,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_originate(switch_core_session_t *sess
...
@@ -1883,7 +1883,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_originate(switch_core_session_t *sess
}
}
/* extract channel variables, allowing multiple sets of braces */
/* extract channel variables, allowing multiple sets of braces */
switch_log_printf
(
SWITCH_CHANNEL_
LOG
,
SWITCH_LOG_DEBUG
,
"Parsing global variables
\n
"
);
switch_log_printf
(
SWITCH_CHANNEL_
SESSION_LOG
(
session
)
,
SWITCH_LOG_DEBUG
,
"Parsing global variables
\n
"
);
while
(
*
data
==
'{'
)
{
while
(
*
data
==
'{'
)
{
char
*
parsed
=
NULL
;
char
*
parsed
=
NULL
;
...
@@ -2300,7 +2300,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_originate(switch_core_session_t *sess
...
@@ -2300,7 +2300,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_originate(switch_core_session_t *sess
if
(
*
chan_type
==
'['
)
{
if
(
*
chan_type
==
'['
)
{
switch_event_create_plain
(
&
local_var_event
,
SWITCH_EVENT_CHANNEL_DATA
);
switch_event_create_plain
(
&
local_var_event
,
SWITCH_EVENT_CHANNEL_DATA
);
switch_log_printf
(
SWITCH_CHANNEL_
LOG
,
SWITCH_LOG_DEBUG
,
"Parsing session specific variables
\n
"
);
switch_log_printf
(
SWITCH_CHANNEL_
SESSION_LOG
(
session
)
,
SWITCH_LOG_DEBUG
,
"Parsing session specific variables
\n
"
);
}
}
while
(
*
chan_type
==
'['
)
{
while
(
*
chan_type
==
'['
)
{
...
...
src/switch_log.c
浏览文件 @
995ae262
...
@@ -543,7 +543,7 @@ SWITCH_DECLARE(void) switch_core_memory_reclaim_logger(void)
...
@@ -543,7 +543,7 @@ SWITCH_DECLARE(void) switch_core_memory_reclaim_logger(void)
#ifdef SWITCH_LOG_RECYCLE
#ifdef SWITCH_LOG_RECYCLE
void
*
pop
;
void
*
pop
;
int
size
=
switch_queue_size
(
LOG_RECYCLE_QUEUE
);
int
size
=
switch_queue_size
(
LOG_RECYCLE_QUEUE
);
switch_log_printf
(
SWITCH_CHANNEL_
LOG
,
SWITCH_LOG_CONSOLE
,
"Returning %d recycled log node(s) %d bytes
\n
"
,
size
,
switch_log_printf
(
SWITCH_CHANNEL_
SESSION_LOG
(
session
)
,
SWITCH_LOG_CONSOLE
,
"Returning %d recycled log node(s) %d bytes
\n
"
,
size
,
(
int
)
sizeof
(
switch_log_node_t
)
*
size
);
(
int
)
sizeof
(
switch_log_node_t
)
*
size
);
while
(
switch_queue_trypop
(
LOG_RECYCLE_QUEUE
,
&
pop
)
==
SWITCH_STATUS_SUCCESS
)
{
while
(
switch_queue_trypop
(
LOG_RECYCLE_QUEUE
,
&
pop
)
==
SWITCH_STATUS_SUCCESS
)
{
switch_log_node_free
(
&
pop
);
switch_log_node_free
(
&
pop
);
...
...
src/switch_rtp.c
浏览文件 @
995ae262
差异被折叠。
点击展开。
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论