Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
8cb975f3
提交
8cb975f3
authored
8月 26, 2012
作者:
Steve Underwood
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Various fax_modems.c related improvements
上级
60cd56d1
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
436 行增加
和
282 行删除
+436
-282
fax.c
libs/spandsp/src/fax.c
+54
-98
fax_modems.c
libs/spandsp/src/fax_modems.c
+248
-62
fax_modems.h
libs/spandsp/src/spandsp/fax_modems.h
+20
-0
fax_modems.h
libs/spandsp/src/spandsp/private/fax_modems.h
+20
-1
t31.c
libs/spandsp/src/t31.c
+59
-77
t38_gateway.c
libs/spandsp/src/t38_gateway.c
+35
-44
没有找到文件。
libs/spandsp/src/fax.c
浏览文件 @
8cb975f3
差异被折叠。
点击展开。
libs/spandsp/src/fax_modems.c
浏览文件 @
8cb975f3
差异被折叠。
点击展开。
libs/spandsp/src/spandsp/fax_modems.h
浏览文件 @
8cb975f3
...
...
@@ -65,10 +65,30 @@ SPAN_DECLARE_NONSTD(int) fax_modems_v17_v21_rx_fillin(void *user_data, int len);
SPAN_DECLARE_NONSTD
(
int
)
fax_modems_v27ter_v21_rx_fillin
(
void
*
user_data
,
int
len
);
SPAN_DECLARE_NONSTD
(
int
)
fax_modems_v29_v21_rx_fillin
(
void
*
user_data
,
int
len
);
SPAN_DECLARE
(
void
)
fax_modems_hdlc_tx_frame
(
void
*
user_data
,
const
uint8_t
*
msg
,
int
len
);
SPAN_DECLARE
(
void
)
fax_modems_hdlc_tx_flags
(
fax_modems_state_t
*
s
,
int
flags
);
SPAN_DECLARE
(
void
)
fax_modems_start_rx_modem
(
fax_modems_state_t
*
s
,
int
which
);
SPAN_DECLARE
(
void
)
fax_modems_start_fast_modem
(
fax_modems_state_t
*
s
,
int
which
,
int
bit_rate
,
int
short_train
,
int
hdlc_mode
);
SPAN_DECLARE
(
void
)
fax_modems_start_slow_modem
(
fax_modems_state_t
*
s
,
int
which
);
SPAN_DECLARE
(
void
)
fax_modems_set_tep_mode
(
fax_modems_state_t
*
s
,
int
use_tep
);
SPAN_DECLARE
(
void
)
fax_modems_set_rx_handler
(
fax_modems_state_t
*
s
,
span_rx_handler_t
rx_handler
,
void
*
rx_user_data
,
span_rx_fillin_handler_t
rx_fillin_handler
,
void
*
rx_fillin_user_data
);
SPAN_DECLARE
(
void
)
fax_modems_set_rx_active
(
fax_modems_state_t
*
s
,
int
active
);
SPAN_DECLARE
(
void
)
fax_modems_set_tx_handler
(
fax_modems_state_t
*
s
,
span_tx_handler_t
handler
,
void
*
user_data
);
SPAN_DECLARE
(
void
)
fax_modems_set_next_tx_handler
(
fax_modems_state_t
*
s
,
span_tx_handler_t
handler
,
void
*
user_data
);
SPAN_DECLARE
(
int
)
fax_modems_restart
(
fax_modems_state_t
*
s
);
/*! Get a pointer to the logging context associated with a FAX modems context.
...
...
libs/spandsp/src/spandsp/private/fax_modems.h
浏览文件 @
8cb975f3
...
...
@@ -82,11 +82,30 @@ struct fax_modems_state_s
/*! \brief */
dc_restore_state_t
dc_restore
;
/*! \brief The fast modem type currently in use */
int
fast_modem
;
/*! \brief The currently selected receiver type */
int
current_rx_type
;
/*! \brief The currently selected transmitter type */
int
current_tx_type
;
int
bit_rate
;
int
short_train
;
/*! \brief The callback function used to put each bit received. */
put_bit_func_t
put_bit
;
/*! \brief A user specified opaque pointer passed to the put_bit routine. */
void
*
put_bit_user_data
;
/*! \brief The callback function used to get the next bit to be transmitted. */
get_bit_func_t
get_bit
;
/*! \brief A user specified opaque pointer passed to the get_bit function. */
void
*
get_bit_user_data
;
hdlc_frame_handler_t
hdlc_accept
;
void
*
hdlc_accept_user_data
;
/*! \brief TRUE if a carrier is present. Otherwise FALSE. */
int
rx_signal_present
;
/*! \brief TRUE if a modem has trained correctly. */
...
...
@@ -96,9 +115,9 @@ struct fax_modems_state_s
/*! \brief The current receive signal handler */
span_rx_handler_t
rx_handler
;
void
*
rx_user_data
;
/*! \brief The current receive missing signal fill-in handler */
span_rx_fillin_handler_t
rx_fillin_handler
;
void
*
rx_user_data
;
void
*
rx_fillin_user_data
;
/*! \brief The current transmit signal handler */
...
...
libs/spandsp/src/t31.c
浏览文件 @
8cb975f3
差异被折叠。
点击展开。
libs/spandsp/src/t38_gateway.c
浏览文件 @
8cb975f3
差异被折叠。
点击展开。
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论