<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1458" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV>
<DIV><FONT face=Arial>I'm trying to install the SPANDSP software into Asterisk
to support incoming (mainly) Fax. I'm following the info in </FONT><A
href="http://www.voip-info.org/wiki-Asterisk+Fax"><FONT
face=Arial>http://www.voip-info.org/wiki-Asterisk+Fax</FONT></A><FONT
face=Arial>. I downloaded and installed the spandsp software from
</FONT><A class=wiki href="ftp://ftp.opencall.org/pub/spandsp/"><FONT
face=Arial>ftp://ftp.opencall.org/pub/spandsp/</FONT></A><FONT
face=Arial> and followed the directions in several documents listed on the
on the Tiki page.</FONT></DIV>
<DIV><FONT face=Arial></FONT> </DIV>
<DIV><FONT face=Arial>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: </FONT><A class=wiki
href="http://scottstuff.net/scott/archives/000152.html"><FONT
face=Arial>http://scottstuff.net/scott/archives/000152.html</FONT></A><FONT
face=Arial> </FONT></DIV>
<DIV><FONT face=Arial></FONT> </DIV>
<DIV><FONT face=Arial>Dated March 28, 2004 and the earlier lists
documents:</FONT></DIV>
<DIV><FONT face=Arial></FONT> </DIV>
<DIV><A class=wiki
href="http://lists.digium.com/pipermail/asterisk-users/2003-October/025094.html"><FONT
face=Arial>http://lists.digium.com/pipermail/asterisk-users/2003-October/025094.html</FONT></A><FONT
face=Arial> </FONT><A class=wikicache
href="http://www.voip-info.org/tiki-view_cache.php?url=http%3A%2F%2Flists.digium.com%2Fpipermail%2Fasterisk-users%2F2003-October%2F025094.html"
target=_blank><FONT face=Arial>(cache)</FONT></A><FONT face=Arial>, </FONT><A
class=wiki
href="http://lists.digium.com/pipermail/asterisk-users/2004-March/041408.html"><FONT
face=Arial>http://lists.digium.com/pipermail/asterisk-users/2004-March/041408.html</FONT></A><FONT
face=Arial> </FONT><A class=wikicache
href="http://www.voip-info.org/tiki-view_cache.php?url=http%3A%2F%2Flists.digium.com%2Fpipermail%2Fasterisk-users%2F2004-March%2F041408.html"
target=_blank><FONT face=Arial>(cache)</FONT></A><FONT face=Arial> and </FONT><A
class=wiki
href="http://lists.digium.com/pipermail/asterisk-users/2004-March/041433.html"><FONT
face=Arial>http://lists.digium.com/pipermail/asterisk-users/2004-March/041433.html</FONT></A><FONT
face=Arial> </FONT><A class=wikicache
href="http://www.voip-info.org/tiki-view_cache.php?url=http%3A%2F%2Flists.digium.com%2Fpipermail%2Fasterisk-users%2F2004-March%2F041433.html"
target=_blank><FONT face=Arial>(cache)</FONT></A><FONT face=Arial> (Thanks to
Scott Laird) </FONT></DIV>
<DIV><FONT face=Arial></FONT> </DIV>
<DIV><FONT face=Arial>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.</FONT></DIV>
<DIV><FONT face=Arial></FONT> </DIV>
<DIV><FONT face=Arial>Is this Fax a viable solution? Any better/other
suggestions for faxing?</FONT></DIV>
<DIV><FONT face=Arial></FONT> </DIV>
<DIV><FONT face=Arial>Makefile.rej listing
below--------------------------------</FONT></DIV>
<DIV><FONT face=Arial><FONT size=2>
<P>***************</P>
<P>*** 35,44 ****</P>
<P>#APPS+=app_sql_odbc.so</P>
<P></P>
<P>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)</P>
<P>#APPS+=$(shell if [ -f /usr/include/zap.h ]; then echo "app_rpt.so" ; fi)</P>
<P></P>
<P>CFLAGS+=-fPIC</P>
<P></P>
<P>ifeq ($(USE_POSTGRES_VM_INTERFACE),1)</P>
<P>CFLAGS+=-DUSEPOSTGRESVM</P>
<P>endif</P>
<P>--- 35,47 ----</P>
<P>#APPS+=app_sql_odbc.so</P>
<P></P>
<P>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)</P>
<P>#APPS+=$(shell if [ -f /usr/include/zap.h ]; then echo "app_rpt.so" ; fi)</P>
<P></P>
<P>+ APPS+=$(shell if [ -f /usr/include/spandsp.h ]; then echo "app_rxfax.so
app_txfax.so app_dtmftotext.so" ; fi)</P>
<P>+ APPS+=$(shell if [ -f /usr/local/include/spandsp.h ]; then echo
"app_rxfax.so app_txfax.so app_dtmftotext.so" ; fi)</P>
<P>+ </P>
<P>CFLAGS+=-fPIC</P>
<P></P>
<P>ifeq ($(USE_POSTGRES_VM_INTERFACE),1)</P>
<P>CFLAGS+=-DUSEPOSTGRESVM</P>
<P>endif</P>
<P>***************</P>
<P>*** 65,74 ****</P>
<P>gcc -pipe -O6 -g -Iinclude -I../include -D_REENTRANT -march=i586 -DDO_CRASH
-c -o app_todd.o app_todd.c</P>
<P></P>
<P>app_todd.so: app_todd.o</P>
<P>$(CC) $(SOLINK) -o $@ $< -L/usr/local/ssl/lib -lssl -lcrypto</P>
<P></P>
<P>app_voicemail.so : app_voicemail.o</P>
<P>ifeq ($(USE_MYSQL_VM_INTERFACE),1)</P>
<P>$(CC) $(SOLINK) -o $@ $(MLFLAGS) $< -L/usr/lib/mysql -lmysqlclient -lz</P>
<P>else</P>
<P>ifeq ($(USE_POSTGRES_VM_INTERFACE),1)</P>
<P>--- 68,95 ----</P>
<P>gcc -pipe -O6 -g -Iinclude -I../include -D_REENTRANT -march=i586 -DDO_CRASH
-c -o app_todd.o app_todd.c</P>
<P></P>
<P>app_todd.so: app_todd.o</P>
<P>$(CC) $(SOLINK) -o $@ $< -L/usr/local/ssl/lib -lssl -lcrypto</P>
<P></P>
<P>+ app_rxfax.so : app_rxfax.o</P>
<P>+ $(CC) $(SOLINK) -o $@ $< -lspandsp -ltiff</P>
<P>+ </P>
<P>+ app_rxfax.o: app_rxfax.c</P>
<P>+ gcc -O2 -g -Iinclude -I../include -c -o app_rxfax.o app_rxfax.c</P>
<P>+ </P>
<P>+ app_txfax.so : app_txfax.o</P>
<P>+ $(CC) $(SOLINK) -o $@ $< -lspandsp -ltiff</P>
<P>+ </P>
<P>+ app_txfax.o: app_txfax.c</P>
<P>+ gcc -O2 -g -Iinclude -I../include -c -o app_txfax.o app_txfax.c</P>
<P>+ </P>
<P>+ app_dtmftotext.so : app_dtmftotext.o</P>
<P>+ $(CC) $(SOLINK) -o $@ $< -lspandsp -ltiff</P>
<P>+ </P>
<P>+ app_dtmftotexto: app_dtmftotext.c</P>
<P>+ gcc -O2 -g -Iinclude -I../include -c -o app_dtmftotext.o
app_dtmftotext.c</P>
<P>+ </P>
<P>app_voicemail.so : app_voicemail.o</P>
<P>ifeq ($(USE_MYSQL_VM_INTERFACE),1)</P>
<P>$(CC) $(SOLINK) -o $@ $(MLFLAGS) $< -L/usr/lib/mysql -lmysqlclient -lz</P>
<P>else</P>
<P>ifeq
($(USE_POSTGRES_VM_INTERFACE),1)</P></FONT></FONT></DIV></DIV></BODY></HTML>