<br><br><div><span class="gmail_quote">On 9/27/07, <b class="gmail_sendername">Jonn R Taylor</b> <<a href="mailto:jonnt@taylortelephone.com">jonnt@taylortelephone.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
marco britannio wrote:<br>> Hi all,<br>> I'm trying to setup an asterisk based fax receiving machine.<br>> i'm using asterisk 1.2.18 and app_rxfax with spandsp 0.0.4pre9<br>> I have no problems with a modem-fax, but with the fax machines i have
<br>> tried almost every fax fails, both in sending and receive.<br>> the machines are sending a receiving a lot of faxes every day and<br>> working well, so i think the problem is on the spandsp side.<br>> i have tried almost every spandsp version from
0.0.2 to the current one,<br>> both with and without ECM, but without luck.<br>> has anybody succeeded in receiving faxes with asterisk app_rxfax and<br>> spandsp?<br>><br>> I'm noticicing a lot of different behaviours: sending w ECM gave me an
<br>> OK, and the second half of the page was missing, other faxes fail with<br>> Sep 26 17:26:18 DEBUG[4741] app_rxfax.c:<br>> ==============================================================================<br>> Sep 26 17:26:18 DEBUG[4741] app_rxfax.c: Fax receive not successful -
<br>> result (11) Unexpected message received.<br>> Sep 26 17:26:18 DEBUG[4741] app_rxfax.c:<br>> ==============================================================================<br>><br>><br>> can anybody help me?
<br>> thank you in advance,<br>><br>><br>> marco<br>><br>><br>> ------------------------------------------------------------------------<br>><br>> _______________________________________________
<br>><br>> Sign up now for AstriCon 2007! September 25-28th. <a href="http://www.astricon.net/">http://www.astricon.net/</a><br>><br>> --Bandwidth and Colocation Provided by <a href="http://www.api-digital.com--">
http://www.api-digital.com--</a><br>><br>> asterisk-users mailing list<br>> To UNSUBSCRIBE or update options visit:<br>> <a href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users
</a><br><br>Marco,<br><br>First off, do not use any version over 0.0.3. I am using 0.0.3 on centos<br>4.5, asterisk 1.2.24 and freepbx 2.3 and it is working very well. One<br>very important thing to keep in mind is that faxing over voip will only
<br>work reliably with ulaw or alaw and your internet connection MUST be<br>able to sustain a constant data stream with low jitter. If your<br>interested I have a shell script to install asterisk 1.2.24 and<br>freepbx-2.3
with rxfax and txfax on centos 4 and working on centos 5.<br><br>Jonn<br><br><a href="http://jonnt.users.taylortelephone.com/asterisk/centos-asterisk-install.sh">http://jonnt.users.taylortelephone.com/asterisk/centos-asterisk-install.sh
</a><br>and hylafax / iaxmodem<br><a href="http://jonnt.users.taylortelephone.com/asterisk/">http://jonnt.users.taylortelephone.com/asterisk/</a><br><br><br>_______________________________________________<br><br>Sign up now for AstriCon 2007! September 25-28th.
<a href="http://www.astricon.net/">http://www.astricon.net/</a><br><br>--Bandwidth and Colocation Provided by <a href="http://www.api-digital.com--">http://www.api-digital.com--</a><br><br>asterisk-users mailing list<br>To UNSUBSCRIBE or update options visit:
<br> <a href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></blockquote></div><br>hi john,<br>thank you for your reply.<br>I've installed the configuration that you suggested (asterisk
1.2.24, spandsp 0.0.3), but with no luck: I still cannot receive faxes.<br>Please note that I am not using T38: I am receiving faxes with app_rxfax and storing them into a dir on the machine.<br>I have attached an isdn trunk to the card and I am trying to receive the faxes straight from the trunk.
<br>When receiving faxes without ecm, the sending fax machine completes with an error, and this is the log I have in asterisk:<br> Sep 27 11:54:46 DEBUG[8783] app_rxfax.c: FLOW FAX Set rx type 0<br>Sep 27 11:54:46 DEBUG[8783] app_rxfax.c: FLOW FAX Set tx type 4
<br>Sep 27 11:54:48 DEBUG[8783] app_rxfax.c: FLOW FAX Set rx type 4<br>Sep 27 11:54:48 DEBUG[8783] app_rxfax.c: FLOW FAX Set tx type 0<br>Sep 27 11:54:50 DEBUG[8783] app_rxfax.c: FLOW FAX Set rx type 8<br>Sep 27 11:54:50 DEBUG[8783] app_rxfax.c: FLOW FAX Set tx type 0
<br>Sep 27 11:54:50 DEBUG[8783] app_rxfax.c: FLOW FAX Switching from V.29 + V.21 to V.29 (-15.04dBm0)<br>Sep 27 11:54:52 DEBUG[8783] app_rxfax.c: FLOW FAX Set rx type 0<br>Sep 27 11:54:52 DEBUG[8783] app_rxfax.c: FLOW FAX Set tx type 4
<br>Sep 27 11:54:53 DEBUG[8783] app_rxfax.c: FLOW FAX Set rx type 8<br>Sep 27 11:54:53 DEBUG[8783] app_rxfax.c: FLOW FAX Set tx type 0<br>Sep 27 11:54:53 DEBUG[8783] app_rxfax.c: FLOW FAX Switching from V.29 + V.21 to V.29
(-17.87dBm0)<br>Sep 27 11:55:17 DEBUG[8783] app_rxfax.c: FLOW FAX Set rx type 4<br>Sep 27 11:55:17 DEBUG[8783] app_rxfax.c: FLOW FAX Set tx type 0<br>Sep 27 11:55:19 DEBUG[8783] app_rxfax.c: ==============================================================================
<br>Sep 27 11:55:19 DEBUG[8783] app_rxfax.c: Pages transferred: 0<br>Sep 27 11:55:19 DEBUG[8783] app_rxfax.c: Image size: 1728 x 540<br>Sep 27 11:55:19 DEBUG[8783] app_rxfax.c: Image resolution 8037 x 3850<br>
Sep 27 11:55:19 DEBUG[8783] app_rxfax.c: Transfer Rate: 9600<br>Sep 27 11:55:19 DEBUG[8783] app_rxfax.c: Bad rows 50<br>Sep 27 11:55:19 DEBUG[8783] app_rxfax.c: Longest bad row run 10<br>Sep 27 11:55:19 DEBUG[8783] app_rxfax.c: Compression type 2
<br>Sep 27 11:55:19 DEBUG[8783] app_rxfax.c: Image size (bytes) 116841<br>Sep 27 11:55:19 DEBUG[8783] app_rxfax.c: ==============================================================================<br>Sep 27 11:55:19 DEBUG[8783] app_rxfax.c: FLOW FAX Set rx type 0
<br>Sep 27 11:55:19 DEBUG[8783] app_rxfax.c: FLOW FAX Set tx type 4<br>Sep 27 11:55:20 DEBUG[8783] app_rxfax.c: FLOW FAX Set rx type 0<br>Sep 27 11:55:20 DEBUG[8783] app_rxfax.c: FLOW FAX Set tx type 1<br>Sep 27 11:55:20 DEBUG[8783] app_rxfax.c: ==============================================================================
<br>Sep 27 11:55:20 DEBUG[8783] app_rxfax.c: Fax successfully received.<br>Sep 27 11:55:20 DEBUG[8783] app_rxfax.c: Remote station id: 0103747861<br>Sep 27 11:55:20 DEBUG[8783] app_rxfax.c: Local station id:<br>Sep 27 11:55:20 DEBUG[8783] app_rxfax.c: Pages transferred: 0
<br>Sep 27 11:55:20 DEBUG[8783] app_rxfax.c: Image resolution: 8037 x 3850<br>Sep 27 11:55:20 DEBUG[8783] app_rxfax.c: Transfer Rate: 9600<br>Sep 27 11:55:20 DEBUG[8783] app_rxfax.c: ==============================================================================
<br>Sep 27 11:55:20 DEBUG[8783] app_rxfax.c: FLOW FAX Set rx type 13<br>Sep 27 11:55:20 DEBUG[8783] app_rxfax.c: FLOW FAX FAX exchange complete<br>Sep 27 11:55:20 DEBUG[8783] app_rxfax.c: FLOW FAX Set tx type 13<br>Sep 27 11:55:20 DEBUG[8783] app_rxfax.c: FLOW FAX FAX exchange complete
<br><br>although it states successfully received, it creates a tiff 8 bytes long.<br><br>A test enabling ECM gives me the following log:<br><br>after negotiation it starts receiving frames, then, after frame 5:<br>Sep 27 12:13:08 DEBUG[13611] app_rxfax.c: FLOW
T.30 Storing ECM frame 5<br>Sep 27 12:13:08 DEBUG[13611] app_rxfax.c: FLOW T.30 HDLC framing OK in state 10<br>Sep 27 12:13:08 DEBUG[13611] app_rxfax.c: FLOW T.30 HDLC framing OK in state 10<br>Sep 27 12:13:08 DEBUG[13611] app_rxfax.c: FLOW
T.30 HDLC framing OK in state 10<br>Sep 27 12:13:08 DEBUG[13611] app_rxfax.c: FLOW T.30 HDLC framing OK in state 10<br>Sep 27 12:13:08 DEBUG[13611] app_rxfax.c: FLOW T.30 HDLC framing OK in state 10<br>Sep 27 12:13:08 DEBUG[13611] app_rxfax.c: FLOW
T.30 HDLC framing OK in state 10<br>Sep 27 12:13:08 DEBUG[13611] app_rxfax.c: FLOW T.30 HDLC framing OK in state 10<br>Sep 27 12:13:08 DEBUG[13611] app_rxfax.c: FLOW T.30 HDLC framing OK in state 10<br>Sep 27 12:13:08 DEBUG[13611] app_rxfax.c: FLOW
T.30 HDLC framing OK in state 10<br>Sep 27 12:13:08 DEBUG[13611] app_rxfax.c: FLOW T.30 HDLC framing OK in state 10<br>Sep 27 12:13:08 DEBUG[13611] app_rxfax.c: FLOW T.30 HDLC framing OK in state 10<br>Sep 27 12:13:08 DEBUG[13611] app_rxfax.c: FLOW
T.30 HDLC framing OK in state 10<br>Sep 27 12:13:08 DEBUG[13611] app_rxfax.c: FLOW T.30 HDLC framing OK in state 10<br>Sep 27 12:13:08 DEBUG[13611] app_rxfax.c: FLOW T.30 HDLC framing OK in state 10<br>Sep 27 12:13:08 DEBUG[13611] app_rxfax.c: FLOW
T.30 HDLC framing OK in state 10<br>Sep 27 12:13:09 DEBUG[13611] app_rxfax.c: FLOW T.30 Rx: FCD without final frame tag<br>Sep 27 12:13:09 DEBUG[13611] app_rxfax.c: FLOW T.30 Rx: ff 03 06 0a 06 e1 45 37 ec a6 db 1c 08 1f f1 67 [...]
<br>Sep 27 12:13:09 DEBUG[13611] app_rxfax.c: FLOW T.30 Storing image frame 10, length 256<br>Sep 27 12:13:09 DEBUG[13611] app_rxfax.c: FLOW T.30 Storing ECM frame 10<br><br>then it receives all the frames to frame 32, and then
<br><br>Sep 27 12:13:14 DEBUG[13611] app_rxfax.c: FLOW T.30 Storing ECM frame 32<br>Sep 27 12:13:14 DEBUG[13611] app_rxfax.c: FLOW T.30 HDLC framing OK in state 10<br>Sep 27 12:13:14 DEBUG[13611] app_rxfax.c: FLOW T.30 HDLC framing OK in state 10
<br>Sep 27 12:13:14 DEBUG[13611] app_rxfax.c: FLOW T.30 HDLC framing OK in state 10<br>[... more and more HDLC framing OK in state 10]<br>Sep 27 12:13:26 DEBUG[13611] app_rxfax.c: FLOW T.30 HDLC carrier up in state 10<br>
Sep 27 12:13:26 DEBUG[13611] app_rxfax.c: FLOW V.29 Coarse carrier frequency 1850.18<br>Sep 27 12:13:26 DEBUG[13611] app_rxfax.c: FLOW V.29 Training failed (sequence failed)<br>Sep 27 12:13:26 DEBUG[13611] app_rxfax.c: FLOW
T.30 HDLC carrier training failed in state 10<br>Sep 27 12:13:28 DEBUG[13611] app_rxfax.c: FLOW T.30 HDLC carrier down in state 10<br>Sep 27 12:13:30 DEBUG[13611] app_rxfax.c: FLOW T.30 HDLC carrier up in state 10<br>Sep 27 12:13:31 DEBUG[13611] app_rxfax.c: FLOW
V.29 Coarse carrier frequency 1658.12<br>Sep 27 12:13:31 DEBUG[13611] app_rxfax.c: FLOW V.29 Training failed (sequence failed)<br>Sep 27 12:13:31 DEBUG[13611] app_rxfax.c: FLOW T.30 HDLC carrier training failed in state 10
<br>Sep 27 12:13:32 DEBUG[13611] app_rxfax.c: FLOW T.30 HDLC carrier down in state 10<br>Sep 27 12:13:35 DEBUG[13611] app_rxfax.c: FLOW T.30 HDLC carrier up in state 10<br>Sep 27 12:13:35 DEBUG[13611] app_rxfax.c: FLOW V.29
Coarse carrier frequency 1657.37<br>Sep 27 12:13:35 DEBUG[13611] app_rxfax.c: FLOW V.29 Training failed (sequence failed)<br>Sep 27 12:13:35 DEBUG[13611] app_rxfax.c: FLOW T.30 HDLC carrier training failed in state 10<br>
Sep 27 12:13:36 DEBUG[13611] app_rxfax.c: FLOW T.30 HDLC carrier down in state 10<br>Sep 27 12:13:39 DEBUG[13611] app_rxfax.c: FLOW T.30 HDLC carrier up in state 10<br>Sep 27 12:13:39 DEBUG[13611] app_rxfax.c: FLOW V.29 Coarse carrier frequency
1656.47<br>Sep 27 12:13:39 DEBUG[13611] app_rxfax.c: FLOW V.29 Training failed (sequence failed)<br>Sep 27 12:13:39 DEBUG[13611] app_rxfax.c: FLOW T.30 HDLC carrier training failed in state 10<br>Sep 27 12:13:40 DEBUG[13611] app_rxfax.c: FLOW
T.30 HDLC carrier down in state 10<br>Sep 27 12:13:40 DEBUG[13611] app_rxfax.c: FLOW T.30 HDLC carrier up in state 10<br>Sep 27 12:13:40 DEBUG[13611] app_rxfax.c: FLOW T.30 HDLC carrier down in state 10<br>Sep 27 12:13:41 DEBUG[13611] app_rxfax.c: FLOW
T.30 HDLC carrier up in state 10<br>Sep 27 12:13:41 DEBUG[13611] app_rxfax.c: FLOW V.29 Coarse carrier frequency 1756.76<br>Sep 27 12:13:41 DEBUG[13611] app_rxfax.c: FLOW V.29 Training failed (sequence failed)<br>Sep 27 12:13:41 DEBUG[13611] app_rxfax.c: FLOW
T.30 HDLC carrier training failed in state 10<br>Sep 27 12:13:41 DEBUG[13611] app_rxfax.c: FLOW T.30 HDLC carrier down in state 10<br><br>at this point the sending fax machine hangs up and the call failes.<br>it seems to me that there is some kind of problem (with
T.30?) in spandsp, but I do not understand what it is.<br><br>regards,<br><br>marco<br><br><br>