Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
a4bb0002
提交
a4bb0002
authored
7月 26, 2012
作者:
David Yat Sin
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Reverted back clear-channel, used existing FTDM_SIGTYPE instead
上级
7972837f
显示空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
3 行增加
和
11 行删除
+3
-11
ftdm_io.c
libs/freetdm/src/ftdm_io.c
+1
-7
ftmod_wanpipe.c
libs/freetdm/src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c
+1
-2
freetdm.h
libs/freetdm/src/include/freetdm.h
+1
-2
没有找到文件。
libs/freetdm/src/ftdm_io.c
浏览文件 @
a4bb0002
...
@@ -1470,7 +1470,7 @@ FT_DECLARE(ftdm_status_t) ftdm_group_channel_use_count(ftdm_group_t *group, uint
...
@@ -1470,7 +1470,7 @@ FT_DECLARE(ftdm_status_t) ftdm_group_channel_use_count(ftdm_group_t *group, uint
static
__inline__
int
chan_is_avail
(
ftdm_channel_t
*
check
)
static
__inline__
int
chan_is_avail
(
ftdm_channel_t
*
check
)
{
{
if
(
check
->
type
==
FTDM_CHAN_TYPE_CLEAR
)
{
if
(
check
->
span
->
signal_type
==
FTDM_SIGTYPE_NONE
)
{
if
(
!
ftdm_test_flag
(
check
,
FTDM_CHANNEL_READY
)
||
if
(
!
ftdm_test_flag
(
check
,
FTDM_CHANNEL_READY
)
||
ftdm_test_flag
(
check
,
FTDM_CHANNEL_INUSE
)
||
ftdm_test_flag
(
check
,
FTDM_CHANNEL_INUSE
)
||
ftdm_test_flag
(
check
,
FTDM_CHANNEL_SUSPENDED
)
||
ftdm_test_flag
(
check
,
FTDM_CHANNEL_SUSPENDED
)
||
...
@@ -5139,12 +5139,6 @@ static ftdm_status_t load_config(void)
...
@@ -5139,12 +5139,6 @@ static ftdm_status_t load_config(void)
}
else
{
}
else
{
ftdm_log
(
FTDM_LOG_WARNING
,
"Cannot add EM channels to a non-EM trunk!
\n
"
);
ftdm_log
(
FTDM_LOG_WARNING
,
"Cannot add EM channels to a non-EM trunk!
\n
"
);
}
}
}
else
if
(
!
strcasecmp
(
var
,
"clear-channel"
))
{
unsigned
chans_configured
=
0
;
chan_config
.
type
=
FTDM_CHAN_TYPE_CLEAR
;
if
(
ftdm_configure_span_channels
(
span
,
val
,
&
chan_config
,
&
chans_configured
)
==
FTDM_SUCCESS
)
{
configured
+=
chans_configured
;
}
}
else
if
(
!
strcasecmp
(
var
,
"b-channel"
))
{
}
else
if
(
!
strcasecmp
(
var
,
"b-channel"
))
{
unsigned
chans_configured
=
0
;
unsigned
chans_configured
=
0
;
chan_config
.
type
=
FTDM_CHAN_TYPE_B
;
chan_config
.
type
=
FTDM_CHAN_TYPE_B
;
...
...
libs/freetdm/src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c
浏览文件 @
a4bb0002
...
@@ -306,8 +306,7 @@ static unsigned wp_open_range(ftdm_span_t *span, unsigned spanno, unsigned start
...
@@ -306,8 +306,7 @@ static unsigned wp_open_range(ftdm_span_t *span, unsigned spanno, unsigned start
if
(
type
==
FTDM_CHAN_TYPE_FXS
if
(
type
==
FTDM_CHAN_TYPE_FXS
||
type
==
FTDM_CHAN_TYPE_FXO
||
type
==
FTDM_CHAN_TYPE_FXO
||
type
==
FTDM_CHAN_TYPE_CAS
||
type
==
FTDM_CHAN_TYPE_CAS
||
type
==
FTDM_CHAN_TYPE_B
||
type
==
FTDM_CHAN_TYPE_B
)
{
||
type
==
FTDM_CHAN_TYPE_CLEAR
)
{
int
err
;
int
err
;
hwec_str
=
"unavailable"
;
hwec_str
=
"unavailable"
;
...
...
libs/freetdm/src/include/freetdm.h
浏览文件 @
a4bb0002
...
@@ -181,10 +181,9 @@ typedef enum {
...
@@ -181,10 +181,9 @@ typedef enum {
FTDM_CHAN_TYPE_FXO
,
/*!< FXO analog channel */
FTDM_CHAN_TYPE_FXO
,
/*!< FXO analog channel */
FTDM_CHAN_TYPE_EM
,
/*!< E & M channel */
FTDM_CHAN_TYPE_EM
,
/*!< E & M channel */
FTDM_CHAN_TYPE_CAS
,
/*!< CAS channel */
FTDM_CHAN_TYPE_CAS
,
/*!< CAS channel */
FTDM_CHAN_TYPE_CLEAR
,
/* Clear channnel - no signalling module */
FTDM_CHAN_TYPE_COUNT
/*!< Count of channel types */
FTDM_CHAN_TYPE_COUNT
/*!< Count of channel types */
}
ftdm_chan_type_t
;
}
ftdm_chan_type_t
;
#define CHAN_TYPE_STRINGS "B", "DQ921", "DQ931", "FXS", "FXO", "EM", "CAS", "
CLEAR", "
INVALID"
#define CHAN_TYPE_STRINGS "B", "DQ921", "DQ931", "FXS", "FXO", "EM", "CAS", "INVALID"
/*! \brief transform from channel type to string and from string to channel type
/*! \brief transform from channel type to string and from string to channel type
* ftdm_str2ftdm_chan_type transforms a channel string (ie: "FXO" to FTDM_CHAN_TYPE_FXO)
* ftdm_str2ftdm_chan_type transforms a channel string (ie: "FXO" to FTDM_CHAN_TYPE_FXO)
* ftdm_chan_type2str transforms a channel type to string (ie: FTDM_CHAN_TYPE_B to "B")
* ftdm_chan_type2str transforms a channel type to string (ie: FTDM_CHAN_TYPE_B to "B")
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论