Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
d5a7495a
提交
d5a7495a
authored
12月 05, 2013
作者:
Steve Underwood
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
This should fix the FAX crashes when negotiation falls back to slower modems
上级
9edbbd9c
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
29 行增加
和
3 行删除
+29
-3
fax.c
libs/spandsp/src/fax.c
+1
-2
fax_modems.c
libs/spandsp/src/fax_modems.c
+18
-1
fax_modems.h
libs/spandsp/src/spandsp/fax_modems.h
+2
-0
t38_gateway.c
libs/spandsp/src/t38_gateway.c
+8
-0
没有找到文件。
libs/spandsp/src/fax.c
浏览文件 @
d5a7495a
...
@@ -256,8 +256,7 @@ static void fax_set_rx_type(void *user_data, int type, int bit_rate, int short_t
...
@@ -256,8 +256,7 @@ static void fax_set_rx_type(void *user_data, int type, int bit_rate, int short_t
return
;
return
;
t
->
current_rx_type
=
type
;
t
->
current_rx_type
=
type
;
t
->
rx_bit_rate
=
bit_rate
;
t
->
rx_bit_rate
=
bit_rate
;
if
(
use_hdlc
)
hdlc_rx_init
(
&
t
->
hdlc_rx
,
false
,
true
,
HDLC_FRAMING_OK_THRESHOLD
,
fax_modems_hdlc_accept
,
t
);
hdlc_rx_init
(
&
t
->
hdlc_rx
,
false
,
true
,
HDLC_FRAMING_OK_THRESHOLD
,
t30_hdlc_accept
,
&
s
->
t30
);
switch
(
type
)
switch
(
type
)
{
{
...
...
libs/spandsp/src/fax_modems.c
浏览文件 @
d5a7495a
...
@@ -151,7 +151,8 @@ SPAN_DECLARE(const char *) fax_modem_to_str(int modem)
...
@@ -151,7 +151,8 @@ SPAN_DECLARE(const char *) fax_modem_to_str(int modem)
}
}
/*- End of function --------------------------------------------------------*/
/*- End of function --------------------------------------------------------*/
static
void
fax_modems_hdlc_accept
(
void
*
user_data
,
const
uint8_t
*
msg
,
int
len
,
int
ok
)
//static void fax_modems_hdlc_accept(void *user_data, const uint8_t *msg, int len, int ok)
SPAN_DECLARE
(
void
)
fax_modems_hdlc_accept
(
void
*
user_data
,
const
uint8_t
*
msg
,
int
len
,
int
ok
)
{
{
fax_modems_state_t
*
s
;
fax_modems_state_t
*
s
;
...
@@ -427,9 +428,13 @@ SPAN_DECLARE(void) fax_modems_start_fast_modem(fax_modems_state_t *s, int which,
...
@@ -427,9 +428,13 @@ SPAN_DECLARE(void) fax_modems_start_fast_modem(fax_modems_state_t *s, int which,
#if defined(SPANDSP_SUPPORT_V34)
#if defined(SPANDSP_SUPPORT_V34)
case
FAX_MODEM_V34_RX
:
case
FAX_MODEM_V34_RX
:
v34_init
(
&
s
->
fast_modems
.
v34
,
2400
,
s
->
bit_rate
,
true
,
false
,
NULL
,
NULL
,
put_bit
,
put_bit_user_data
);
v34_init
(
&
s
->
fast_modems
.
v34
,
2400
,
s
->
bit_rate
,
true
,
false
,
NULL
,
NULL
,
put_bit
,
put_bit_user_data
);
//fax_modems_set_tx_handler(s, (span_tx_handler_t) &v34_rx, &s->fast_modems.v34_rx);
fax_modems_set_next_tx_handler
(
s
,
(
span_tx_handler_t
)
NULL
,
NULL
);
break
;
break
;
case
FAX_MODEM_V34_TX
:
case
FAX_MODEM_V34_TX
:
v34_init
(
&
s
->
fast_modems
.
v34
,
2400
,
s
->
bit_rate
,
true
,
false
,
get_bit
,
get_bit_user_data
,
NULL
,
NULL
);
v34_init
(
&
s
->
fast_modems
.
v34
,
2400
,
s
->
bit_rate
,
true
,
false
,
get_bit
,
get_bit_user_data
,
NULL
,
NULL
);
//fax_modems_set_tx_handler(s, (span_tx_handler_t) &v34_tx, &s->fast_modems.v34_tx);
fax_modems_set_next_tx_handler
(
s
,
(
span_tx_handler_t
)
NULL
,
NULL
);
break
;
break
;
#endif
#endif
}
}
...
@@ -476,6 +481,18 @@ SPAN_DECLARE(void) fax_modems_start_fast_modem(fax_modems_state_t *s, int which,
...
@@ -476,6 +481,18 @@ SPAN_DECLARE(void) fax_modems_start_fast_modem(fax_modems_state_t *s, int which,
fax_modems_set_tx_handler
(
s
,
(
span_tx_handler_t
)
&
v17_tx
,
&
s
->
fast_modems
.
v17_tx
);
fax_modems_set_tx_handler
(
s
,
(
span_tx_handler_t
)
&
v17_tx
,
&
s
->
fast_modems
.
v17_tx
);
fax_modems_set_next_tx_handler
(
s
,
(
span_tx_handler_t
)
NULL
,
NULL
);
fax_modems_set_next_tx_handler
(
s
,
(
span_tx_handler_t
)
NULL
,
NULL
);
break
;
break
;
#if defined(SPANDSP_SUPPORT_V34)
case
FAX_MODEM_V34_RX
:
v34_restart
(
&
s
->
fast_modems
.
v34
,
2400
,
s
->
bit_rate
,
false
);
//fax_modems_set_tx_handler(s, (span_tx_handler_t) &v34_rx, &s->fast_modems.v34_rx);
fax_modems_set_next_tx_handler
(
s
,
(
span_tx_handler_t
)
NULL
,
NULL
);
break
;
case
FAX_MODEM_V34_TX
:
v34_restart
(
&
s
->
fast_modems
.
v34
,
2400
,
s
->
bit_rate
,
false
);
//fax_modems_set_tx_handler(s, (span_tx_handler_t) &v34_tx, &s->fast_modems.v34_tx);
fax_modems_set_next_tx_handler
(
s
,
(
span_tx_handler_t
)
NULL
,
NULL
);
break
;
#endif
}
}
/*endswitch*/
/*endswitch*/
}
}
...
...
libs/spandsp/src/spandsp/fax_modems.h
浏览文件 @
d5a7495a
...
@@ -59,6 +59,8 @@ extern "C"
...
@@ -59,6 +59,8 @@ extern "C"
{
{
#endif
#endif
SPAN_DECLARE
(
void
)
fax_modems_hdlc_accept
(
void
*
user_data
,
const
uint8_t
*
msg
,
int
len
,
int
ok
);
/*! Convert a FAX modem type to a short text description.
/*! Convert a FAX modem type to a short text description.
\brief Convert a FAX modem type to a short text description.
\brief Convert a FAX modem type to a short text description.
\param modem The modem code.
\param modem The modem code.
...
...
libs/spandsp/src/t38_gateway.c
浏览文件 @
d5a7495a
...
@@ -75,6 +75,10 @@
...
@@ -75,6 +75,10 @@
#include "spandsp/v27ter_rx.h"
#include "spandsp/v27ter_rx.h"
#include "spandsp/v17tx.h"
#include "spandsp/v17tx.h"
#include "spandsp/v17rx.h"
#include "spandsp/v17rx.h"
#if defined(SPANDSP_SUPPORT_V34)
#include "spandsp/bitstream.h"
#include "spandsp/v34.h"
#endif
#include "spandsp/super_tone_rx.h"
#include "spandsp/super_tone_rx.h"
#include "spandsp/modem_connect_tones.h"
#include "spandsp/modem_connect_tones.h"
#include "spandsp/timezone.h"
#include "spandsp/timezone.h"
...
@@ -100,6 +104,10 @@
...
@@ -100,6 +104,10 @@
#include "spandsp/private/silence_gen.h"
#include "spandsp/private/silence_gen.h"
#include "spandsp/private/power_meter.h"
#include "spandsp/private/power_meter.h"
#include "spandsp/private/fsk.h"
#include "spandsp/private/fsk.h"
#if defined(SPANDSP_SUPPORT_V34)
#include "spandsp/private/bitstream.h"
#include "spandsp/private/v34.h"
#endif
#include "spandsp/private/v17tx.h"
#include "spandsp/private/v17tx.h"
#include "spandsp/private/v17rx.h"
#include "spandsp/private/v17rx.h"
#include "spandsp/private/v27ter_tx.h"
#include "spandsp/private/v27ter_tx.h"
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论