[Asterisk-Users] Problem installing Software Fax SpanDSP support into Asterisk

Jon Bebeau jbebeau at 1nettw.net
Thu Aug 12 09:08:54 MST 2004


I'm trying to install the SPANDSP software into Asterisk to support incoming (mainly) Fax.  I'm following the info in http://www.voip-info.org/wiki-Asterisk+Fax.  I downloaded and installed the spandsp software from ftp://ftp.opencall.org/pub/spandsp/ and followed the directions in several documents listed on the on the Tiki page.

I get down to patch < Makefile.patch that fails with Hunk #1 FAILED at 35. and Hunk #2 FAILED at 68.  The Makefile.rej is included below.  Not being a Linux wiz-kid, I'm struggling to figure out what when wrong and how to fix it.  The problem seems to be related to two missing programs app_todd and app_sql_odbc.  Some searching around with Google, I find these things seem to have existed at one time (the todd anyway).  It seems that the most recent documents: http://scottstuff.net/scott/archives/000152.html 

Dated March 28, 2004 and the earlier lists documents:

http://lists.digium.com/pipermail/asterisk-users/2003-October/025094.html (cache), http://lists.digium.com/pipermail/asterisk-users/2004-March/041408.html (cache) and http://lists.digium.com/pipermail/asterisk-users/2004-March/041433.html (cache) (Thanks to Scott Laird) 

They don't say they have this problem.  I'm thinking Asterisk has changed enough in recent times to require some other procedure.  Any guidance would help.  Environment:  Redhat 9, Linux 2.4.20-31.9smp and Asterisk CVS-HEAD-08/02/04-15:03:06 on a Tyan single P4 3.06Ghz with Hyperthreading enabled.

Is this Fax a viable solution?  Any better/other suggestions for faxing?

Makefile.rej listing below--------------------------------
***************

*** 35,44 ****

#APPS+=app_sql_odbc.so


APPS+=$(shell if [ -f /usr/include/linux/zaptel.h ]; then echo "app_zapras.so app_meetme.so app_flash.so app_zapbarge.so app_zapscan.so" ; fi)

#APPS+=$(shell if [ -f /usr/include/zap.h ]; then echo "app_rpt.so" ; fi)


CFLAGS+=-fPIC


ifeq ($(USE_POSTGRES_VM_INTERFACE),1)

CFLAGS+=-DUSEPOSTGRESVM

endif

--- 35,47 ----

#APPS+=app_sql_odbc.so


APPS+=$(shell if [ -f /usr/include/linux/zaptel.h ]; then echo "app_zapras.so app_meetme.so app_flash.so app_zapbarge.so app_zapscan.so" ; fi)

#APPS+=$(shell if [ -f /usr/include/zap.h ]; then echo "app_rpt.so" ; fi)


+ APPS+=$(shell if [ -f /usr/include/spandsp.h ]; then echo "app_rxfax.so app_txfax.so app_dtmftotext.so" ; fi)

+ APPS+=$(shell if [ -f /usr/local/include/spandsp.h ]; then echo "app_rxfax.so app_txfax.so app_dtmftotext.so" ; fi)

+ 

CFLAGS+=-fPIC


ifeq ($(USE_POSTGRES_VM_INTERFACE),1)

CFLAGS+=-DUSEPOSTGRESVM

endif

***************

*** 65,74 ****

gcc -pipe -O6 -g -Iinclude -I../include -D_REENTRANT -march=i586 -DDO_CRASH -c -o app_todd.o app_todd.c


app_todd.so: app_todd.o

$(CC) $(SOLINK) -o $@ $< -L/usr/local/ssl/lib -lssl -lcrypto


app_voicemail.so : app_voicemail.o

ifeq ($(USE_MYSQL_VM_INTERFACE),1)

$(CC) $(SOLINK) -o $@ $(MLFLAGS) $< -L/usr/lib/mysql -lmysqlclient -lz

else

ifeq ($(USE_POSTGRES_VM_INTERFACE),1)

--- 68,95 ----

gcc -pipe -O6 -g -Iinclude -I../include -D_REENTRANT -march=i586 -DDO_CRASH -c -o app_todd.o app_todd.c


app_todd.so: app_todd.o

$(CC) $(SOLINK) -o $@ $< -L/usr/local/ssl/lib -lssl -lcrypto


+ app_rxfax.so : app_rxfax.o

+ $(CC) $(SOLINK) -o $@ $< -lspandsp -ltiff

+ 

+ app_rxfax.o: app_rxfax.c

+ gcc -O2 -g -Iinclude -I../include -c -o app_rxfax.o app_rxfax.c

+ 

+ app_txfax.so : app_txfax.o

+ $(CC) $(SOLINK) -o $@ $< -lspandsp -ltiff

+ 

+ app_txfax.o: app_txfax.c

+ gcc -O2 -g -Iinclude -I../include -c -o app_txfax.o app_txfax.c

+ 

+ app_dtmftotext.so : app_dtmftotext.o

+ $(CC) $(SOLINK) -o $@ $< -lspandsp -ltiff

+ 

+ app_dtmftotexto: app_dtmftotext.c

+ gcc -O2 -g -Iinclude -I../include -c -o app_dtmftotext.o app_dtmftotext.c

+ 

app_voicemail.so : app_voicemail.o

ifeq ($(USE_MYSQL_VM_INTERFACE),1)

$(CC) $(SOLINK) -o $@ $(MLFLAGS) $< -L/usr/lib/mysql -lmysqlclient -lz

else

ifeq ($(USE_POSTGRES_VM_INTERFACE),1)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20040812/76837ac2/attachment.htm


More information about the asterisk-users mailing list