Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
06eee95d
提交
06eee95d
authored
12月 25, 2011
作者:
Moises Silva
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
freetdm: update ftmod_gsm.c to match latest libwat changes
上级
c268b388
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
34 行增加
和
15 行删除
+34
-15
ftmod_gsm.c
libs/freetdm/src/ftmod/ftmod_gsm/ftmod_gsm.c
+34
-15
没有找到文件。
libs/freetdm/src/ftmod/ftmod_gsm/ftmod_gsm.c
浏览文件 @
06eee95d
...
@@ -25,7 +25,7 @@
...
@@ -25,7 +25,7 @@
* OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
n_spans_info
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
...
@@ -139,8 +139,6 @@ static int read_channel(ftdm_channel_t *ftdm_chan , const void *buf, int size)
...
@@ -139,8 +139,6 @@ static int read_channel(ftdm_channel_t *ftdm_chan , const void *buf, int size)
}
}
/* wat callbacks */
/* wat callbacks */
void
on_wat_sigstatus_change
(
unsigned
char
span_id
,
wat_sigstatus_t
sigstatus
);
void
on_wat_span_alarm
(
unsigned
char
span_id
,
wat_alarm_t
alarm
);
int
on_wat_span_write
(
unsigned
char
span_id
,
void
*
buffer
,
unsigned
len
);
int
on_wat_span_write
(
unsigned
char
span_id
,
void
*
buffer
,
unsigned
len
);
void
on_wat_con_ind
(
unsigned
char
span_id
,
uint8_t
call_id
,
wat_con_event_t
*
con_event
);
void
on_wat_con_ind
(
unsigned
char
span_id
,
uint8_t
call_id
,
wat_con_event_t
*
con_event
);
...
@@ -186,17 +184,39 @@ int on_wat_span_write(unsigned char span_id, void *buffer, unsigned len)
...
@@ -186,17 +184,39 @@ int on_wat_span_write(unsigned char span_id, void *buffer, unsigned len)
}
}
void
on_wat_sigstatus_change
(
unsigned
char
span_id
,
wat_sigstatus_t
sig
status
)
static
void
on_wat_span_status
(
unsigned
char
span_id
,
wat_span_status_t
*
status
)
{
{
fprintf
(
stdout
,
"span:%d Signalling status changed %d
\n
"
,
span_id
,
sigstatus
);
switch
(
status
->
type
)
{
case
WAT_SPAN_STS_READY
:
return
;
{
}
ftdm_log
(
FTDM_LOG_INFO
,
"span %d: Ready
\n
"
,
span_id
);
}
void
on_wat_span_alarm
(
unsigned
char
span_id
,
wat_alarm_t
alrm
)
break
;
{
case
WAT_SPAN_STS_SIGSTATUS
:
fprintf
(
stdout
,
"span:%d Alarm received
\n
"
,
span_id
);
{
return
;
if
(
status
->
sts
.
sigstatus
==
WAT_SIGSTATUS_UP
)
{
ftdm_log
(
FTDM_LOG_INFO
,
"span %d: Signaling is now up
\n
"
,
span_id
);
}
else
{
ftdm_log
(
FTDM_LOG_INFO
,
"span %d: Signaling is now down
\n
"
,
span_id
);
}
}
break
;
case
WAT_SPAN_STS_SIM_INFO_READY
:
{
ftdm_log
(
FTDM_LOG_INFO
,
"span %d: SIM information ready
\n
"
,
span_id
);
}
break
;
case
WAT_SPAN_STS_ALARM
:
{
ftdm_log
(
FTDM_LOG_INFO
,
"span %d: Alarm received
\n
"
,
span_id
);
}
break
;
default:
{
ftdm_log
(
FTDM_LOG_INFO
,
"span %d: Unhandled span status notification %d
\n
"
,
span_id
,
status
->
type
);
}
break
;
}
}
}
void
on_wat_con_ind
(
unsigned
char
span_id
,
uint8_t
call_id
,
wat_con_event_t
*
con_event
)
void
on_wat_con_ind
(
unsigned
char
span_id
,
uint8_t
call_id
,
wat_con_event_t
*
con_event
)
...
@@ -491,7 +511,6 @@ static ftdm_status_t init_wat_lib(void)
...
@@ -491,7 +511,6 @@ static ftdm_status_t init_wat_lib(void)
ftdm_log
(
FTDM_LOG_DEBUG
,
"Registering interface to WAT Library...
\n
"
);
ftdm_log
(
FTDM_LOG_DEBUG
,
"Registering interface to WAT Library...
\n
"
);
fprintf
(
stdout
,
"Registering interface to WAT Library...
\n
"
);
fprintf
(
stdout
,
"Registering interface to WAT Library...
\n
"
);
wat_interface
.
wat_sigstatus_change
=
on_wat_sigstatus_change
;
wat_interface
.
wat_span_write
=
on_wat_span_write
;
wat_interface
.
wat_span_write
=
on_wat_span_write
;
wat_interface
.
wat_log
=
on_wat_log
;
wat_interface
.
wat_log
=
on_wat_log
;
...
@@ -500,13 +519,13 @@ static ftdm_status_t init_wat_lib(void)
...
@@ -500,13 +519,13 @@ static ftdm_status_t init_wat_lib(void)
wat_interface
.
wat_calloc
=
on_wat_calloc
;
wat_interface
.
wat_calloc
=
on_wat_calloc
;
wat_interface
.
wat_free
=
on_wat_free
;
wat_interface
.
wat_free
=
on_wat_free
;
wat_interface
.
wat_alarm
=
on_wat_span_alarm
;
wat_interface
.
wat_con_ind
=
on_wat_con_ind
;
wat_interface
.
wat_con_ind
=
on_wat_con_ind
;
wat_interface
.
wat_con_sts
=
on_wat_con_sts
;
wat_interface
.
wat_con_sts
=
on_wat_con_sts
;
wat_interface
.
wat_rel_ind
=
on_wat_rel_ind
;
wat_interface
.
wat_rel_ind
=
on_wat_rel_ind
;
wat_interface
.
wat_rel_cfm
=
on_wat_rel_cfm
;
wat_interface
.
wat_rel_cfm
=
on_wat_rel_cfm
;
wat_interface
.
wat_sms_ind
=
on_wat_sms_ind
;
wat_interface
.
wat_sms_ind
=
on_wat_sms_ind
;
wat_interface
.
wat_sms_sts
=
on_wat_sms_sts
;
wat_interface
.
wat_sms_sts
=
on_wat_sms_sts
;
wat_interface
.
wat_span_sts
=
on_wat_span_status
;
if
(
wat_register
(
&
wat_interface
))
{
if
(
wat_register
(
&
wat_interface
))
{
ftdm_log
(
FTDM_LOG_DEBUG
,
"FAILED Registering interface to WAT Library...
\n
"
);
ftdm_log
(
FTDM_LOG_DEBUG
,
"FAILED Registering interface to WAT Library...
\n
"
);
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论