Koozali.org: home of the SME Server

Sail, hylafax and iaxmodem

Offline kb-ohnemus

  • *****
  • 154
  • +0/-0
    • http://www.kb-ohnemus.de
Sail, hylafax and iaxmodem
« on: April 23, 2007, 10:52:43 PM »
Hi,

I've installed Sail (which meanwhile works great) and hylafax and tried to tie them together using iaxmodem along this howto: http://www.das-asterisk-buch.de/stable/installation-iaxmodem.html

So when receiving a fax iaxmodem answers and hylafax starts receiving, but some time later the connection is dropped, the log says "no carrier".

Here's a log of hylafax, maybe someone here has some more understanding of codecs than I do:

Code: [Select]

[root@server2 config]# tail -f /var/spool/hylafax/log/c000000019
Apr 23 22:37:49.54: [ 6454]: --> [7:CONNECT]
Apr 23 22:37:49.54: [ 6454]: <-- HDLC<23:FF C0 02 CE AE B6 A6 76 16 F2 FA 36 A6 AE 76 86 B2 04 04 04 04 04 04>
Apr 23 22:37:49.54: [ 6454]: <-- data [23]
Apr 23 22:37:49.54: [ 6454]: <-- data [2]
Apr 23 22:37:50.28: [ 6454]: --> [7:CONNECT]
Apr 23 22:37:50.28: [ 6454]: <-- HDLC<13:FF C8 01 00 73 5F 23 01 FB C1 01 01 18>
Apr 23 22:37:50.28: [ 6454]: <-- data [13]
Apr 23 22:37:50.28: [ 6454]: <-- data [2]
Apr 23 22:37:50.86: [ 6454]: --> [2:OK]
Apr 23 22:37:50.86: [ 6454]: <-- [9:AT+FRH=3\r]
Apr 23 22:37:57.86: [ 6454]: --> [0:]
Apr 23 22:37:57.86: [ 6454]: MODEM <Empty line>
Apr 23 22:37:57.86: [ 6454]: MODEM TIMEOUT: waiting for v.21 carrier
Apr 23 22:37:57.86: [ 6454]: <-- data [1]
Apr 23 22:37:57.86: [ 6454]: --> [2:OK]
Apr 23 22:37:57.86: [ 6454]: DELAY 1500 ms
Apr 23 22:37:59.36: [ 6454]: <-- [9:AT+FTH=3\r]
Apr 23 22:37:59.38: [ 6454]: --> [7:CONNECT]
Apr 23 22:37:59.38: [ 6454]: <-- HDLC<32:FF C0 04 AD 00 55 12 9E 36 86 62 82 1A 04 14 2E B6 94 04 6A A6 4E CE 96 F6 76 04 2C 74 4C 74 AC>
Apr 23 22:37:59.38: [ 6454]: <-- data [32]
Apr 23 22:37:59.38: [ 6454]: <-- data [2]
Apr 23 22:38:01.16: [ 6454]: --> [7:CONNECT]
Apr 23 22:38:01.16: [ 6454]: <-- HDLC<23:FF C0 02 CE AE B6 A6 76 16 F2 FA 36 A6 AE 76 86 B2 04 04 04 04 04 04>
Apr 23 22:38:01.16: [ 6454]: <-- data [23]
Apr 23 22:38:01.16: [ 6454]: <-- data [2]
Apr 23 22:38:01.90: [ 6454]: --> [7:CONNECT]
Apr 23 22:38:01.90: [ 6454]: <-- HDLC<13:FF C8 01 00 73 5F 23 01 FB C1 01 01 18>
Apr 23 22:38:01.90: [ 6454]: <-- data [13]
Apr 23 22:38:01.90: [ 6454]: <-- data [2]
Apr 23 22:38:02.48: [ 6454]: --> [2:OK]
Apr 23 22:38:02.48: [ 6454]: <-- [9:AT+FRH=3\r]
Apr 23 22:38:09.48: [ 6454]: --> [0:]
Apr 23 22:38:09.48: [ 6454]: MODEM <Empty line>
Apr 23 22:38:09.48: [ 6454]: MODEM TIMEOUT: waiting for v.21 carrier
Apr 23 22:38:09.48: [ 6454]: <-- data [1]
Apr 23 22:38:09.48: [ 6454]: --> [2:OK]
Apr 23 22:38:09.48: [ 6454]: DELAY 1500 ms
Apr 23 22:38:10.98: [ 6454]: <-- [9:AT+FTH=3\r]
Apr 23 22:38:11.00: [ 6454]: --> [7:CONNECT]
Apr 23 22:38:11.00: [ 6454]: <-- HDLC<32:FF C0 04 AD 00 55 12 9E 36 86 62 82 1A 04 14 2E B6 94 04 6A A6 4E CE 96 F6 76 04 2C 74 4C 74 AC>
Apr 23 22:38:11.00: [ 6454]: <-- data [32]
Apr 23 22:38:11.00: [ 6454]: <-- data [2]
Apr 23 22:38:12.78: [ 6454]: --> [7:CONNECT]
Apr 23 22:38:12.78: [ 6454]: <-- HDLC<23:FF C0 02 CE AE B6 A6 76 16 F2 FA 36 A6 AE 76 86 B2 04 04 04 04 04 04>
Apr 23 22:38:12.78: [ 6454]: <-- data [23]
Apr 23 22:38:12.78: [ 6454]: <-- data [2]
Apr 23 22:38:13.52: [ 6454]: --> [7:CONNECT]
Apr 23 22:38:13.52: [ 6454]: <-- HDLC<13:FF C8 01 00 73 5F 23 01 FB C1 01 01 18>
Apr 23 22:38:13.52: [ 6454]: <-- data [13]
Apr 23 22:38:13.52: [ 6454]: <-- data [2]
Apr 23 22:38:14.10: [ 6454]: --> [2:OK]
Apr 23 22:38:14.10: [ 6454]: <-- [9:AT+FRH=3\r]
Apr 23 22:38:15.04: [ 6454]: --> [2:]
Apr 23 22:38:15.04: [ 6454]: --> [10:NO CARRIER]
Apr 23 22:38:15.04: [ 6454]: MODEM No carrier
Apr 23 22:38:15.04: [ 6454]: RECV FAX: No answer (T.30 T1 timeout)
Apr 23 22:38:15.04: [ 6454]: RECV FAX: end
Apr 23 22:38:15.04: [ 6454]: SESSION END


I haven't tried to send a fax yet so no idea if that works.

Manuel

Offline del

  • *
  • 765
  • +0/-0
Sail, hylafax and iaxmodem
« Reply #1 on: April 24, 2007, 03:46:06 AM »
Hi,

This sounds interesting :D  Is there an English howto? Your link appears to be only in German :?  I have Hylafax and Sail running together and I am using a Robotics external modem connected via an SPA2000 and I can send and receive faxes using a VoIP SIP line, I don't have any PSTN lines :D Was it easy to install IAXmodem? Do you have any instructions or advice?

Regards,
Del
If at first you don't succeed, then sky-diving is not for you!
"Life is like a coin. You can spend it anyway you wish, but you can only spend it once." --Author Unknown

Offline kb-ohnemus

  • *****
  • 154
  • +0/-0
    • http://www.kb-ohnemus.de
Sail, hylafax and iaxmodem
« Reply #2 on: April 24, 2007, 07:19:20 AM »
Hi,

generally it was easy, but it doesn't work so far  :D . I think if you just do the things written in the green boxes of the german howto you get there. Otherwise I can translate.

Or try this one: http://translate.google.com/translate?u=http%3A%2F%2Fwww.das-asterisk-buch.de%2Fstable%2Finstallation-iaxmodem.html&langpair=de%7Cen&hl=de&ie=UTF-8&oe=UTF-8&prev=%2Flanguage_tools

There's also this posting http://sourceforge.net/forum/forum.php?thread_id=1524526&forum_id=497501 on the iaxmodem-forum which says this is a problem with jitter but I have no real idea what to do against it.

I also have a PAP2 and the second faxmachine I use for testing is connected to that. This machine also does not always work correct, maybe this is also part of the problem. I could also try to connect a Modem to the PAP2 and hylafax and try again.

Offline kb-ohnemus

  • *****
  • 154
  • +0/-0
    • http://www.kb-ohnemus.de
Sail, hylafax and iaxmodem
« Reply #3 on: April 24, 2007, 07:40:40 AM »
Hi again,

I have done the following:

Dialing internally, just VOIP, like:
Code: [Select]

Standard-faxmachine --> Linksys PAP2 --> Asterisk/Sail --> IAXmodem --> Hylafax

I get the T.30 T1 timeout error

So I called Hylafax/Myself using my HFC-Card and the German telecom net:
Code: [Select]

Standard-faxmachine --> Linksys PAP2 --> Asterisk/Sail --> ISDN-HFC --> German Telecom ISDN --> ISDN-HFC --> Asterisk/Sail --> IAXmodem --> Hylafax

and this does work.

So trying to fax just using VOIP does not work (I've read this many times) but using a combination of VOIP and ISDN does?

Offline del

  • *
  • 765
  • +0/-0
Sail, hylafax and iaxmodem
« Reply #4 on: April 24, 2007, 02:31:42 PM »
Hi,

I could not get my standard fax machine to send or receive using VoIP either, but the modem works fine. You will find this hard to believe, I did when I read it on a Linksys forum, but here in the US we have two types of RJ11 modem/phone leads one has 4 wires connected and the other has 2 wires connected, faxing over VoIP lines will not work with the 4 wire one :shock: and this was my problem at the first attempt :D I have tested both types and it doesn't work with the 4 wire one (or at least not for me). I am assuming that you are located in Germany so I don't know how your RJ11 cables are wired.  I believe my problem with the standard fax machine was that the SP2000 (or PAP2) times out before the fax finished dialing, I have the same problem with a phone connected to the other port if I don't start dialing quick enough. Selintra thinks there is probably a setting in the ATA but I never bothered trying to find it. If you do please let me know :D

Regards,
Del
If at first you don't succeed, then sky-diving is not for you!
"Life is like a coin. You can spend it anyway you wish, but you can only spend it once." --Author Unknown

Offline kb-ohnemus

  • *****
  • 154
  • +0/-0
    • http://www.kb-ohnemus.de
Sail, hylafax and iaxmodem
« Reply #5 on: April 25, 2007, 04:17:37 PM »
Hi del,

I've had a look and my RJ11 also has four wires. But I know I have other cables with only two wires. So I'll do a bit of testing I think.

I had timeout-problems with my faxmachine too. My box is called Linksys PAP2, if you think SP2000 is the same go to Admin; Advanced; Regional and set Interdigit short timer to a higher value. Default was 3, 5 did it for me.

Offline del

  • *
  • 765
  • +0/-0
Sail, hylafax and iaxmodem
« Reply #6 on: April 25, 2007, 11:32:49 PM »
Hi kb-ohnemus,

I will try that setting and see if it works for me, I have tested the 4 wire again today and it doesn't send the fax! But it goes everytime with the 2 wire lead :shock:  I have tested these leads on a cableman tester and the 4 wire comes up as "non-parallel" or crossed over in layman's terms :D so maybe this is the difference :wink:  I hope it works for you.

Regards,
Del
If at first you don't succeed, then sky-diving is not for you!
"Life is like a coin. You can spend it anyway you wish, but you can only spend it once." --Author Unknown

Offline Confucius

  • *****
  • 235
  • +0/-0
Sail, hylafax and iaxmodem
« Reply #7 on: April 26, 2007, 12:57:08 AM »
my 2 cents

AFIK is in the whole of europe a 2 wire communication over POTS aswell as ISDN. For Germany it's certainly done with 2 wires. The 2 wires are always (suppose to be) the middle 2 wires in the RJ11.

Offline kb-ohnemus

  • *****
  • 154
  • +0/-0
    • http://www.kb-ohnemus.de
Sail, hylafax and iaxmodem
« Reply #8 on: April 26, 2007, 10:25:35 PM »
I haven't tested the wires yet, but I found out you can create multiple iaxmodems with different DID-numbers and mail the faxes to different users so I created three of them. I don't know if there's a limit. I like this  :D