[asterisk-users] Fax Problems with SpanDSP

Patrick asterisk-list at puzzled.xs4all.nl
Wed Aug 29 07:03:00 CDT 2007


On Tue, 2007-08-28 at 16:23 -0500, Carlos Chavez wrote:
> On Wed, 2007-08-29 at 00:03 +0300, Tzafrir Cohen wrote:
> > On Tue, Aug 28, 2007 at 10:11:03PM +0200, Christian Peter wrote:
> > > Hi list,
> > > 
> > > I'm running current SpanDSP
> > > http://www.soft-switch.org/downloads/spandsp/spandsp-0.0.4pre6.tgz
> > > with Asterisk 1.2.22 somewhat successfully.
> > 
> > Shouldn't you have used spandsp 0.0.3 with asterisk 1.2 ?
> > 
> 	Actually, as Steve Underwood has gently reminded the list several
> times, he recommends SpanDsp 0.0.2 for Asterisk 1.2

Yes he did but using asterisk-1.2.24 and spandsp-0.0.2pre26 with the
app_txfax and app_rxfax apps available from soft-switch.org[1] results
in the compilation failure below.

gcc  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes
-Wmissing-declarations  -Iinclude -I../include -D_REENTRANT
-D_GNU_SOURCE  -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686
-mtune=generic -fasynchronous-unwind-tables -DZAPTEL_OPTIMIZATIONS
-fomit-frame-pointer  -fPIC   -c -o app_rxfax.o app_rxfax.c
app_rxfax.c: In function 'phase_e_handler':
app_rxfax.c:105: error: 't30_stats_t' has no member named 'x_resolution'
app_rxfax.c:105: error: 't30_stats_t' has no member named 'y_resolution'
app_rxfax.c:116: error: 't30_stats_t' has no member named 'y_resolution'
app_rxfax.c:122: error: 't30_stats_t' has no member named 'y_resolution'
app_rxfax.c: In function 'phase_d_handler':
app_rxfax.c:147: error: 't30_stats_t' has no member named 'width'
app_rxfax.c:147: error: 't30_stats_t' has no member named 'length'
app_rxfax.c:148: error: 't30_stats_t' has no member named 'x_resolution'
app_rxfax.c:148: error: 't30_stats_t' has no member named 'y_resolution'
app_rxfax.c: In function 'rxfax_exec':
app_rxfax.c:171: error: 'fax_state_t' undeclared (first use in this
function)
app_rxfax.c:171: error: (Each undeclared identifier is reported only
once
app_rxfax.c:171: error: for each function it appears in.)
app_rxfax.c:171: error: expected ';' before 'fax'
app_rxfax.c:281: error: 'fax' undeclared (first use in this function)
app_rxfax.c:281: error: too few arguments to function 'fax_init'
app_rxfax.c:294: warning: implicit declaration of function
't30_set_ecm_capability'
app_rxfax.c:295: warning: implicit declaration of function
't30_set_supported_compressions'
app_rxfax.c:295: error: 'T30_SUPPORT_T4_1D_COMPRESSION' undeclared
(first use in this function)
app_rxfax.c:295: error: 'T30_SUPPORT_T4_2D_COMPRESSION' undeclared
(first use in this function)
app_rxfax.c:295: error: 'T30_SUPPORT_T6_COMPRESSION' undeclared (first
use in this function)
app_rxfax.c:346: warning: implicit declaration of function
't30_terminate'
make[1]: *** [app_rxfax.o] Error 1

Anyone (Steve?) know how to fix this?

Regards,
Patrick

[1] http://soft-switch.org/downloads/snapshots/spandsp/test-apps-asterisk-1.2/




More information about the asterisk-users mailing list