Sending Out a Fax Via Trixbox

EMANUEL
Posts: 53
Member Since:
2007-06-29

Hi guys,

I'm already receiving faxes into my Trixbox and they get routed to my email account. Everything is working great.

Now I wanna do the opposite, which is to get a pdf and make Trixbox send it out as a fax. Is it possible? How?

I know I can plug a fax machine into some extension and send a fax this way. But that's not what I want to do. What I want is Trixbox to get some file (maybe a pdf) and send it to an outside fax machine. Just to clarify.



EMANUEL
Posts: 53
Member Since:
2007-06-29
Let me rephrase the

Let me rephrase the question,

Is there a software which connects to a sip provider to send out faxes?

Like those apps which send fax using your old modem, bus instead of using a modem it would connect to a sip provider (my Trixbox)...



bubbapcguy
Posts: 3774
Member Since:
2006-06-02
faxing

Google...
faxing with asterisk
asterisk fax to email
one of the best is AsterFax



EMANUEL
Posts: 53
Member Since:
2007-06-29
AsterFax is just what I

AsterFax is just what I need. =)

Tried installing it by executing the install.sh file downloaded from http://sourceforge.net/project/showfiles.php?group_id=152880&pack...

Failed.

Tried installing by the rpm package according to http://forums.asteriskit.com.au/index.php/topic,7.0.html

Failed too.

AsterFax website is very confusing, specially the Installation Instructions section.

Have anyone successfully installed AsterFax on Trixbox 2.4? How did you do it?



bubbapcguy
Posts: 3774
Member Since:
2006-06-02
fax

I have not installed on TB but here are my notes for installing on the older asterisk@home

Also of note that the asterfax folks offer a install for about 300.00 bucks

OLD so the version will need to updated
http://umn.dl.sourceforge.net/sourceforge/iaxmodem/iaxmodem-0.2.0...
cd /usr/src
yum -y install ghostscript Xvfb openoffice.org

wget http://www.pbx4pros.com/files/java/jdk-1_5_0_06-linux-i586.rpm
wget http://yum.trixbox.org/centos/4/SRPMS/iaxmodem-0.1.14-1.src.rpm

wget http://umn.dl.sourceforge.net/sourceforge/asterfax/asterfax-1.0-f...
rpm -i jdk-1_5_0_06-linux-i586.rpm
rpm -i iaxmodem-0.1.14-1.src.rpm
rpm -i asterfax-1.0-free.i386.rpm
cd /usr/lib/asterfax

copy file
cp /usr/lib/asterfax/bin/AsterFax.xba /usr/lib/ooo-1.1/share/basic/Tools .

add JAVA to the path under profiles

PATH=$PATH:/usr/java/jdk1.5.0_06/bin

export PATH

run asterfax on second IP
cd /usr/lib/asterfax/
java -jar AsterFax.jar 192.168.10.134 25

/usr/lib/asterfax/config

Install Iaxmodem...
1
cd /usr/lib/asterfax/iaxmodem
tar xzf iaxmodem-0.1.10.tar.gz
cd iaxmodem-0.1.10
./build static
cp iaxmodem /usr/local/bin (or somewhere else on your PATH)
mkdir /etc/iaxmodem
mkdir /var/log/iaxmodem
create /etc/iaxmodem/ttyAsterFax1 with the following contents:

device /dev/ttyAsterFax1
owner uucp:uucp
mode 660
port 4570
refresh 300
server 127.0.0.1
peername asterfaxmodem1
secret itsasecret
codec slinear

Just more notes...........
9. Modify /etc/asterisk/iax.conf adding the following:

[asterfaxmodem1]
type=friend
host=dynamic
secret=itsasecret
context=outbound disallow=all
allow=slinear

10. cd /usr/lib/asterfax/efax
11. tar xzf efax-0.9a-001114.tar.gz
12. make
13. edit the fax script and make any necessary changes (AsterFax takes care of heading and device names)
14. make install

15. Alter the AsterFax configuration to use the EfaxSubmitter. Alter the Submitter entry to be:


au.com.noojee.asterfax.outbound.submitter.EfaxSubmitter
ttyAsterFax,1

The arguments tell the Efax submitter the prefix of the modem names, i.e. ttyAsterFax, and the ID of the first modem, i.e. 1. So the first modem name in this configuration must be ttyAsterFax1, the second must be ttyAsterFax2, etc.

16. Restart AsterFax and reload the Asterisk IAX config.
17. Don't forget to run iaxmodem
18. Find iaxmodem logs in /var/log/iaxmodem.
19. Efax logging is captured in the AsterFax log. When errors occur it is also written out to a file in the working directory. Get the filename from the AsterFax.log.
20. You can configure more than one iaxmodem. You must use a different peer name and port number for each and add a corresponding entry to iax.conf for each new peer. The iaxmodem names must end with an integer value that increments for each modem, sot hte first is ttyAsterFax1 then the second must be ttyAsterFax2 and so on.

The reason this works is because of the shell's command line expansions. Before the shell actually executes any command, it does a number of expansions, including variable expansion.

In this case, it sees the dollar sign, takes the word immediately after it (PATH), and replaces it with the contents of the variable whose name is that word. So essentially, it replaces $PATH with the current contents of the PATH variable.
Thus, if your PATH currently contains /bin:/usr/bin, for example, this command line will, after expansion, read PATH=/bin:/usr/bin:/extra/path.
Then the command is executed and "/bin:/usr/bin:/extra/path" is put into the PATH variable. Thus, /extra/path is now part of the PATH variable.

Of course, this isn't saved - the variables are only kept in memory and are therefore lost when the shell exits.
To make the change persistent, you need to put that command into your ~/.bashrc file.

The ~/.bashrc file is always executed by the shell when it starts, so if you have such a command there, it will always put /extra/path into the PATH variable for every new shell that starts.

The ld.so.conf file serves a completely different purpose. It defines where the dynamic link loader should look for shared objects when ELF programs are started. If a program that you start defines that it wants to link against libc, for example, the dynamic linker looks in all directories specified by /etc/ld.so.conf for a libc. To see what libraries a program wants to link against, run the ldd command on that program. For example, if you run "ldd /bin/ls", you'll see that ls wants to link again libtermcap, libc and ld-linux (ld-linux is the dynamic linker itself). Of course, this differ from system to system. On my workstation, for example, ls wants a lot of libraries (librt, libacl, libc, libpthread, ld-linux and libattr).



rgmhtt
Posts: 303
Member Since:
2006-06-01
Asterfax is dead, it seems. Go with Hylafax

Asterfax seems to have stalled. haven't seen any fixes for all that is broken with 1.1.

Look at threads about Hylafax. See mine on Hylafax and sendmail.
Friday I set up a server to receive efaxs and send out faxes in about 20 min. Straight-forward yum installs, a script or two, and a couple files to edit....



zz000mm
Posts: 12
Member Since:
2006-07-15
Can you install Hylafax on the same machine as Trixbox?

I need to send faxes also. Can I install the Hylafax server on the same box as Trixbox (Asterisk)? Or is that a very silly question?

Kind regards

Brian.



teleweb
Posts: 192
Member Since:
2006-11-27
Noojee Fax

Asterfax is indeed dead, the product was renamed to Noojee Fax:
http://www.asteriskit.com.au/Page/AsterFax

It now uses a commercial fax driver, necessary for reliable operation.
But single line version is still free.

However, development of opensource fax solutions (nojee, hylafax or others) is going very slow, so you have to consider whether it is worth the effort...
I suppose you might be better off spending a few bucks for an Internet fax gateway.



ddwyer
Posts: 401
Member Since:
2006-06-03
i paid for hylafax

i got stuck and paid somebody that is clever to install hylafax and avantfax for me . it works well .
i agree that there is no easy free solution , your have several options:-
[1] if you are a little bit of a linux guru then i would install hylafax/avantfax i think they are great
[2] if you dont know much about linux PAY for somebody to install it and set it up (it is very very complex)
[3] my preferred option would be pay Noojee $300 and install noojee fax there appears to be plenty of support and development.



Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.