PlugPBX Forums
May 19, 2012, 02:53:41 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Installing Hylafax  (Read 812 times)
Powersurge
Newbie
*
Posts: 3


Email
« on: March 04, 2011, 05:22:31 PM »

Has anybody been able to successfully get Hylafax to work on the SheevaPlug?  I know that the recommended approach is to use an internet fax service provider, but I don't have the need to do much faxing and paying for a monthly subscription to one of these services doesn't seem like the best approach to me.  I almost figured out how to receive a fax.  I can dial the extension that I set up to receive the fax (i.e. 201) and I hear the fax tones, but the fax doesn't get received.  Here is what is in the Hylafax log:

Code:
Mar 04 17:19:46.39: [ 1660]: SESSION BEGIN 000000011 17143988308
Mar 04 17:19:46.39: [ 1660]: HylaFAX (tm) Version 6.0.5
Mar 04 17:19:46.39: [ 1660]: CallID: "202" "Unique Technologies (Outbound Fax)"$
Mar 04 17:19:46.40: [ 1660]: <-- [4:ATA\r]
Mar 04 17:19:50.12: [ 1660]: --> [7:CONNECT]
Mar 04 17:19:50.12: [ 1660]: ANSWER: FAX CONNECTION  DEVICE '/dev/ttyIAX1'
Mar 04 17:19:50.12: [ 1660]: RECV FAX: begin
Mar 04 17:19:50.12: [ 1660]: <-- data [32]
Mar 04 17:19:50.12: [ 1660]: <-- data [2]
Mar 04 17:19:51.08: [ 1660]: --> [7:CONNECT]
Mar 04 17:19:51.08: [ 1660]: <-- data [23]
Mar 04 17:19:51.08: [ 1660]: <-- data [2]
Mar 04 17:19:51.82: [ 1660]: --> [7:CONNECT]
Mar 04 17:19:51.82: [ 1660]: <-- data [13]
Mar 04 17:19:51.82: [ 1660]: <-- data [2]
Mar 04 17:19:52.40: [ 1660]: --> [2:OK]
Mar 04 17:19:52.40: [ 1660]: <-- [9:AT+FRH=3\r]
Mar 04 17:19:59.40: [ 1660]: --> [0:]
Mar 04 17:19:59.40: [ 1660]: MODEM <Empty line>
Mar 04 17:19:59.40: [ 1660]: --> [0:]
Mar 04 17:19:59.40: [ 1660]: MODEM <Empty line>
Mar 04 17:19:59.40: [ 1660]: <-- data [1]
Mar 04 17:19:59.42: [ 1660]: --> [2:OK]
Mar 04 17:19:59.42: [ 1660]: <-- [9:AT+FRS=7\r]
Mar 04 17:19:59.46: [ 1660]: --> [2:OK]
Mar 04 17:19:59.46: [ 1660]: <-- [9:AT+FTH=3\r]
Mar 04 17:19:59.48: [ 1660]: --> [7:CONNECT]
Mar 04 17:19:59.48: [ 1660]: <-- data [32]
Mar 04 17:19:59.48: [ 1660]: <-- data [2]
Mar 04 17:20:01.26: [ 1660]: --> [7:CONNECT]
Mar 04 17:20:01.26: [ 1660]: <-- data [23]
Mar 04 17:20:01.26: [ 1660]: <-- data [2]
Mar 04 17:20:02.00: [ 1660]: --> [7:CONNECT]
Mar 04 17:20:02.00: [ 1660]: <-- data [13]
Mar 04 17:20:02.00: [ 1660]: <-- data [2]
Mar 04 17:20:02.58: [ 1660]: --> [2:OK]
Mar 04 17:20:02.58: [ 1660]: <-- [9:AT+FRH=3\r]
Mar 04 17:20:09.58: [ 1660]: --> [0:]
Mar 04 17:20:02.58: [ 1660]: <-- [9:AT+FRH=3\r]
Mar 04 17:20:09.58: [ 1660]: --> [0:]
Mar 04 17:20:09.58: [ 1660]: MODEM <Empty line>
Mar 04 17:20:09.58: [ 1660]: <-- data [1]
Mar 04 17:20:09.60: [ 1660]: --> [2:OK]
Mar 04 17:20:09.60: [ 1660]: <-- [9:AT+FRS=7\r]
Mar 04 17:20:09.62: [ 1660]: --> [2:OK]
Mar 04 17:20:09.62: [ 1660]: <-- [9:AT+FTH=3\r]
Mar 04 17:20:09.64: [ 1660]: --> [7:CONNECT]
Mar 04 17:20:09.64: [ 1660]: <-- data [32]
Mar 04 17:20:09.64: [ 1660]: <-- data [2]
Mar 04 17:20:11.42: [ 1660]: --> [7:CONNECT]
Mar 04 17:20:11.42: [ 1660]: <-- data [23]
Mar 04 17:20:11.42: [ 1660]: <-- data [2]
Mar 04 17:20:12.16: [ 1660]: --> [7:CONNECT]
Mar 04 17:20:12.16: [ 1660]: <-- data [13]
Mar 04 17:20:12.16: [ 1660]: <-- data [2]
Mar 04 17:20:12.74: [ 1660]: --> [2:OK]
Mar 04 17:20:12.74: [ 1660]: <-- [9:AT+FRH=3\r]
Mar 04 17:20:12.74: [ 1660]: --> [2:OK]
Mar 04 17:20:12.74: [ 1660]: <-- [9:AT+FRH=3\r]
Mar 04 17:20:19.74: [ 1660]: --> [0:]
Mar 04 17:20:19.74: [ 1660]: MODEM <Empty line>
Mar 04 17:20:19.74: [ 1660]: <-- data [1]
Mar 04 17:20:19.76: [ 1660]: --> [2:OK]
Mar 04 17:20:19.76: [ 1660]: <-- [9:AT+FRS=7\r]
Mar 04 17:20:19.80: [ 1660]: --> [2:OK]
Mar 04 17:20:19.80: [ 1660]: <-- [9:AT+FTH=3\r]
Mar 04 17:20:19.82: [ 1660]: --> [7:CONNECT]
Mar 04 17:20:19.82: [ 1660]: <-- data [32]
Mar 04 17:20:19.82: [ 1660]: <-- data [2]
Mar 04 17:20:21.60: [ 1660]: --> [7:CONNECT]
Mar 04 17:20:21.60: [ 1660]: <-- data [23]
Mar 04 17:20:21.60: [ 1660]: <-- data [2]
Mar 04 17:20:22.34: [ 1660]: --> [7:CONNECT]
Mar 04 17:20:22.34: [ 1660]: <-- data [13]
Mar 04 17:20:22.34: [ 1660]: <-- data [2]
Mar 04 17:20:22.92: [ 1660]: --> [2:OK]
Mar 04 17:20:22.34: [ 1660]: <-- data [2]
Mar 04 17:20:22.92: [ 1660]: --> [2:OK]
Mar 04 17:20:22.92: [ 1660]: <-- [9:AT+FRH=3\r]
Mar 04 17:20:26.04: [ 1660]: --> [10:NO CARRIER]
Mar 04 17:20:26.04: [ 1660]: MODEM No carrier
Mar 04 17:20:26.04: [ 1660]: <-- [9:AT+FRS=7\r]
Mar 04 17:20:26.04: [ 1660]: --> [5:ERROR]
Mar 04 17:20:26.04: [ 1660]: MODEM Command error
Mar 04 17:20:26.04: [ 1660]: Failure to receive silence (synchronization failur$
Mar 04 17:20:26.04: [ 1660]: RECV FAX: Failure to receive silence (synchronizat$
Mar 04 17:20:26.04: [ 1660]: RECV FAX: end
Mar 04 17:20:26.04: [ 1660]: Failure to receive silence (synchronization failur$
Mar 04 17:20:26.04: [ 1660]: SESSION END

In order to get everything set up, I did the following:

Code:
# apt-get install iaxmodem
# nano /etc/iaxmodem/ttyIAX0

device /dev/ttyIAX0
owner uucp:uucp
mode 660
port 4570
refresh 60
server 127.0.0.1
peername 201
secret xxxxxx
cidname IAX Modem 1
cidnumber 201
codec ulaw

# echo "mo00:23:respawn:/usr/sbin/faxgetty ttyIAX0" >> /etc/inittab
# touch /var/log/iaxmodem/ttyIAX0
# touch /var/log/iaxmodem/iaxmodem
# reboot
# apt-get install hylafax-server
# faxsetup (Accept all defaults except use ttyIAX0 for the modem device)
# mkdir /etc/hylafax/etc
# nano /etc/hylafax/etc/FaxDispatch

SENDTO=FaxMaster;
FILETYPE=pdf;
SENDTO=user@domain.com (I replaced this with my email address of course!)

#reboot

In FreePBX, I created an IAX Extension for the fax using:

secret: xxxxxx
notransfer: yes
context: from-internal
host: dynamic
type: friend
port: 4570
qualify: yes
disallow: all
allow: ulaw
dial: IAX2/201
deny: 0.0.0.0/0.0.0.0
permit: 0.0.0.0/0.0.0.0
requirecalltoken: no

Could anybody figure out what I am missing or doing wrong here and get me pointed in the right direction?  Thanks!  Wink
« Last Edit: March 04, 2011, 05:24:08 PM by Powersurge » Logged
Powersurge
Newbie
*
Posts: 3


Email
« Reply #1 on: March 09, 2011, 09:02:18 PM »

Ok, I got it to work by following the instructions here:

http://www.the-asterisk-book.com/unstable/faxserver-mit-iaxmodem-und-hylafax.html

I guess the problem I was having is that I wasn't compiling IAXmodem from source.  After compiling version 1.2.0 of IAXmodem from source, everything is working perfectly now. Cheesy
Logged
PlugPBX Admin
Administrator
Sr. Member
*****
Posts: 426



« Reply #2 on: March 10, 2011, 05:18:07 AM »

Wicked. Thanks for the follow up posting!

IF you are using this without issues, please share your provider, codecs and other details so others can learn what combination's work.

I know that you have to use PCM style codecs like G711 with modem signals, as any form of advanced compression codec like G729 and the like will mangle modem modulations and not work.
« Last Edit: March 10, 2011, 05:19:42 AM by PlugPBX Admin » Logged

-Greg
Powersurge
Newbie
*
Posts: 3


Email
« Reply #3 on: March 10, 2011, 12:43:37 PM »

Well, I haven't had much time to really test it out yet so I might run into issues down the road... but I read somewhere that ulaw is the preferred codec for faxing in the states and so that is the codec that I am using in conjunction with my internet access provided by DSLextreme.  I'll post on this thread if I run into any further issues in regards to this.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.13 | SMF © 2006-2011, Simple Machines LLC Install SimpleMachinesForum web hosting Valid XHTML 1.0! Valid CSS!