Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
d730df77
提交
d730df77
authored
4月 02, 2012
作者:
David Yat Sin
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'master' of
ssh://git.freeswitch.org:222/freeswitch
上级
38143e30
647740e9
隐藏空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
22 行增加
和
8 行删除
+22
-8
mod_freetdm.c
libs/freetdm/mod_freetdm/mod_freetdm.c
+2
-0
ftdm_io.c
libs/freetdm/src/ftdm_io.c
+2
-0
ftdm_sched.c
libs/freetdm/src/ftdm_sched.c
+9
-2
sofia.c
src/mod/endpoints/mod_sofia/sofia.c
+3
-3
switch_channel.c
src/switch_channel.c
+3
-1
switch_core.c
src/switch_core.c
+2
-1
switch_ivr_bridge.c
src/switch_ivr_bridge.c
+1
-1
没有找到文件。
libs/freetdm/mod_freetdm/mod_freetdm.c
浏览文件 @
d730df77
...
...
@@ -4834,11 +4834,13 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_freetdm_load)
ftdm_global_set_config_directory
(
SWITCH_GLOBAL_dirs
.
conf_dir
);
if
(
ftdm_global_init
()
!=
FTDM_SUCCESS
)
{
ftdm_global_destroy
();
ftdm_log
(
FTDM_LOG_ERROR
,
"Error loading FreeTDM
\n
"
);
return
SWITCH_STATUS_TERM
;
}
if
(
ftdm_global_configuration
()
!=
FTDM_SUCCESS
)
{
ftdm_global_destroy
();
ftdm_log
(
FTDM_LOG_ERROR
,
"Error configuring FreeTDM
\n
"
);
return
SWITCH_STATUS_TERM
;
}
...
...
libs/freetdm/src/ftdm_io.c
浏览文件 @
d730df77
...
...
@@ -5829,6 +5829,8 @@ FT_DECLARE(ftdm_status_t) ftdm_global_destroy(void)
/* destroy signaling and io modules */
ftdm_unload_modules
();
ftdm_global_set_logger
(
NULL
);
/* finally destroy the globals */
ftdm_mutex_lock
(
globals
.
mutex
);
ftdm_sched_destroy
(
&
globals
.
timingsched
);
...
...
libs/freetdm/src/ftdm_sched.c
浏览文件 @
d730df77
...
...
@@ -119,10 +119,15 @@ static void *run_main_schedule(ftdm_thread_t *thread, void *data)
/* there are no free runs, wait a bit and check again (FIXME: use ftdm_interrupt_t for this) */
ftdm_mutex_unlock
(
sched_globals
.
mutex
);
ftdm_sleep
(
sleepms
);
if
(
ftdm_running
())
{
ftdm_sleep
(
sleepms
);
}
}
for
(
current
=
sched_globals
.
freeruns
;
current
;
current
=
current
->
next
)
{
if
(
!
ftdm_running
())
{
break
;
}
/* first run the schedule */
ftdm_sched_run
(
current
);
...
...
@@ -142,7 +147,9 @@ static void *run_main_schedule(ftdm_thread_t *thread, void *data)
ftdm_mutex_unlock
(
sched_globals
.
mutex
);
ftdm_sleep
(
sleepms
);
if
(
ftdm_running
())
{
ftdm_sleep
(
sleepms
);
}
}
ftdm_log
(
FTDM_LOG_NOTICE
,
"Main scheduling thread going out ...
\n
"
);
sched_globals
.
running
=
0
;
...
...
src/mod/endpoints/mod_sofia/sofia.c
浏览文件 @
d730df77
...
...
@@ -87,8 +87,8 @@ void sofia_handle_sip_r_notify(switch_core_session_t *session, int status,
nua_t
*
nua
,
sofia_profile_t
*
profile
,
nua_handle_t
*
nh
,
sofia_private_t
*
sofia_private
,
sip_t
const
*
sip
,
sofia_dispatch_event_t
*
de
,
tagi_t
tags
[])
{
#if 0
if (status
>= 300
&& sip && !sip->sip_retry_after && sip->sip_call_id && (!sofia_private || !sofia_private->is_call)) {
if
(
status
==
481
&&
sip
&&
!
sip
->
sip_retry_after
&&
sip
->
sip_call_id
&&
(
!
sofia_private
||
!
sofia_private
->
is_call
))
{
char
*
sql
;
sql
=
switch_mprintf
(
"delete from sip_subscriptions where call_id='%q'"
,
sip
->
sip_call_id
->
i_id
);
...
...
@@ -96,7 +96,7 @@ void sofia_handle_sip_r_notify(switch_core_session_t *session, int status,
sofia_glue_execute_sql
(
profile
,
&
sql
,
SWITCH_TRUE
);
nua_handle_destroy
(
nh
);
}
#endif
}
#define url_set_chanvars(session, url, varprefix) _url_set_chanvars(session, url, #varprefix "_user", #varprefix "_host", #varprefix "_port", #varprefix "_uri", #varprefix "_params")
...
...
src/switch_channel.c
浏览文件 @
d730df77
...
...
@@ -1380,7 +1380,7 @@ SWITCH_DECLARE(void) switch_channel_wait_for_state(switch_channel_t *channel, sw
for
(;;)
{
if
((
channel
->
state
<
CS_HANGUP
&&
channel
->
state
==
channel
->
running_state
&&
channel
->
running_state
==
want_state
)
||
(
other_channel
&&
switch_channel_down_nosig
(
other_channel
))
||
switch_channel_down
_nosig
(
channel
))
{
(
other_channel
&&
switch_channel_down_nosig
(
other_channel
))
||
switch_channel_down
(
channel
))
{
break
;
}
switch_yield
(
20000
);
...
...
@@ -1399,6 +1399,8 @@ SWITCH_DECLARE(void) switch_channel_wait_for_state_timeout(switch_channel_t *cha
break
;
}
switch_channel_check_signal
(
channel
,
SWITCH_TRUE
);
switch_cond_next
();
if
(
++
count
>=
timeout
)
{
...
...
src/switch_core.c
浏览文件 @
d730df77
...
...
@@ -1875,6 +1875,7 @@ SWITCH_DECLARE(switch_status_t) switch_core_init_and_modload(switch_core_flag_t
runtime
.
runlevel
++
;
switch_core_set_signal_handlers
();
switch_load_network_lists
(
SWITCH_FALSE
);
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_CONSOLE
,
"Bringing up environment.
\n
"
);
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_CONSOLE
,
"Loading Modules.
\n
"
);
...
...
@@ -1884,7 +1885,7 @@ SWITCH_DECLARE(switch_status_t) switch_core_init_and_modload(switch_core_flag_t
return
SWITCH_STATUS_GENERR
;
}
switch_load_network_lists
(
SWITCH_FALSE
);
switch_load_core_config
(
"post_load_switch.conf"
);
...
...
src/switch_ivr_bridge.c
浏览文件 @
d730df77
...
...
@@ -776,7 +776,7 @@ static switch_status_t uuid_bridge_on_soft_execute(switch_core_session_t *sessio
state
=
switch_channel_get_state
(
other_channel
);
running_state
=
switch_channel_get_running_state
(
other_channel
);
if
(
switch_channel_down_nosig
(
other_channel
)
||
switch_channel_down
_nosig
(
channel
))
{
if
(
switch_channel_down_nosig
(
other_channel
)
||
switch_channel_down
(
channel
))
{
break
;
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论