Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
abb342f4
提交
abb342f4
authored
9月 01, 2010
作者:
David Yat Sin
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Initialized bearer_cap to FTDM_INVALID_INT_PARM
上级
432e9cdf
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
13 行增加
和
15 行删除
+13
-15
mod_freetdm.c
libs/freetdm/mod_freetdm/mod_freetdm.c
+3
-7
ftmod_sangoma_isdn_stack_rcv.c
...c/ftmod/ftmod_sangoma_isdn/ftmod_sangoma_isdn_stack_rcv.c
+10
-8
没有找到文件。
libs/freetdm/mod_freetdm/mod_freetdm.c
浏览文件 @
abb342f4
...
...
@@ -1230,14 +1230,10 @@ static switch_call_cause_t channel_outgoing_channel(switch_core_session_t *sessi
freetdmvar
=
switch_channel_get_variable
(
channel
,
"freetdm_bearer_capability"
);
if
(
freetdmvar
)
{
caller_data
.
bearer_capability
=
(
uint8_t
)
atoi
(
freetdmvar
);
}
else
{
caller_data
.
bearer_capability
=
FTDM_INVALID_INT_PARM
;
}
freetdmvar
=
switch_channel_get_variable
(
channel
,
"freetdm_bearer_layer1"
);
if
(
freetdmvar
)
{
caller_data
.
bearer_layer1
=
(
uint8_t
)
atoi
(
freetdmvar
);
}
else
{
caller_data
.
bearer_layer1
=
FTDM_INVALID_INT_PARM
;
}
}
...
...
@@ -3407,9 +3403,9 @@ static switch_status_t load_config(void)
boost_span
=
boost_spans
[
i
];
ftdm_log
(
FTDM_LOG_DEBUG
,
"Starting boost span %d
\n
"
,
ftdm_span_get_id
(
boost_span
));
if
(
ftdm_span_start
(
boost_span
)
==
FTDM_FAIL
)
{
ftdm_log
(
FTDM_LOG_ERROR
,
"Error starting boost FreeTDM span %d, error: %s
\n
"
,
ftdm_span_get_id
(
boost_span
),
ftdm_span_get_last_error
(
boost_span
));
continue
;
ftdm_log
(
FTDM_LOG_ERROR
,
"Error starting boost FreeTDM span %d, error: %s
\n
"
,
ftdm_span_get_id
(
boost_span
),
ftdm_span_get_last_error
(
boost_span
));
continue
;
}
}
...
...
libs/freetdm/src/ftmod/ftmod_sangoma_isdn/ftmod_sangoma_isdn_stack_rcv.c
浏览文件 @
abb342f4
...
...
@@ -187,6 +187,7 @@ void sngisdn_rcv_disc_ind (int16_t suId, uint32_t suInstId, uint32_t spInstId, D
!
(
suInstId
&&
get_ftdmchan_by_suInstId
(
suId
,
suInstId
,
&
sngisdn_info
)
==
FTDM_SUCCESS
))
{
ftdm_log
(
FTDM_LOG_CRIT
,
"Could not find matching call suId:%u suInstId:%u spInstId:%u
\n
"
,
suId
,
suInstId
,
spInstId
);
ftdm_assert
(
0
,
"Inconsistent call states
\n
"
);
return
;
}
...
...
@@ -219,6 +220,7 @@ void sngisdn_rcv_rel_ind (int16_t suId, uint32_t suInstId, uint32_t spInstId, Re
!
(
suInstId
&&
get_ftdmchan_by_suInstId
(
suId
,
suInstId
,
&
sngisdn_info
)
==
FTDM_SUCCESS
))
{
ftdm_log
(
FTDM_LOG_CRIT
,
"Could not find matching call suId:%u suInstId:%u spInstId:%u
\n
"
,
suId
,
suInstId
,
spInstId
);
ftdm_assert
(
0
,
"Inconsistent call states
\n
"
);
return
;
}
...
...
@@ -250,7 +252,7 @@ void sngisdn_rcv_dat_ind (int16_t suId, uint32_t suInstId, uint32_t spInstId, In
!
(
suInstId
&&
get_ftdmchan_by_suInstId
(
suId
,
suInstId
,
&
sngisdn_info
)
==
FTDM_SUCCESS
))
{
ftdm_log
(
FTDM_LOG_CRIT
,
"Could not find matching call suId:%u suInstId:%u spInstId:%u
\n
"
,
suId
,
suInstId
,
spInstId
);
ftdm_assert
(
0
,
"Inconsistent call states
\n
"
);
return
;
}
...
...
@@ -282,7 +284,7 @@ void sngisdn_rcv_sshl_ind (int16_t suId, uint32_t suInstId, uint32_t spInstId, S
!
(
suInstId
&&
get_ftdmchan_by_suInstId
(
suId
,
suInstId
,
&
sngisdn_info
)
==
FTDM_SUCCESS
))
{
ftdm_log
(
FTDM_LOG_CRIT
,
"Could not find matching call suId:%u suInstId:%u spInstId:%u
\n
"
,
suId
,
suInstId
,
spInstId
);
ftdm_assert
(
0
,
"Inconsistent call states
\n
"
);
return
;
}
...
...
@@ -315,7 +317,7 @@ void sngisdn_rcv_sshl_cfm (int16_t suId, uint32_t suInstId, uint32_t spInstId, S
!
(
suInstId
&&
get_ftdmchan_by_suInstId
(
suId
,
suInstId
,
&
sngisdn_info
)
==
FTDM_SUCCESS
))
{
ftdm_log
(
FTDM_LOG_CRIT
,
"Could not find matching call suId:%u suInstId:%u spInstId:%u
\n
"
,
suId
,
suInstId
,
spInstId
);
ftdm_assert
(
0
,
"Inconsistent call states
\n
"
);
return
;
}
...
...
@@ -347,7 +349,7 @@ void sngisdn_rcv_rmrt_ind (int16_t suId, uint32_t suInstId, uint32_t spInstId, R
!
(
suInstId
&&
get_ftdmchan_by_suInstId
(
suId
,
suInstId
,
&
sngisdn_info
)
==
FTDM_SUCCESS
))
{
ftdm_log
(
FTDM_LOG_CRIT
,
"Could not find matching call suId:%u suInstId:%u spInstId:%u
\n
"
,
suId
,
suInstId
,
spInstId
);
ftdm_assert
(
0
,
"Inconsistent call states
\n
"
);
return
;
}
...
...
@@ -380,7 +382,7 @@ void sngisdn_rcv_rmrt_cfm (int16_t suId, uint32_t suInstId, uint32_t spInstId, R
!
(
suInstId
&&
get_ftdmchan_by_suInstId
(
suId
,
suInstId
,
&
sngisdn_info
)
==
FTDM_SUCCESS
))
{
ftdm_log
(
FTDM_LOG_CRIT
,
"Could not find matching call suId:%u suInstId:%u spInstId:%u
\n
"
,
suId
,
suInstId
,
spInstId
);
ftdm_assert
(
0
,
"Inconsistent call states
\n
"
);
return
;
}
...
...
@@ -413,7 +415,7 @@ void sngisdn_rcv_flc_ind (int16_t suId, uint32_t suInstId, uint32_t spInstId, St
!
(
suInstId
&&
get_ftdmchan_by_suInstId
(
suId
,
suInstId
,
&
sngisdn_info
)
==
FTDM_SUCCESS
))
{
ftdm_log
(
FTDM_LOG_CRIT
,
"Could not find matching call suId:%u suInstId:%u spInstId:%u
\n
"
,
suId
,
suInstId
,
spInstId
);
ftdm_assert
(
0
,
"Inconsistent call states
\n
"
);
return
;
}
...
...
@@ -446,7 +448,7 @@ void sngisdn_rcv_fac_ind (int16_t suId, uint32_t suInstId, uint32_t spInstId, Fa
!
(
suInstId
&&
get_ftdmchan_by_suInstId
(
suId
,
suInstId
,
&
sngisdn_info
)
==
FTDM_SUCCESS
))
{
ftdm_log
(
FTDM_LOG_CRIT
,
"Could not find matching call suId:%u suInstId:%u spInstId:%u
\n
"
,
suId
,
suInstId
,
spInstId
);
ftdm_assert
(
0
,
"Inconsistent call states
\n
"
);
return
;
}
...
...
@@ -479,7 +481,7 @@ void sngisdn_rcv_sta_cfm (int16_t suId, uint32_t suInstId, uint32_t spInstId, St
!
(
suInstId
&&
get_ftdmchan_by_suInstId
(
suId
,
suInstId
,
&
sngisdn_info
)
==
FTDM_SUCCESS
))
{
ftdm_log
(
FTDM_LOG_CRIT
,
"Could not find matching call suId:%u suInstId:%u spInstId:%u
\n
"
,
suId
,
suInstId
,
spInstId
);
ftdm_assert
(
0
,
"Inconsistent call states
\n
"
);
return
;
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论