View | Details | Raw Unified | Return to bug 258999 | Differences between
and this patch

Collapse All | Expand All

(-)b/comms/spandsp/Makefile (-5 / +13 lines)
Lines 1-20 Link Here
1
# Created by: wlloyd@slap.net
1
# Created by: wlloyd@slap.net
2
2
3
PORTNAME=	spandsp
3
PORTNAME=	spandsp
4
PORTVERSION=	0.0.6
4
DISTVERSION=	${SPANDSP_VERSION}.g20211014
5
CATEGORIES=	comms
5
CATEGORIES=	comms
6
MASTER_SITES=	http://www.soft-switch.org/downloads/spandsp/
7
6
8
MAINTAINER=	ports@FreeBSD.org
7
MAINTAINER=	jailbird@fdf.net
9
COMMENT=	DSP library and software FAX machine
8
COMMENT=	DSP library and software FAX machine
10
9
11
LICENSE=	LGPL21
10
LICENSE=	LGPL21
12
11
13
LIB_DEPENDS=	libtiff.so:graphics/tiff
12
LIB_DEPENDS=	libtiff.so:graphics/tiff
14
13
14
USES=		autoreconf gmake jpeg libtool localbase
15
16
USE_GITHUB=	yes
17
GH_ACCOUNT=	freeswitch
18
GH_TAGNAME=	${GITHUB_COMMIT}
19
GITHUB_COMMIT=	284fe91
20
21
USE_LDCONFIG=	yes
22
15
GNU_CONFIGURE=	yes
23
GNU_CONFIGURE=	yes
16
INSTALL_TARGET=	install-strip
24
INSTALL_TARGET=	install-strip
17
USES=		autoreconf gmake libtool localbase
25
18
USE_LDCONFIG=	yes
26
SPANDSP_VERSION=	3.0.0
19
27
20
.include <bsd.port.mk>
28
.include <bsd.port.mk>
(-)b/comms/spandsp/distinfo (-2 / +3 lines)
Lines 1-2 Link Here
1
SHA256 (spandsp-0.0.6.tar.gz) = cc053ac67e8ac4bb992f258fd94f275a7872df959f6a87763965feabfdcc9465
1
TIMESTAMP = 1634216290
2
SIZE (spandsp-0.0.6.tar.gz) = 3309837
2
SHA256 (freeswitch-spandsp-3.0.0.g20211014-284fe91_GH0.tar.gz) = 288b12eb058d615c526e85fe0fe339293e5713b3513e7918043e93e52e4efd49
3
SIZE (freeswitch-spandsp-3.0.0.g20211014-284fe91_GH0.tar.gz) = 3584374
(-)b/comms/spandsp/files/patch-Makefile.am (-3 / +3 lines)
Lines 1-6 Link Here
1
--- Makefile.am.orig	2014-09-03 14:15:04.000000000 +0300
1
--- Makefile.am.orig	2021-08-14 20:26:24 UTC
2
+++ Makefile.am	2014-09-03 14:15:16.000000000 +0300
2
+++ Makefile.am
3
@@ -61,7 +61,7 @@ SUBDIRS = src $(MAYBE_DOC) $(MAYBE_TESTD
3
@@ -60,7 +60,7 @@ SUBDIRS = src $(MAYBE_DOC) $(MAYBE_TESTS)
4
 
4
 
5
 DIST_SUBDIRS = src doc test-data spandsp-sim tests
5
 DIST_SUBDIRS = src doc test-data spandsp-sim tests
6
 
6
 
(-)a/comms/spandsp/files/patch-configure.ac (-37 lines)
Removed Link Here
1
--- configure.ac.orig	2014-11-11 15:56:10.000000000 +0100
2
+++ configure.ac	2014-11-11 15:58:13.000000000 +0100
3
@@ -198,7 +198,6 @@ AC_CHECK_HEADERS([stdlib.h])
4
 AC_CHECK_HEADERS([string.h])
5
 AC_CHECK_HEADERS([strings.h])
6
 AC_CHECK_HEADERS([malloc.h])
7
-AC_CHECK_HEADERS([tgmath.h], [INSERT_TGMATH_HEADER="#include <tgmath.h>"])
8
 AC_CHECK_HEADERS([math.h], [INSERT_MATH_HEADER="#include <math.h>"])
9
 AC_CHECK_HEADERS([float.h])
10
 AC_CHECK_HEADERS([fcntl.h])
11
@@ -331,7 +330,7 @@ AX_CHECK_EXPORT_CAPABILITY([$host],
12
 
13
 case "${ax_cv_c_compiler_vendor}" in
14
 gnu)
15
-    COMP_VENDOR_CFLAGS="-std=gnu99 -ffast-math -Wall -Wunused-variable -Wunused-but-set-variable -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes $COMP_VENDOR_CFLAGS"
16
+    COMP_VENDOR_CFLAGS="-std=gnu99 -ffast-math -Wall -Wunused-variable -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes $COMP_VENDOR_CFLAGS"
17
     if test "$enable_avx" = "yes" ; then
18
         COMP_VENDOR_CFLAGS="-mavx $COMP_VENDOR_CFLAGS"
19
     fi
20
@@ -392,7 +391,7 @@ sun)
21
     REMOVE_FROM_VAR(CFLAGS, -Xc)
22
     ;;
23
 intel)
24
-    COMP_VENDOR_CFLAGS="-std=c99 -D_POSIX_C_SOURCE=2 -D_GNU_SOURCE=1 -Wall -Wunused-variable -Wunused-but-set-variable -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes $COMP_VENDOR_CFLAGS"
25
+    COMP_VENDOR_CFLAGS="-std=c99 -D_POSIX_C_SOURCE=2 -D_GNU_SOURCE=1 -Wall -Wunused-variable -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes $COMP_VENDOR_CFLAGS"
26
     if test "$enable_avx" = "yes" ; then
27
         COMP_VENDOR_CFLAGS="-mavx $COMP_VENDOR_CFLAGS"
28
     fi
29
@@ -426,7 +425,7 @@ intel)
30
     COMP_VENDOR_LDFLAGS=
31
     ;;
32
 *)
33
-    COMP_VENDOR_CFLAGS="-std=c99 -Wall -Wunused-variable -Wunused-but-set-variable -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes $COMP_VENDOR_CFLAGS"
34
+    COMP_VENDOR_CFLAGS="-std=c99 -Wall -Wunused-variable -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes $COMP_VENDOR_CFLAGS"
35
     COMP_VENDOR_LDFLAGS=
36
     ;;
37
 esac
(-)b/comms/spandsp/pkg-plist (-2 / +16 lines)
Lines 1-5 Link Here
1
include/spandsp.h
1
include/spandsp.h
2
include/spandsp/adsi.h
2
include/spandsp/adsi.h
3
include/spandsp/alloc.h
3
include/spandsp/arctan2.h
4
include/spandsp/arctan2.h
4
include/spandsp/async.h
5
include/spandsp/async.h
5
include/spandsp/at_interpreter.h
6
include/spandsp/at_interpreter.h
Lines 14-19 include/spandsp/complex_filters.h Link Here
14
include/spandsp/complex_vector_float.h
15
include/spandsp/complex_vector_float.h
15
include/spandsp/crc.h
16
include/spandsp/crc.h
16
include/spandsp/dc_restore.h
17
include/spandsp/dc_restore.h
18
include/spandsp/data_modems.h
17
include/spandsp/dds.h
19
include/spandsp/dds.h
18
include/spandsp/dtmf.h
20
include/spandsp/dtmf.h
19
include/spandsp/echo.h
21
include/spandsp/echo.h
Lines 84-89 include/spandsp/private/awgn.h Link Here
84
include/spandsp/private/bell_r2_mf.h
86
include/spandsp/private/bell_r2_mf.h
85
include/spandsp/private/bert.h
87
include/spandsp/private/bert.h
86
include/spandsp/private/bitstream.h
88
include/spandsp/private/bitstream.h
89
include/spandsp/private/data_modems.h
87
include/spandsp/private/dtmf.h
90
include/spandsp/private/dtmf.h
88
include/spandsp/private/echo.h
91
include/spandsp/private/echo.h
89
include/spandsp/private/fax.h
92
include/spandsp/private/fax.h
Lines 102-107 include/spandsp/private/modem_connect_tones.h Link Here
102
include/spandsp/private/modem_echo.h
105
include/spandsp/private/modem_echo.h
103
include/spandsp/private/noise.h
106
include/spandsp/private/noise.h
104
include/spandsp/private/oki_adpcm.h
107
include/spandsp/private/oki_adpcm.h
108
include/spandsp/private/playout.h
109
include/spandsp/private/plc.h
110
include/spandsp/private/power_meter.h
105
include/spandsp/private/queue.h
111
include/spandsp/private/queue.h
106
include/spandsp/private/schedule.h
112
include/spandsp/private/schedule.h
107
include/spandsp/private/sig_tone.h
113
include/spandsp/private/sig_tone.h
Lines 120-125 include/spandsp/private/t4_rx.h Link Here
120
include/spandsp/private/t4_t6_decode.h
126
include/spandsp/private/t4_t6_decode.h
121
include/spandsp/private/t4_t6_encode.h
127
include/spandsp/private/t4_t6_encode.h
122
include/spandsp/private/t4_tx.h
128
include/spandsp/private/t4_tx.h
129
include/spandsp/private/t42.h
130
include/spandsp/private/t43.h
131
include/spandsp/private/t81_t82_arith_coding.h
132
include/spandsp/private/t85.h
123
include/spandsp/private/time_scale.h
133
include/spandsp/private/time_scale.h
124
include/spandsp/private/timezone.h
134
include/spandsp/private/timezone.h
125
include/spandsp/private/tone_detect.h
135
include/spandsp/private/tone_detect.h
Lines 143-152 include/spandsp/t4_rx.h Link Here
143
include/spandsp/t4_t6_decode.h
153
include/spandsp/t4_t6_decode.h
144
include/spandsp/t4_t6_encode.h
154
include/spandsp/t4_t6_encode.h
145
include/spandsp/t4_tx.h
155
include/spandsp/t4_tx.h
156
include/spandsp/t42.h
157
include/spandsp/t43.h
158
include/spandsp/t81_t82_arith_coding.h
159
include/spandsp/t85.h
146
include/spandsp/timezone.h
160
include/spandsp/timezone.h
147
include/spandsp/v18.h
161
include/spandsp/v18.h
148
lib/libspandsp.a
162
lib/libspandsp.a
149
lib/libspandsp.so
163
lib/libspandsp.so
150
lib/libspandsp.so.2
164
lib/libspandsp.so.3
151
lib/libspandsp.so.2.0.0
165
lib/libspandsp.so.3.0.0
152
libdata/pkgconfig/spandsp.pc
166
libdata/pkgconfig/spandsp.pc
(-)b/net/asterisk16/files/patch-res_res__fax__spandsp.c (+62 lines)
Added Link Here
1
--- res/res_fax_spandsp.c.orig	2021-11-02 08:40:01 UTC
2
+++ res/res_fax_spandsp.c
3
@@ -167,8 +167,8 @@ struct spandsp_pvt {
4
 static int spandsp_v21_new(struct spandsp_pvt *p);
5
 static void session_destroy(struct spandsp_pvt *p);
6
 static int t38_tx_packet_handler(t38_core_state_t *t38_core_state, void *data, const uint8_t *buf, int len, int count);
7
-static void t30_phase_e_handler(t30_state_t *t30_state, void *data, int completion_code);
8
-static void spandsp_log(int level, const char *msg);
9
+static void t30_phase_e_handler(void *data, int completion_code);
10
+static void spandsp_log(void *user_data, int level, const char *msg);
11
 static int update_stats(struct spandsp_pvt *p, int completion_code);
12
 static int spandsp_modems(struct ast_fax_session_details *details);
13
 
14
@@ -375,10 +375,11 @@ static int update_stats(struct spandsp_pvt *p, int com
15
  * This function pulls stats from the spandsp stack and stores them for res_fax
16
  * to use later.
17
  */
18
-static void t30_phase_e_handler(t30_state_t *t30_state, void *data, int completion_code)
19
+static void t30_phase_e_handler(void *data, int completion_code)
20
 {
21
 	struct ast_fax_session *s = data;
22
 	struct spandsp_pvt *p = s->tech_pvt;
23
+	t30_state_t *t30_state = p->t30_state;
24
 	char headerinfo[T30_MAX_PAGE_HEADER_INFO + 1];
25
 	const char *c;
26
 	t30_stats_t stats;
27
@@ -430,7 +431,7 @@ static void t30_phase_e_handler(t30_state_t *t30_state
28
  *
29
  * \note This function is a callback function called by spandsp.
30
  */
31
-static void spandsp_log(int level, const char *msg)
32
+static void spandsp_log(void *user_data, int level, const char *msg)
33
 {
34
 	if (level == SPAN_LOG_ERROR) {
35
 		ast_log(LOG_ERROR, "%s", msg);
36
@@ -449,7 +450,7 @@ static void set_logging(logging_state_t *state, struct
37
 		level = SPAN_LOG_DEBUG_3;
38
 	}
39
 
40
-	span_log_set_message_handler(state, spandsp_log);
41
+	span_log_set_message_handler(state, spandsp_log, NULL);
42
 	span_log_set_level(state, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | level);
43
 }
44
 
45
@@ -479,7 +480,7 @@ static void set_file(t30_state_t *t30_state, struct as
46
 static void set_ecm(t30_state_t *t30_state, struct ast_fax_session_details *details)
47
 {
48
 	t30_set_ecm_capability(t30_state, details->option.ecm);
49
-	t30_set_supported_compressions(t30_state, T30_SUPPORT_T4_1D_COMPRESSION | T30_SUPPORT_T4_2D_COMPRESSION | T30_SUPPORT_T6_COMPRESSION);
50
+	t30_set_supported_compressions(t30_state, T4_COMPRESSION_T4_1D | T4_COMPRESSION_T4_2D | T4_COMPRESSION_T6);
51
 }
52
 
53
 static int spandsp_v21_new(struct spandsp_pvt *p)
54
@@ -1256,7 +1257,7 @@ static int load_module(void)
55
 	}
56
 
57
 	/* prevent logging to stderr */
58
-	span_set_message_handler(NULL);
59
+	span_set_message_handler(NULL, NULL);
60
 
61
 	return AST_MODULE_LOAD_SUCCESS;
62
 }
(-)b/net/asterisk18/files/patch-res_res__fax__spandsp.c (+62 lines)
Added Link Here
1
--- res/res_fax_spandsp.c.orig	2021-11-02 08:42:19 UTC
2
+++ res/res_fax_spandsp.c
3
@@ -167,8 +167,8 @@ struct spandsp_pvt {
4
 static int spandsp_v21_new(struct spandsp_pvt *p);
5
 static void session_destroy(struct spandsp_pvt *p);
6
 static int t38_tx_packet_handler(t38_core_state_t *t38_core_state, void *data, const uint8_t *buf, int len, int count);
7
-static void t30_phase_e_handler(t30_state_t *t30_state, void *data, int completion_code);
8
-static void spandsp_log(int level, const char *msg);
9
+static void t30_phase_e_handler(void *data, int completion_code);
10
+static void spandsp_log(void *user_data, int level, const char *msg);
11
 static int update_stats(struct spandsp_pvt *p, int completion_code);
12
 static int spandsp_modems(struct ast_fax_session_details *details);
13
 
14
@@ -375,10 +375,11 @@ static int update_stats(struct spandsp_pvt *p, int com
15
  * This function pulls stats from the spandsp stack and stores them for res_fax
16
  * to use later.
17
  */
18
-static void t30_phase_e_handler(t30_state_t *t30_state, void *data, int completion_code)
19
+static void t30_phase_e_handler(void *data, int completion_code)
20
 {
21
 	struct ast_fax_session *s = data;
22
 	struct spandsp_pvt *p = s->tech_pvt;
23
+	t30_state_t *t30_state = p->t30_state;
24
 	char headerinfo[T30_MAX_PAGE_HEADER_INFO + 1];
25
 	const char *c;
26
 	t30_stats_t stats;
27
@@ -430,7 +431,7 @@ static void t30_phase_e_handler(t30_state_t *t30_state
28
  *
29
  * \note This function is a callback function called by spandsp.
30
  */
31
-static void spandsp_log(int level, const char *msg)
32
+static void spandsp_log(void *user_data, int level, const char *msg)
33
 {
34
 	if (level == SPAN_LOG_ERROR) {
35
 		ast_log(LOG_ERROR, "%s", msg);
36
@@ -449,7 +450,7 @@ static void set_logging(logging_state_t *state, struct
37
 		level = SPAN_LOG_DEBUG_3;
38
 	}
39
 
40
-	span_log_set_message_handler(state, spandsp_log);
41
+	span_log_set_message_handler(state, spandsp_log, NULL);
42
 	span_log_set_level(state, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | level);
43
 }
44
 
45
@@ -479,7 +480,7 @@ static void set_file(t30_state_t *t30_state, struct as
46
 static void set_ecm(t30_state_t *t30_state, struct ast_fax_session_details *details)
47
 {
48
 	t30_set_ecm_capability(t30_state, details->option.ecm);
49
-	t30_set_supported_compressions(t30_state, T30_SUPPORT_T4_1D_COMPRESSION | T30_SUPPORT_T4_2D_COMPRESSION | T30_SUPPORT_T6_COMPRESSION);
50
+	t30_set_supported_compressions(t30_state, T4_COMPRESSION_T4_1D | T4_COMPRESSION_T4_2D | T4_COMPRESSION_T6);
51
 }
52
 
53
 static int spandsp_v21_new(struct spandsp_pvt *p)
54
@@ -1256,7 +1257,7 @@ static int load_module(void)
55
 	}
56
 
57
 	/* prevent logging to stderr */
58
-	span_set_message_handler(NULL);
59
+	span_set_message_handler(NULL, NULL);
60
 
61
 	return AST_MODULE_LOAD_SUCCESS;
62
 }
(-)b/net/opal/files/patch-plugins_fax_fax__spandsp_spandsp__fax.cpp (-1 / +153 lines)
Added Link Here
0
- 
1
--- plugins/fax/fax_spandsp/spandsp_fax.cpp.orig	2013-02-20 02:18:10 UTC
2
+++ plugins/fax/fax_spandsp/spandsp_fax.cpp
3
@@ -82,7 +82,7 @@ static PluginCodec_LogFunction LogFunction;
4
       LogFunction(level, __FILE__, __LINE__, "FaxCodec", strm.str().c_str()); \
5
     } else (void)0
6
 
7
-static void SpanDSP_Message(int level, const char *text)
8
+static void SpanDSP_Message(void *user_data, int level, const char *text)
9
 {
10
   if (*text != '\0' && LogFunction != NULL) {
11
     if (level >= SPAN_LOG_DEBUG)
12
@@ -117,7 +117,7 @@ static void SpanDSP_Message(int level, const char *tex
13
 
14
 static void InitLogging(logging_state_t * logging, const std::string & tag)
15
 {
16
-  span_log_set_message_handler(logging, SpanDSP_Message);
17
+  span_log_set_message_handler(logging, SpanDSP_Message, NULL);
18
 
19
   int level = SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_DEBUG;
20
 
21
@@ -807,7 +807,7 @@ class MyStats : private t30_stats_t (public)
22
       strm << "-1 (In progress)";
23
     strm << "\n"
24
             "Bit Rate=" << stats.bit_rate << "\n"
25
-            "Encoding=" << stats.encoding << ' ' << CompressionNames[stats.encoding&3] << "\n"
26
+            "Encoding=" << stats.compression << ' ' << CompressionNames[stats.compression&3] << "\n"
27
             "Error Correction=" << stats.error_correcting_mode << "\n"
28
             "Tx Pages=" << (stats.m_receiving ? -1 : stats.pages_tx) << "\n"
29
             "Rx Pages=" << (stats.m_receiving ? stats.pages_rx : -1) << "\n"
30
@@ -839,25 +839,27 @@ class FaxTIFF : public FaxSpanDSP
31
     char            m_phase;
32
 
33
   protected:
34
+    t30_state_t * m_t30State;
35
+
36
     FaxTIFF()
37
       : m_receiving(false)
38
       , m_stationIdentifer("-")
39
-      , m_supported_image_sizes(T30_SUPPORT_US_LETTER_LENGTH |
40
-                                T30_SUPPORT_US_LEGAL_LENGTH |
41
-                                T30_SUPPORT_UNLIMITED_LENGTH |
42
-                                T30_SUPPORT_A4_LENGTH |
43
-                                T30_SUPPORT_B4_LENGTH |
44
-                                T30_SUPPORT_215MM_WIDTH |
45
-                                T30_SUPPORT_255MM_WIDTH |
46
-                                T30_SUPPORT_303MM_WIDTH)
47
-      , m_supported_resolutions(T30_SUPPORT_STANDARD_RESOLUTION |
48
-                                T30_SUPPORT_FINE_RESOLUTION |
49
-                                T30_SUPPORT_SUPERFINE_RESOLUTION |
50
-                                T30_SUPPORT_R8_RESOLUTION |
51
-                                T30_SUPPORT_R16_RESOLUTION)
52
-      , m_supported_compressions(T30_SUPPORT_T4_1D_COMPRESSION |
53
-                                 T30_SUPPORT_T4_2D_COMPRESSION |
54
-                                 T30_SUPPORT_T6_COMPRESSION)
55
+      , m_supported_image_sizes(T4_SUPPORT_LENGTH_US_LETTER |
56
+                                T4_SUPPORT_LENGTH_US_LEGAL |
57
+                                T4_SUPPORT_LENGTH_UNLIMITED |
58
+                                T4_SUPPORT_LENGTH_A4 |
59
+                                T4_SUPPORT_LENGTH_B4 |
60
+                                T4_SUPPORT_WIDTH_215MM |
61
+                                T4_SUPPORT_WIDTH_255MM |
62
+                                T4_SUPPORT_WIDTH_303MM)
63
+      , m_supported_resolutions(T4_RESOLUTION_R8_STANDARD |
64
+                                T4_RESOLUTION_R8_FINE |
65
+                                T4_RESOLUTION_R8_SUPERFINE |
66
+                                T4_RESOLUTION_200_400 |
67
+                                T4_RESOLUTION_400_400)
68
+      , m_supported_compressions(T4_COMPRESSION_T4_1D |
69
+                                 T4_COMPRESSION_T4_2D |
70
+                                 T4_COMPRESSION_T6)
71
       , m_phase('A')
72
     {
73
     }
74
@@ -932,6 +934,7 @@ class FaxTIFF : public FaxSpanDSP
75
         PTRACE(3, m_tag << " Set transmit TIFF file to \"" << m_tiffFileName << '"');
76
       }
77
 
78
+      m_t30State = t30state;
79
       t30_set_phase_b_handler(t30state, PhaseB, this);
80
       t30_set_phase_d_handler(t30state, PhaseD, this);
81
       t30_set_phase_e_handler(t30state, PhaseE, this);
82
@@ -948,7 +951,7 @@ class FaxTIFF : public FaxSpanDSP
83
 
84
       t30_set_supported_modems(t30state, m_supported_modems);
85
       t30_set_supported_image_sizes(t30state, m_supported_image_sizes);
86
-      t30_set_supported_resolutions(t30state, m_supported_resolutions);
87
+      t30_set_supported_bilevel_resolutions(t30state, m_supported_resolutions);
88
       t30_set_supported_compressions(t30state, m_supported_compressions);
89
       t30_set_ecm_capability(t30state, m_useECM);
90
 
91
@@ -983,50 +986,50 @@ class FaxTIFF : public FaxSpanDSP
92
     bool IsReceiving() const { return m_receiving; }
93
 
94
 
95
-    static int PhaseB(t30_state_t * t30state, void * user_data, int result)
96
+    static int PhaseB(void * user_data, int result)
97
     {
98
       if (user_data != NULL)
99
-        ((FaxTIFF *)user_data)->PhaseB(t30state, result);
100
+        ((FaxTIFF *)user_data)->PhaseB(result);
101
       return T30_ERR_OK;
102
     }
103
 
104
-    static int PhaseD(t30_state_t * t30state, void * user_data, int result)
105
+    static int PhaseD(void * user_data, int result)
106
     {
107
       if (user_data != NULL)
108
-        ((FaxTIFF *)user_data)->PhaseD(t30state, result);
109
+        ((FaxTIFF *)user_data)->PhaseD(result);
110
       return T30_ERR_OK;
111
     }
112
 
113
-    static void PhaseE(t30_state_t * t30state, void * user_data, int result)
114
+    static void PhaseE(void * user_data, int result)
115
     {
116
       if (user_data != NULL)
117
-        ((FaxTIFF *)user_data)->PhaseE(t30state, result);
118
+        ((FaxTIFF *)user_data)->PhaseE(result);
119
     }
120
 
121
 
122
   private:
123
-    void PhaseB(t30_state_t * t30state, int)
124
+    void PhaseB(int)
125
     {
126
       m_phase = 'B';
127
       PTRACE(3, m_tag << " SpanDSP entered Phase B:\n"
128
-             << MyStats(t30state, m_completed, m_receiving, m_phase));
129
+             << MyStats(this->m_t30State, m_completed, m_receiving, m_phase));
130
     }
131
 
132
-    void PhaseD(t30_state_t * t30state, int)
133
+    void PhaseD(int)
134
     {
135
       m_phase = 'D';
136
       PTRACE(3, m_tag << " SpanDSP entered Phase D:\n"
137
-             << MyStats(t30state, m_completed, m_receiving, m_phase));
138
+             << MyStats(this->m_t30State, m_completed, m_receiving, m_phase));
139
     }
140
 
141
-    void PhaseE(t30_state_t * t30state, int result)
142
+    void PhaseE(int result)
143
     {
144
       if (result >= 0)
145
         m_completed = true; // Finished, exit codec loops
146
 
147
       m_phase = 'E';
148
       PTRACE(3, m_tag << " SpanDSP entered Phase E:\n"
149
-             << MyStats(t30state, m_completed, m_receiving, m_phase));
150
+             << MyStats(this->m_t30State, m_completed, m_receiving, m_phase));
151
     }
152
 };
153
 

Return to bug 258999