Elastix + Hylafax + SPA 3102

iplestina

Joined
Sep 2, 2009
Messages
5
Likes
0
Points
0
#1
Hi,

I have the following setup: Elastix--->SIP trunk--->SPA 3102--->PSTN. Voice communication works fine in both directions. However, I'm having trouble getting fax through.

I've setup a IAX2 extension for virtual fax, and actually I can connect to remote fax machine fine but transmission dies with no error message:
Code:
[root@elastix log]# tail -f c000000034
Sep 02 11:12:56.29: [ 7991]: SESSION BEGIN 000000034 38521468406
Sep 02 11:12:56.29: [ 7991]: HylaFAX (tm) Version 4.3.3
Sep 02 11:12:56.29: [ 7991]: SEND FAX: JOB 11 DEST 468406 COMMID 000000034 DEVICE '/dev/ttyIAX1' FROM 'JHylafax <xxx.xxxxxx@xxx.xxx>' USER faxuser
Sep 02 11:12:56.29: [ 7991]: STATE CHANGE: RUNNING -> SENDING
Sep 02 11:12:56.29: [ 7991]: <-- [12:AT+FCLASS=1\r]
Sep 02 11:12:56.29: [ 7991]: --> [2]
Sep 02 11:12:56.29: [ 7991]: MODEM set XON/XOFF/FLUSH: input ignored, output disabled
Sep 02 11:12:56.29: [ 7991]: DIAL 468406
Sep 02 11:12:56.29: [ 7991]: <-- [11:ATDT468406\r]
Sep 02 11:13:09.62: [ 7991]: --> [7]
Sep 02 11:13:11.14: [ 7991]: --> HDLC<25:FF C0 02 6C 0C 2C 1C 6C 2C 8C 4C AC 1C CC 04 04 04 04 04 04 04 04 04 07 16>
Sep 02 11:13:11.14: [ 7991]: --> [2]
Sep 02 11:13:11.14: [ 7991]: REMOTE CSI "38521468406"
Sep 02 11:13:11.14: [ 7991]: <-- [9:AT+FRH=3\r]
Sep 02 11:13:11.48: [ 7991]: --> [7]
Sep 02 11:13:11.48: [ 7991]: --> HDLC<11:FF C8 01 04 77 15 23 01 88 E1 6C>
Sep 02 11:13:11.52: [ 7991]: --> [2]
Sep 02 11:13:11.52: [ 7991]: REMOTE best rate 33600 bit/s
Sep 02 11:13:11.52: [ 7991]: REMOTE max A4 page width (215 mm)
Sep 02 11:13:11.52: [ 7991]: REMOTE max unlimited page length
Sep 02 11:13:11.52: [ 7991]: REMOTE best vres 15.4 line/mm
Sep 02 11:13:11.52: [ 7991]: REMOTE format support: MH, MR, MMR
Sep 02 11:13:11.52: [ 7991]: REMOTE supports T.30 Annex A, 256-byte ECM
Sep 02 11:13:11.52: [ 7991]: REMOTE best 10 ms/scanline
Sep 02 11:13:11.52: [ 7991]: USE 2400 bit/s
Sep 02 11:13:11.52: [ 7991]: USE error correction mode
Sep 02 11:13:11.52: [ 7991]: <-- [9:AT+FTH=3\r]
Sep 02 11:13:11.52: [ 7991]: --> [7]
Sep 02 11:13:11.52: [ 7991]: <-- HDLC<3:FF C8 DF>
Sep 02 11:13:11.52: [ 7991]: <-- data [3]
Sep 02 11:13:11.52: [ 7991]: <-- data [2]
Sep 02 11:13:12.70: [ 7991]: --> [2]
Sep 02 11:13:12.70: [ 7991]: MODEM input buffering enabled
Sep 02 11:13:12.70: [ 7991]: <-- [5:ATH0\r]
Sep 02 11:13:12.80: [ 7991]: --> [2]
Sep 02 11:13:12.80: [ 7991]: MODEM set DTR OFF
Sep 02 11:13:12.80: [ 7991]: MODEM set baud rate: 0 baud (flow control unchanged)
Sep 02 11:13:12.80: [ 7991]: STATE CHANGE: SENDING -> MODEMWAIT (timeout 5)
Sep 02 11:13:12.80: [ 7991]: SESSION END
Earlier I managed to send/receive faxes normally using a MultiTech fax modem but it bypassed both asterisk and SPA. I'm pretty sure my concept is terribly wrong somewhere (HDLC in log seems FoIP related to me) but my ignorance in this area is a blocker. Can someone give me some conceptual hints on how to get faxes through asterisk and SPA 3102 to PSTN?

Thanks
 

iplestina

Joined
Sep 2, 2009
Messages
5
Likes
0
Points
0
#2
OK, I think I understand the problem now. I believe since asterisk is connected to SPA 3102 via SIP that asterisk forwards the fax over IP.

Can you confirm that if I had an internal VoIP/analog PCI card asterisk would talk with a remote analog fax machine?
 

zaritronic

Joined
Apr 29, 2009
Messages
54
Likes
0
Points
0
#3

zaritronic

Joined
Apr 29, 2009
Messages
54
Likes
0
Points
0

iplestina

Joined
Sep 2, 2009
Messages
5
Likes
0
Points
0
#5
All of those scenarios are for the fax machine attached to SPA. I'm pretty much sure it should work as described...but...I fail to see how to send it out via PSTN when Hylafax is involved. Ultimately what I want is an email2fax gateway without using FoIP. Can someone advise on required setup?
 

zaritronic

Joined
Apr 29, 2009
Messages
54
Likes
0
Points
0
#6
The referred articles, especially the VoipSpeak one, are relevant because they help setup the FXO port of the SPA-3102 as a proper trunk. Here are the steps as I see them:

1) create the FAX IAX extension (assign an extension number + the secret all numeric),
2) create a virtual fax + associate it to the just created extension,
3) set-up the SPA-3102 FXO port as a trunk following the VoipSpeak article,
4) associate to it an inbound route (generic or with DID) + set the field FAX EXTENSION to your
FAX extension, specify the fax mail you want to receive the FAX into + set the FAX DETECTION TYPE to ZAPTEL,

Now you should be able to receive FAXes via the specified e-mail.
To send FAX install Winprint HylaFAX on all the clients + configure.
 

iplestina

Joined
Sep 2, 2009
Messages
5
Likes
0
Points
0
#7
I set it mostly like in the article you mention. Only difference is authentication which I enabled and it is irrelevant. Like I said, calling remote phones/gsm works fine but when sending fax I always get the log as shown in my first post. My next step is to get another hylafax+faxmodem setup on a remote analog line so I can see the remote server log (on monday). If you have one available already you can PM the number I can try to send the fax to and I could do it today so you can see/post the log...

And I repeat again, my SPA is connected to POTS, NOT to a VoIP provider.
 

zaritronic

Joined
Apr 29, 2009
Messages
54
Likes
0
Points
0
#8
Do you know what, I can not find how to send a PM. Looked around, searched with google, nothing.
So if you tell me how, I'll send you the number right away.
 

iplestina

Joined
Sep 2, 2009
Messages
5
Likes
0
Points
0
#9
indeed...strange :)

[edit] got the number...
 

Members online

No members online now.

Latest posts

Forum statistics

Threads
30,901
Messages
130,885
Members
17,561
Latest member
marouen
Top