Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
86c484c1
提交
86c484c1
authored
12月 09, 2010
作者:
David Yat Sin
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
freetdm: added support for skip states, used by sangoma_isdn module
上级
fced79a4
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
24 行增加
和
20 行删除
+24
-20
ftdm_io.c
libs/freetdm/src/ftdm_io.c
+20
-20
ftmod_sangoma_isdn.c
...freetdm/src/ftmod/ftmod_sangoma_isdn/ftmod_sangoma_isdn.c
+1
-0
ftdm_types.h
libs/freetdm/src/include/private/ftdm_types.h
+3
-0
没有找到文件。
libs/freetdm/src/ftdm_io.c
浏览文件 @
86c484c1
...
...
@@ -2213,31 +2213,31 @@ FT_DECLARE(ftdm_status_t) _ftdm_channel_call_answer(const char *file, const char
goto
done
;
}
#ifndef FREETDM_SKIP_SIG_STATES
/* We will fail RFC's if we not skip states, but some modules apart from ftmod_sangoma_isdn
* expect the call to always to go PROGRESS and PROGRESS MEDIA state before going to UP, so
* remove this only in netborder branch
for now while we update the sig modules */
if
(
!
ftdm_test_flag
(
ftdmchan
->
span
,
FTDM_SPAN_USE_SKIP_STATES
))
{
/* We will fail RFC's if we not skip states, but some modules apart from ftmod_sangoma_isdn
* expect the call to always to go PROGRESS and PROGRESS MEDIA state before going to UP, so
* use FTDM_SPAN_USE_SKIP_STATES
for now while we update the sig modules */
if
(
ftdmchan
->
state
<
FTDM_CHANNEL_STATE_PROGRESS
)
{
ftdm_channel_set_state
(
file
,
func
,
line
,
ftdmchan
,
FTDM_CHANNEL_STATE_PROGRESS
,
1
);
}
if
(
ftdmchan
->
state
<
FTDM_CHANNEL_STATE_PROGRESS
)
{
ftdm_channel_set_state
(
file
,
func
,
line
,
ftdmchan
,
FTDM_CHANNEL_STATE_PROGRESS
,
1
);
}
/* set state unlocks the channel so we need to re-confirm that the channel hasn't gone to hell */
if
(
ftdmchan
->
state
==
FTDM_CHANNEL_STATE_TERMINATING
)
{
ftdm_log_chan_msg
(
ftdmchan
,
FTDM_LOG_DEBUG
,
"Ignoring answer because the call has moved to TERMINATING while we're moving to PROGRESS
\n
"
);
goto
done
;
}
/* set state unlocks the channel so we need to re-confirm that the channel hasn't gone to hell */
if
(
ftdmchan
->
state
==
FTDM_CHANNEL_STATE_TERMINATING
)
{
ftdm_log_chan_msg
(
ftdmchan
,
FTDM_LOG_DEBUG
,
"Ignoring answer because the call has moved to TERMINATING while we're moving to PROGRESS
\n
"
);
goto
done
;
}
if
(
ftdmchan
->
state
<
FTDM_CHANNEL_STATE_PROGRESS_MEDIA
)
{
ftdm_channel_set_state
(
file
,
func
,
line
,
ftdmchan
,
FTDM_CHANNEL_STATE_PROGRESS_MEDIA
,
1
);
}
if
(
ftdmchan
->
state
<
FTDM_CHANNEL_STATE_PROGRESS_MEDIA
)
{
ftdm_channel_set_state
(
file
,
func
,
line
,
ftdmchan
,
FTDM_CHANNEL_STATE_PROGRESS_MEDIA
,
1
);
}
/* set state unlocks the channel so we need to re-confirm that the channel hasn't gone to hell */
if
(
ftdmchan
->
state
==
FTDM_CHANNEL_STATE_TERMINATING
)
{
ftdm_log_chan_msg
(
ftdmchan
,
FTDM_LOG_DEBUG
,
"Ignoring answer because the call has moved to TERMINATING while we're moving to UP
\n
"
);
goto
done
;
/* set state unlocks the channel so we need to re-confirm that the channel hasn't gone to hell */
if
(
ftdmchan
->
state
==
FTDM_CHANNEL_STATE_TERMINATING
)
{
ftdm_log_chan_msg
(
ftdmchan
,
FTDM_LOG_DEBUG
,
"Ignoring answer because the call has moved to TERMINATING while we're moving to UP
\n
"
);
goto
done
;
}
}
#endif
ftdm_channel_set_state
(
file
,
func
,
line
,
ftdmchan
,
FTDM_CHANNEL_STATE_UP
,
1
);
done
:
...
...
libs/freetdm/src/ftmod/ftmod_sangoma_isdn/ftmod_sangoma_isdn.c
浏览文件 @
86c484c1
...
...
@@ -1067,6 +1067,7 @@ static FIO_CONFIGURE_SPAN_SIGNALING_FUNCTION(ftdm_sangoma_isdn_span_config)
ftdm_set_flag
(
span
,
FTDM_SPAN_USE_CHAN_QUEUE
);
ftdm_set_flag
(
span
,
FTDM_SPAN_USE_SIGNALS_QUEUE
);
ftdm_set_flag
(
span
,
FTDM_SPAN_USE_PROCEED_STATE
);
ftdm_set_flag
(
span
,
FTDM_SPAN_USE_SKIP_STATES
);
if
(
span
->
trunk_type
==
FTDM_TRUNK_BRI_PTMP
||
span
->
trunk_type
==
FTDM_TRUNK_BRI
)
{
...
...
libs/freetdm/src/include/private/ftdm_types.h
浏览文件 @
86c484c1
...
...
@@ -184,6 +184,9 @@ typedef enum {
FTDM_SPAN_USE_SIGNALS_QUEUE
=
(
1
<<
10
),
/* If this flag is set, channel will be moved to proceed state when calls goes to routing */
FTDM_SPAN_USE_PROCEED_STATE
=
(
1
<<
11
),
/* If this flag is set, the signalling module supports jumping directly to state up, without
going through PROGRESS/PROGRESS_MEDIA */
FTDM_SPAN_USE_SKIP_STATES
=
(
1
<<
12
),
}
ftdm_span_flag_t
;
/*! \brief Channel supported features */
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论