FreePBX 2.7: Fax For Asterisk Setup

RonRussell

Guru
Joined
Mar 22, 2008
Messages
112
Reaction score
4
Here is the log file -

Excluding Packages from CentOS-5 - Base
Finished
Excluding Packages from CentOS-5 - Updates
Finished
Excluding Packages from CentOS-5 - Addons
Finished
Excluding Packages from CentOS-5 - Extras
Finished
Setting up Install Process
Parsing package install arguments
Package glib2-devel - 2.12.3-4.el5_3.1.i386 is already installed.
Nothing to do
Preparing... ##################################################
./agx-ast-addons/
./agx-ast-addons/TODO
./agx-ast-addons/build.sh
./agx-ast-addons/README
./agx-ast-addons/addon_version.h
./agx-ast-addons/app_devstate.c
./agx-ast-addons/CHANGES
./agx-ast-addons/app_nv_backgrounddetect.c
./agx-ast-addons/tarball.sh
./agx-ast-addons/app_rxfax.c
./agx-ast-addons/app_nv_faxdetect.c
./agx-ast-addons/app_confcall.c
./agx-ast-addons/tarball.list
./agx-ast-addons/app_pickup2.c
./agx-ast-addons/CMakeLists.txt
./agx-ast-addons/func_devstate.c
./agx-ast-addons/BUGS_KNOW_PROBLEMS
./agx-ast-addons/test_spandsp.c
./agx-ast-addons/app_txfax.c
./agx-ast-addons/edit_version.sh
./agx-ast-addons/test_spandsp
Preparing... ##################################################
Excluding Packages from CentOS-5 - Base
Finished
Excluding Packages from CentOS-5 - Updates
Finished
Excluding Packages from CentOS-5 - Addons
Finished
Excluding Packages from CentOS-5 - Extras
Finished
Setting up Install Process
Parsing package install arguments
Package ghostscript - 8.15.2-9.11.el5.i386 is already installed.
Nothing to do
-- Configuring done
-- Generating done
-- Build files have been written to: /root/fax/agx-ast-addons
[ 12%] Built target app_devstate
[ 25%] Built target app_nv_backgrounddetect
[ 37%] Built target app_nv_faxdetect
[ 50%] Built target app_pickup2
[ 62%] Building C object CMakeFiles/app_rxfax.dir/app_rxfax.o



STOPPING ASTERISK
Asterisk Stopped

STOPPING FOP SERVER
FOP Server Stopped
SETTING FILE PERMISSIONS
Permissions OK

STARTING ASTERISK
Asterisk Started

STARTING FOP SERVER
FOP Server Started
Installation completed. Read the documentation before use!
http://bestof.nerdvittles.com/applications/fax/
 

MyKroFt

Guru
Joined
Oct 31, 2008
Messages
659
Reaction score
3
ok, if you go to /root/fax/agx-ast-addons and manually run ./build.sh this is what I get, what do you get

Code:
root@pbxtcs:~/fax/agx-ast-addons $ ./build.sh 
-- Configuring done
-- Generating done
-- Build files have been written to: /root/fax/agx-ast-addons
[ 12%] Built target app_devstate
[ 25%] Built target app_nv_backgrounddetect
[ 37%] Built target app_nv_faxdetect
[ 50%] Built target app_pickup2
[ 62%] Built target app_rxfax
[ 75%] Built target app_txfax
[ 87%] Built target func_devstate
[100%] Built target test_spandsp
spandsp looks ok, date: 20071112, time: 134008
[ 12%] Built target app_devstate
[ 25%] Built target app_nv_backgrounddetect
[ 37%] Built target app_nv_faxdetect
[ 50%] Built target app_pickup2
[ 62%] Built target app_rxfax
[ 75%] Built target app_txfax
[ 87%] Built target func_devstate
[100%] Built target test_spandsp
Install the project...
-- Install configuration: "Debug"
-- Installing /usr/lib/asterisk/modules/app_devstate.so
-- Installing /usr/lib/asterisk/modules/app_nv_backgrounddetect.so
-- Installing /usr/lib/asterisk/modules/app_nv_faxdetect.so
-- Installing /usr/lib/asterisk/modules/app_pickup2.so
-- Installing /usr/lib/asterisk/modules/app_rxfax.so
-- Installing /usr/lib/asterisk/modules/app_txfax.so
-- Installing /usr/lib/asterisk/modules/func_devstate.so
successfully compiled and installed
is there a compile error on the screen?
 

RonRussell

Guru
Joined
Mar 22, 2008
Messages
112
Reaction score
4
Yes I get an error -
Code:
root@pbx:~/fax/agx-ast-addons $ ./build.sh 
-- Configuring done
-- Generating done
-- Build files have been written to: /root/fax/agx-ast-addons
[ 12%] Built target app_devstate
[ 25%] Built target app_nv_backgrounddetect
[ 37%] Built target app_nv_faxdetect
[ 50%] Built target app_pickup2
[ 62%] Building C object CMakeFiles/app_rxfax.dir/app_rxfax.o
cc1: warnings being treated as errors
/root/fax/agx-ast-addons/app_rxfax.c: In function âphase_e_handlerâ:
/root/fax/agx-ast-addons/app_rxfax.c:107: warning: implicit declaration of function ât30_get_local_identâ
/root/fax/agx-ast-addons/app_rxfax.c:108: warning: implicit declaration of function ât30_get_far_identâ
/root/fax/agx-ast-addons/app_rxfax.c:110: error: ât30_stats_tâ has no member named âpages_transferredâ
/root/fax/agx-ast-addons/app_rxfax.c:127: error: ât30_stats_tâ has no member named âpages_transferredâ
/root/fax/agx-ast-addons/app_rxfax.c:137: error: ât30_stats_tâ has no member named âpages_transferredâ
/root/fax/agx-ast-addons/app_rxfax.c:140: error: dereferencing pointer to incomplete type
/root/fax/agx-ast-addons/app_rxfax.c:143: error: ât30_stats_tâ has no member named âpages_transferredâ
/root/fax/agx-ast-addons/app_rxfax.c: In function âphase_d_handlerâ:
/root/fax/agx-ast-addons/app_rxfax.c:170: error: ât30_stats_tâ has no member named âpages_transferredâ
/root/fax/agx-ast-addons/app_rxfax.c:180: error: ât30_stats_tâ has no member named âpages_transferredâ
/root/fax/agx-ast-addons/app_rxfax.c: In function ârxfax_execâ:
/root/fax/agx-ast-addons/app_rxfax.c:199: error: storage size of âfaxâ isnât known
/root/fax/agx-ast-addons/app_rxfax.c:318: warning: implicit declaration of function ât30_set_local_identâ
/root/fax/agx-ast-addons/app_rxfax.c:321: warning: implicit declaration of function ât30_set_header_infoâ
/root/fax/agx-ast-addons/app_rxfax.c:323: warning: passing argument 2 of ât30_set_phase_b_handlerâ from incompatible pointer type
/root/fax/agx-ast-addons/app_rxfax.c:324: warning: passing argument 2 of ât30_set_phase_d_handlerâ from incompatible pointer type
/root/fax/agx-ast-addons/app_rxfax.c:199: warning: unused variable âfaxâ
make[2]: *** [CMakeFiles/app_rxfax.dir/app_rxfax.o] Error 1
make[1]: *** [CMakeFiles/app_rxfax.dir/all] Error 2
make: *** [all] Error 2
 

hraynor

Guru
Joined
Feb 11, 2009
Messages
137
Reaction score
1
FYI - While I had a LOT of problems after upgarding to 2.7 initially, now everything seems to work as it should.

Initially I was using rxfax to send faxes via email. The initial 2.7 broke this. However, I was able to get it to forward fax calls to a REAL fax machine even with that - the detection would work (though this took a while as the config did not migrate properly).

The latest updates over the past 2 days seem to have fixed things so that rxfax works fine now (I believe it was the StopTones line or whatever that fixed this for me).

BTW - I never had the problem that some had of NVFAX not showing up, it always did on my end...
 

MyKroFt

Guru
Joined
Oct 31, 2008
Messages
659
Reaction score
3
ok, next thing i would do is check your installed versions of the rpm files the scripts download - and make sure they are the same, then try the manual compile again.

might want to even remove those and reinstall the downloaded versions.... ?

there is also a sym link in the script, might want to remove/update it if its pointing to the wrong file
 

RonRussell

Guru
Joined
Mar 22, 2008
Messages
112
Reaction score
4
Here is where the problem lies -
Code:
cc1: warnings being treated as errors
/root/fax/agx-ast-addons/app_rxfax.c: In function âphase_e_handlerâ:
/root/fax/agx-ast-addons/app_rxfax.c:107: warning: implicit declaration of function ât30_get_local_identâ
/root/fax/agx-ast-addons/app_rxfax.c:108: warning: implicit declaration of function ât30_get_far_identâ
/root/fax/agx-ast-addons/app_rxfax.c:110: error: ât30_stats_tâ has no member named âpages_transferredâ
/root/fax/agx-ast-addons/app_rxfax.c:127: error: ât30_stats_tâ has no member named âpages_transferredâ
/root/fax/agx-ast-addons/app_rxfax.c:137: error: ât30_stats_tâ has no member named âpages_transferredâ
/root/fax/agx-ast-addons/app_rxfax.c:140: error: dereferencing pointer to incomplete type
/root/fax/agx-ast-addons/app_rxfax.c:143: error: ât30_stats_tâ has no member named âpages_transferredâ
/root/fax/agx-ast-addons/app_rxfax.c: In function âphase_d_handlerâ:
/root/fax/agx-ast-addons/app_rxfax.c:170: error: ât30_stats_tâ has no member named âpages_transferredâ
/root/fax/agx-ast-addons/app_rxfax.c:180: error: ât30_stats_tâ has no member named âpages_transferredâ
/root/fax/agx-ast-addons/app_rxfax.c: In function ârxfax_execâ:
/root/fax/agx-ast-addons/app_rxfax.c:199: error: storage size of âfaxâ isnât known
/root/fax/agx-ast-addons/app_rxfax.c:318: warning: implicit declaration of function ât30_set_local_identâ
/root/fax/agx-ast-addons/app_rxfax.c:321: warning: implicit declaration of function ât30_set_header_infoâ
/root/fax/agx-ast-addons/app_rxfax.c:323: warning: passing argument 2 of ât30_set_phase_b_handlerâ from incompatible pointer type
/root/fax/agx-ast-addons/app_rxfax.c:324: warning: passing argument 2 of ât30_set_phase_d_handlerâ from incompatible pointer type
/root/fax/agx-ast-addons/app_rxfax.c:199: warning: unused variable âfaxâ
make[2]: *** [CMakeFiles/app_rxfax.dir/app_rxfax.o] Error 1
make[1]: *** [CMakeFiles/app_rxfax.dir/all] Error 2
make: *** [all] Error 2
Because this client wants and needs fax to email working, I am going to swap their server out for one that works. I will have the old server in my office with the broken code on it for a while.
 
Joined
Mar 31, 2008
Messages
217
Reaction score
1
My error is different

I've been having the same faxing problem with 2.7. We're using a digium card and having trouble receiving inbound faxes via a PSTN line. The way it worked before was to send inbound faxes to a specific extension with a real fax machine on it....not nothing works :(

Running the suggested code above I get the following:
Code:
root@pbx:~/fax/agx-ast-addons $ ./build.sh
-- Configuring done
-- Generating done
-- Build files have been written to: /root/fax/agx-ast-addons
[ 12%] Built target app_devstate
[ 25%] Built target app_nv_backgrounddetect
[ 37%] Built target app_nv_faxdetect
[ 50%] Built target app_pickup2
Linking C shared module dist/app_rxfax.so
/usr/bin/ld: skipping incompatible /usr/lib/libspandsp.so when searching for -lspandsp
/usr/bin/ld: cannot find -lspandsp
collect2: ld returned 1 exit status
make[2]: *** [dist/app_rxfax.so] Error 1
make[1]: *** [CMakeFiles/app_rxfax.dir/all] Error 2
make: *** [all] Error 2

Here is the info on my system
Code:
            PBX in a Flash Version 1.2 Daemon Status
********************************************************************
* Asterisk  * ONLINE  * Zaptel    * ONLINE  * MySQL      * ONLINE  *
* SSH       * ONLINE  * Apache    * ONLINE  * Iptables   * ONLINE  *
* Fail2ban  * ONLINE  * IP Connect* ONLINE  * Ip6tables  * ONLINE  *
* BlueTooth * ONLINE  * Hidd      * ONLINE  * NTPD       * ONLINE  *
* Sendmail  * ONLINE  * Samba     * ONLINE  * Webmin     * LOADING *
* Ethernet0 * ONLINE  * Ethernet1 *   N/A   * Wlan0      *   N/A   *
********************************************************************
* Running Asterisk Version : LOADING
* Asterisk Source Version  : 1.4.21.2
* Zaptel Source Version    : 1.4.12.1
* Libpri Source Version    : 1.4.7
* Addons Source Version    : 1.4.7
********************************************************************
pbx.local on 192.168.X.X - eth0
CentOS release 5.4 (Final) :64 Bit Kernel: 2.6.18-92.1.6.el5
********************************************************************
 For help on PBX commands than you can run type help-pbx           *
********************************************************************
 
Joined
Mar 31, 2008
Messages
217
Reaction score
1
Update

Ok, did a yum update and found that yum wants a newer version of cmake that conflicted with an older version so I ran the following and now get a different error.

Code:
root@pbx:~/fax/agx-ast-addons $ rpm -e cmake-2.4.8-3.el5.i386
root@pbx:~/fax/agx-ast-addons $ yum install cmake
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * addons: mirror.fdcservers.net
 * base: mirror.steadfast.net
 * extras: mirror.fdcservers.net
 * rpmforge: fr2.rpmfind.net
 * updates: ftp.osuosl.org
Excluding Packages from CentOS-5 - Addons
Finished
Excluding Packages from CentOS-5 - Base
Finished
Excluding Packages from CentOS-5 - Extras
Finished
Excluding Packages from Red Hat Enterprise 5 - RPMforge.net - dag
Finished
Excluding Packages from CentOS-5 - Updates
Finished
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package cmake.x86_64 0:2.6.4-1.el5.rf set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

=========================================================================================================================================================================================================================================
 Package                                              Arch                                                  Version                                                        Repository                                               Size
=========================================================================================================================================================================================================================================
Installing:
 cmake                                                x86_64                                                2.6.4-1.el5.rf                                                 rpmforge                                                7.5 M

Transaction Summary
=========================================================================================================================================================================================================================================
Install      1 Package(s)
Update       0 Package(s)
Remove       0 Package(s)

Total size: 7.5 M
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing     : cmake                                                                                                                                                                                                             1/1

Installed:
  cmake.x86_64 0:2.6.4-1.el5.rf

Complete!
root@pbx:~/fax/agx-ast-addons $ ./build.sh
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
CMake Warning (dev) in CMakeLists.txt:
  No cmake_minimum_required command is present.  A line of code such as

    cmake_minimum_required(VERSION 2.6)

  should be added at the top of the file.  The version specified may be lower
  if you wish to support older CMake versions for this project.  For more
  information run "cmake --help-policy CMP0000".
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Configuring done
-- Generating done
-- Build files have been written to: /root/fax/agx-ast-addons
Scanning dependencies of target app_devstate
[ 12%] Building C object CMakeFiles/app_devstate.dir/app_devstate.o
Linking C shared module dist/app_devstate.so
[ 12%] Built target app_devstate
Scanning dependencies of target app_nv_backgrounddetect
[ 25%] Building C object CMakeFiles/app_nv_backgrounddetect.dir/app_nv_backgrounddetect.o
Linking C shared module dist/app_nv_backgrounddetect.so
[ 25%] Built target app_nv_backgrounddetect
Scanning dependencies of target app_nv_faxdetect
[ 37%] Building C object CMakeFiles/app_nv_faxdetect.dir/app_nv_faxdetect.o
Linking C shared module dist/app_nv_faxdetect.so
[ 37%] Built target app_nv_faxdetect
Scanning dependencies of target app_pickup2
[ 50%] Building C object CMakeFiles/app_pickup2.dir/app_pickup2.o
Linking C shared module dist/app_pickup2.so
[ 50%] Built target app_pickup2
Scanning dependencies of target app_rxfax
[ 62%] Building C object CMakeFiles/app_rxfax.dir/app_rxfax.o
Linking C shared module dist/app_rxfax.so
/usr/bin/ld: skipping incompatible /usr/lib/libspandsp.so when searching for -lspandsp
/usr/bin/ld: cannot find -lspandsp
collect2: ld returned 1 exit status
make[2]: *** [dist/app_rxfax.so] Error 1
make[1]: *** [CMakeFiles/app_rxfax.dir/all] Error 2
make: *** [all] Error 2
 

MyKroFt

Guru
Joined
Oct 31, 2008
Messages
659
Reaction score
3
it looks like your spandsp, is messed up. Remove, redownload the rpm, and reinstall the rpm

make sure the symlink the script wants to do is valid (remove the old sym link if need be)
 

MyKroFt

Guru
Joined
Oct 31, 2008
Messages
659
Reaction score
3
I have not been able to get faxing to go to a extension and answer as a fax when that extension has that ability setup. it always answers voicemail etc.

RxFax is working in Legacy mode......
 
Joined
Dec 13, 2007
Messages
59
Reaction score
1
Are any of these issues still in FreePBX?

Folks,
skimming through all these issues since PlayTones() was fixed seems to all be related with PIAF and not FreePBX? Is that correct or is there a FreePBX issue still hiding in all this that I missed? If so, please post it in the tracker and if it is already there, feel free to bump it in case it got missed during my vacation...

One of you reported issues with migration, if you have any specific details that did not migrate properly, feel free to post a ticket on the FreePBX tracker if it looks like something we can repro. Please check that the notification panel didn't inform you of a device that could not migrate though as this is not a bug, simply a limitation on the migration ability and thus the notification. (The one case that does not migrate is a fax "device" that has no "user" associated with it, will not migrate but you should be informed of the issue.
 

isaacl

Member
Joined
Sep 22, 2009
Messages
348
Reaction score
3
Can you give me some more info what I can do about the issue I am having?
Thanks!
 

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
19,201
Reaction score
5,220
I'd suggest you reinstall Orgasmatron 5.2 without upgrading anything. Be sure you can get faxing working at that level before moving on to FreePBX 2.7. Once we're sure where the problem lies, folks will better be able to assist you.
 

isaacl

Member
Joined
Sep 22, 2009
Messages
348
Reaction score
3
If I make a backup from 2.7, will I be able to restore it in 2.6?
Thanks.
 

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
19,201
Reaction score
5,220
No going backwards. Same version only with FreePBX backups.
 

isaacl

Member
Joined
Sep 22, 2009
Messages
348
Reaction score
3
So the question is, is it worth it, or is there a way to get it working with 2.7 (either by me fixing something, or a FreePBX update)...
 

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
19,201
Reaction score
5,220
Well, this is message #59. Seems to me that's a pretty good hint as to how well this is going. :cool:
 

isaacl

Member
Joined
Sep 22, 2009
Messages
348
Reaction score
3
I just hate having to re-do my whole system once I have it set up how I want it...
And I'm not sure I need the faxing so bad anyway.
I may just wait until they somehow fix it...
 

Members online

Forum statistics

Threads
25,810
Messages
167,755
Members
19,240
Latest member
nikko
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Top