Spandsp and Asterisk1.4 on CentOS 5
from the FreePBX forum
On November 9th, 2007 ip-rob (tadpole) said: Using spandsp for fax with Asterisk 1.4 is better documented now. Here are the steps I went through based on what I found at various sites and trial/error. I'm using Asterisk 1.4.13, FreePBX 2.3.1, and CentOS 5. 1. Download and install spandsp-0.0.3 from soft-switch. Make and install the package. Some people have reported success with spandsp-0.0.4pre but I stuck with the "released" version. 2. Download the test applications from soft-switch. I used the files at http://www.soft-switch.org/downloads/snapshots/spandsp/test-apps-asteris.... Downlaod app_rxfax.c, app_txfax.c, and asterisk.patch. Copy the app_rxfax.c and app_txfax.c files to your asterisk apps source directory (e.g. /usr/src/asterisk/apps). Apply the patch to the makefile (e.g. go to /usr/src/asterisk and enter patch -P0 3. Get the app_nv_faxdetect-1.0.6_1.c and app_nv_backgrounddetect-1.0.6_1.c. I got these from http://x68k.net/download/Asterisk. 4. Add the line "/usr/local/lib" to the end of /etc/ld.so.conf and run ldconfig 5. Make sure you have autoconf installed. I'm running CentOS 5 and had to get it from http://ftp.gnu.org/gnu/autoconf/autoconf-2.61.tar.gz. If you have to install it, run these commands in a directory (should use /usr/src) wget http://ftp.gnu.org/gnu/autoconf/autoconf-2.61.tar.gz tar –xvf autoconf-2.61.tar.gz cd autoconf-2.61 ./configure --prefix=/usr/local LANG=c make LANG=c make install 6. Edit the app_nv_faxdetect-1.0.6_1.c and app_nv_backgrounddetect-1.0.6_1.c and comment out all lines of LOCAL_USER_ADD(u), LOCAL_USER_REMOVE(u), and STANDARD_HANGUP_LOCALUSERS. Add the following line to the bottom. AST_MODULE_INFO_STANDARD(ASTERISK_GPL_KEY, "NV BG Detection Application"); 7. Assuming your asterisk source directory is /usr/src/asterisk, copy the app_nv_faxdetect-1.0.6_1.c and app_nv_backgrounddetect-1.0.6_1.c into /usr/src/asterisk/apps/app_nv_faxdetect. and /usr/src/asterisk/apps/app_nv_backgrounddetect.c respectively. 8. Go to your asterisk source directory, /usr/src/asterisk. 9. Enter these commands to create the configure file and configure asterisk ./bootstrap.sh ./configure make menuselect When the menu comes up after make menuselect then you need to make sure app_txfax and app_rxfax do not have the XXX by them. If so then something was done incorrectly. They should have a * by them to indicated they are included in the build. 10. If you've successfully completed step 8, continue your build make clean make make install You should now be able to use nv_faxdetect on sip lines. I have had no problems once I got it working through these steps. Created by: admin last modification: Monday 26 of November, 2007 [18:43:42 UTC] by admin |
Login
Search |