Re: [Asterisk-Users] spandsp and app_rxfax (alternative topic:t38modem)
I have the same problem and thought I would wait for someone else to post... (just kidding Ryan) I have used an analog trunk (FXO) AND a station (FXS) both on the same card. I thought that it might be related to the hardware so I hooked up an old Brother Intellifax 9000 on the station port. Both of these attempts had the same problem. It is my speculation that the 'cutoff' problem was related to some type of 'line noise' and that others successfully using the spandsp code _might_ be using T1/E1 rather than analog lines (1FL) but when I started testing using an old Fax machine plugged into a station port with a six foot RJ11 on either end, I realized that this setup really shouldn't be introducing much noise (if any) so I am lost. It happens approximately half way through EVERY fax I attempt regardless of sending machine (I tried Dialogic and some modems) or port (FXO or FXS) so I just gave up on it. (It should be noted that Asterisk 1.0.3 runs on FC3 with libtiff-3.6.1-8.fc3/kernel-2.6.9-1.724_FC3 otherwise) There IS a link (search spandsp cutoff fax on Google) to a similar problem that was apparently fixed with version 0.0.1(h). I assumed that the fix was already applied to the 0.0.2pre6 version. I thought I would wait until another version of either * OR spandsp was posted but if anyone else has any suggestions (or can corroborate the Digital vs. Analog theory) I would love to hear from them otherwise I will test this on another PC when I get the chance. Just thought I would chime in ;-) Jeff - Original Message - From: Ryan [EMAIL PROTECTED] To: Asterisk Users Mailing List - Non-Commercial Discussion asterisk-users@lists.digium.com Sent: Friday, January 07, 2005 11:13 AM Subject: Re: [Asterisk-Users] spandsp and app_rxfax (alternative topic:t38modem) H. Did I just ask in the wrong forum, or has _nobody_ experienced image corruption using app_rxfax that was NOT due to using the wrong version of libtiff? snip ___ Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [Asterisk-Users] spandsp and app_rxfax (alternative topic:t38modem)
Seems to be correct, or at least image corruption from a really crappy fax reception. I know I've been receiving between 30-50 faxes a day with app_rxfax without issue. What versions of everything are you using? Using PRI? libtiff? spandsp? asterisk? diagram? I can't get any faxes via rxfax. -Matthew ___ Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [Asterisk-Users] spandsp and app_rxfax (alternative topic:t38modem)
im using libtiff-3-7 and im getting corruption constatnly. I posted to Steve's bug site but I've not heard from him in over a month. i guess he's still on vacation. -Matthew - Original Message - From: Ryan [EMAIL PROTECTED] To: Asterisk Users Mailing List - Non-Commercial Discussion asterisk-users@lists.digium.com Sent: Friday, January 07, 2005 10:13 AM Subject: Re: [Asterisk-Users] spandsp and app_rxfax (alternative topic:t38modem) H. Did I just ask in the wrong forum, or has _nobody_ experienced image corruption using app_rxfax that was NOT due to using the wrong version of libtiff? If that's the case, then my secondary approach is going to have to be: PSTN - Asterisk + chan_h323 - t38modem + Hylafax Is there anybody that could help me with either of these solutions? A thousand thank yous in advance, Ryan VanMiddlesworth On Thursday, January 6th, I wrote: I've been pulling my hair out trying to get Asterisk to receive and decode a fax using spandsp and app_rxfax. It seems like it should be working. The fax machine on the other end connects and Asterisk reports a fax coming in. But when it's done all I have is a 2 or 3 KB TIF (see attachment). The console activity looks completely normal: -- Starting simple switch on 'Zap/3-1' -- Executing SetVar(Zap/3-1, FAXFILE=/var/spool/asterisk/fax/1105043880.0.tif) in new stack -- Executing RxFAX(Zap/3-1, /var/spool/asterisk/fax/1105043880.0.tif) in new stack -- Hungup 'Zap/3-1' And there are no errors in the log file. Here's my config: Wildcard TDM40B hardware (Zaptel) asterisk-1.0.2 spandsp-0.0.2pre6 libtiff-3.6.1 (with the fax fix patches) (also tried libtiff-3.6.0 and libtiff-3.5.7) I've tried multiple sending fax machines and get the same effect. Any tips on getting this setup working? I've run out of ideas. Alternately, I'd also be willing to offload the DSP processing to a HylaFAX machine using some sort of software fax driver. I tinkered with t38modem and chan_h323, but couldn't get it to do anything once the HylaFAX machine answered. So if anybody has any experience with that, I'd be interested. Thanks in advance, Ryan VanMiddlesworth ___ Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ___ Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [Asterisk-Users] spandsp and app_rxfax (alternative topic:t38modem)
On 2005.01.07 09:42 Jeff wrote: It is my speculation that the 'cutoff' problem was related to some type of 'line noise' and that others successfully using the spandsp code _might_ be using T1/E1 rather than analog lines (1FL) but when I started testing using an old Fax machine plugged into a station port with a six foot RJ11 on either end, I realized that this setup really shouldn't be introducing much noise (if any) so I am lost. It happens approximately half way through EVERY fax I attempt regardless of sending machine (I tried Dialogic and some modems) or port (FXO or FXS) so I just gave up on it. Since spandsp doesn't use ECM, what I'm about to say doesn't apply to spandsp. If you receive truncated (versus corrupted) fax images from spandsp, then I'm not sure what the problem would be. What I'm about to say only applies to ECM-enabled fax sessions such as usually will happen with most modern fax machines and modern HylaFAX. Truncated fax images usually only occur in an ECM-enabled fax session when the total image is larger than 64KB. With images larger than 64KB it is required that the image data be broken up into 64KB blocks and each block is transmitted separately. In the fax protocol this essentially works out to the same thing as sending a multipage fax except that the in-between-blocks signals indicate a multiple-block scenario rather than a multiple-page one. The timing sensitivities between pages and between blocks are crucial. A 20 ms lag at this point will most certainly terminate the fax session. Most pauses between signal exchanges during faxing are 75 ms +/- 20 ms. This means that most senders will wait pause for what it believes to be exactly 75 ms, with the buffer to compensate for any lags incurred by the telco or other timing issues. Consequently, if Asterisk (or the VoIP configuration) introduces a 20 ms lag at this point, then the timing tolerances will be exceeded, and a fax machine following the specifications will terminate the fax session after a few attempts to recover from this. So, you end up with a page of image data missing one or more blocks, and this produces a truncated (not corrupted) fax image. Now, depending on other factors the very end of that image data could, in theory, also look corrupted. But, most ECM sessions are going to use MMR compression, meaning that any data corruption (only possible in that last block received) would also likely truncate the image at that point (since any data after the point of corruption becomes meaningless). As far as I've been able to determine, there's nothing that can be done about this working with analog fax equipment behind Asterisk. In order for things to work correctly here, either Asterisk needs to support T.38 (FoIP specification), or Asterisk needs to produce pseudo-modem interfaces for fax packages like HylaFAX. I think the spandsp author is working on both of these over time. Lee. ___ Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [Asterisk-Users] spandsp and app_rxfax (alternative topic:t38modem)
On January 7, 2005 12:26 pm, Matthew Boehm wrote: Seems to be correct, or at least image corruption from a really crappy fax reception. I know I've been receiving between 30-50 faxes a day with app_rxfax without issue. What versions of everything are you using? Using PRI? libtiff? spandsp? asterisk? diagram? I can't get any faxes via rxfax. Slackware 10.0 system libtiff NOT FROM slackware install, compiled manually 3.5.7 libpri and asterisk from CVS HEAD (~20041216) spandsp 0.0.2 You will note that the standard slackware install has libtiff in the aaa_elflibs package. You must go in there and manually obliterate anything TIFF (IIRC it's only /usr/lib/libtiff.so.3.6.1 and the symlinks) Diagram is deceptive: PRI - TE405P - Asterisk1 - IAX2 - Asterisk2 IAX2 link is a 1-hop SDSL link over Pairgain Megabit Modem 300S devices. Ethernet cards are Intel gigE on Asterisk1 and a Realtek RTL8139. Asterisk1 is a Supermicro server - Xeon processor, SCSI hard disks, ECC RAM. Asterisk2 is a simple plain-jane P3/800. Asterisk2 also has a TDM430P in it which I send faxes from (Canon IR3300 and an ancient Epson fax) -- I cannot RECEIVE faxes to either of these reliably through the TDM card (they worked fine when I had a T100P+Adit600 channel bank), which is why I set up app_rxfax. I wanted to see if it was the TDM card botching up or faxing over the IAX2 link; it's the TDM430P. It's strange, I can send through the TDM430 just fine, but neither fax can receive worth a shit through it. And both machines support ECM and so on. My fax rx rate hovers around 50% though the TDM430. It's at 100% with app_rxfax. -A. ___ Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [Asterisk-Users] spandsp and app_rxfax (alternative topic:t38modem)
Jeff wrote: It is my speculation that the 'cutoff' problem was related to some type of 'line noise' and that others successfully using the spandsp code _might_ be using T1/E1 rather than analog lines (1FL) but when I started testing using an old Fax machine plugged into a station port with a six foot RJ11 on either end, I realized that this setup really shouldn't be introducing much noise (if any) so I am lost. It happens approximately half way through EVERY fax I attempt regardless of sending machine (I tried Dialogic and some modems) or port (FXO or FXS) so I just gave up on it. The problem is so common it is covered in the spandsp FAQ, and it is nothing to do with spandsp itself. Steve ___ Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [Asterisk-Users] spandsp and app_rxfax (alternative topic:t38modem)
On Friday 07 January 2005 01:35 pm, Lee Howard wrote: Since spandsp doesn't use ECM, what I'm about to say doesn't apply to spandsp. If you receive truncated (versus corrupted) fax images from spandsp, then I'm not sure what the problem would be. What I'm about to say only applies to ECM-enabled fax sessions such as usually will happen with most modern fax machines and modern HylaFAX. Just to be clear. What I am getting is about the top inch of the fax and that's all. The total size of the TIFF is ALWAYS about 3KB or less. Thanks, Ryan ___ Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [Asterisk-Users] spandsp and app_rxfax (alternative topic:t38modem)
I have used an analog trunk (FXO) AND a station (FXS) both on the same card. I thought that it might be related to the hardware so I hooked up an old Brother Intellifax 9000 on the station port. Both of these attempts had the same problem. It is my speculation that the 'cutoff' problem was related to some type of 'line noise' and that others successfully using the spandsp code _might_ be using T1/E1 rather than analog lines (1FL) but when I started testing using an old Fax machine plugged into a station port with a six foot RJ11 on either end, I realized that this setup really shouldn't be introducing much noise (if any) so I am lost. It happens approximately half way through EVERY fax I attempt regardless of sending machine (I tried Dialogic and some modems) or port (FXO or FXS) so I just gave up on it. I believe Steve U. has repeatedly commented on the need to have a very stable pstn interface, no missed interrupts, no frame sleeps, etc, etc. To me that translates into resolving well-discussed issues with the tdm04b card, etc. So, not likely you running into line noise, but rather missed interrupts,etc. (I have had the same proble with the spandsp here.) ___ Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [Asterisk-Users] spandsp and app_rxfax(alternative topic:t38modem)
While I appreciate your response (as much as anyone else's) I wonder if you are referring to the link on the FAQ here (http://www.opencall.org/faq/x26.html)? It tends to blame Fax modems where I stated that I ALSO used a Fax machine. No modems just a big old plain paper fax -remember those everyone ;-) Someone else pointed to a shared interrupt issue and despite not having any other zaptel issues with * (leading me to believe that I did NOT have one) I tried disabling all onboard devices and used a good ole 3COM NIC just to be sure but I get the same results using a trunk (FXO) and a station (FXS) port as I did in my original post (as does Ryan the OP in his). Here is the output from /proc/interrupts on this clone: CPU0 0: 616244 XT-PIC timer 2: 0 XT-PIC cascade 5:716 XT-PIC eth0 8: 1 XT-PIC rtc 11: 590558 XT-PIC wctdm 14: 4327 XT-PIC ide0 15: 5087 XT-PIC ide1 NMI: 0 ERR: 0 I have nothing else on this box and no other traffic so I will try it in a Compaq deskpro and post my results... Sorry I couldn't help you Ryan... and thanks to others for trying. Jeff - Original Message - From: Steve Underwood [EMAIL PROTECTED] To: Asterisk Users Mailing List - Non-Commercial Discussion asterisk-users@lists.digium.com Sent: Friday, January 07, 2005 2:11 PM Subject: Re: [Asterisk-Users] spandsp and app_rxfax(alternative topic:t38modem) Jeff wrote: It is my speculation that the 'cutoff' problem was related to some type of 'line noise' and that others successfully using the spandsp code _might_ be using T1/E1 rather than analog lines (1FL) but when I started testing using an old Fax machine plugged into a station port with a six foot RJ11 on either end, I realized that this setup really shouldn't be introducing much noise (if any) so I am lost. It happens approximately half way through EVERY fax I attempt regardless of sending machine (I tried Dialogic and some modems) or port (FXO or FXS) so I just gave up on it. The problem is so common it is covered in the spandsp FAQ, and it is nothing to do with spandsp itself. Steve ___ Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ___ Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [Asterisk-Users] spandsp and app_rxfax (alternative topic:t38modem)
Ryan wrote: On Friday 07 January 2005 01:35 pm, Lee Howard wrote: Since spandsp doesn't use ECM, what I'm about to say doesn't apply to spandsp. If you receive truncated (versus corrupted) fax images from spandsp, then I'm not sure what the problem would be. What I'm about to say only applies to ECM-enabled fax sessions such as usually will happen with most modern fax machines and modern HylaFAX. Just to be clear. What I am getting is about the top inch of the fax and that's all. The total size of the TIFF is ALWAYS about 3KB or less. If your TIFF are consistently that small you probably have a TIFF library problem. Frame slips generally give much more eratic results. If you believe you have a good version of the TIFF library on your machine, check you don't have any others. A *lot* of people have told me they had a good TIFF library, and later found they also have one or more bad ones too. :-) Regards, Steve ___ Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [Asterisk-Users] spandsp and app_rxfax (alternative topic:t38modem)
Steve Underwood wrote: If your TIFF are consistently that small you probably have a TIFF library problem. Frame slips generally give much more eratic results. If you believe you have a good version of the TIFF library on your machine, check you don't have any others. A *lot* of people have told me they had a good TIFF library, and later found they also have one or more bad ones too. :-) Have you tried libtiff-3.7.1 yet? Mike -- Michael Welter Introspect Telephony Corp. Denver, Colorado US +1.303.674.2575 [EMAIL PROTECTED] www.introspect.com ___ Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [Asterisk-Users] spandsp and app_rxfax (alternative topic:t38modem)
On Sat, 8 Jan 2005, Steve Underwood wrote: Ryan wrote: On Friday 07 January 2005 01:35 pm, Lee Howard wrote: Just to be clear. What I am getting is about the top inch of the fax and that's all. The total size of the TIFF is ALWAYS about 3KB or less. If your TIFF are consistently that small you probably have a TIFF library problem. Frame slips generally give much more eratic results. If you believe you have a good version of the TIFF library on your machine, check you don't have any others. A *lot* of people have told me they had a good TIFF library, and later found they also have one or more bad ones too. :-) I had exactly the same problem. The faxes received was about 2 inches then stop. Same result all the time. libtiff 3.5.7, 3.6.0, 3.6.1, 3.7.1 all the same. Kernel 2.4.27 No change with 2.6.7 I suspected frame slips. But sound quality was ok. Everything was ok. Except maybe to many interrupts on the line cards. But when I changed my devicedriver to one that was more safe regarding lost interrupts it worked like a charm. /Nils Nils Segerdahl --- Upsala Systemkonsult, UPSYS AB Telefon:(+46) (0)18 56 80 41 Glunten, 751 83 UppsalaMobil: (+46) (0)703 55 65 03 http://www.upsys.seFax: (+46) (0)18 56 80 49 --- Jan 8 Battle of New Orleans Jan 9 Fellowship reaches Lorien (LOTR) Jan 9 Plough Monday Jan 10 First meeting of United Nations General Assembly in London, 1946 Jan 10 Thomas Paine's Common Sense published, 1776 Jan 8 American Telephone and Telegraph loses antitrust case, 1982 Jan 8 Herman Hollerith patents first data processing computer, 1889 Jan 8 Justice Dept. drops IBM suit, 1982 Jan 10 First CDC 1604 delivered to Navy, 1960 --- ___ Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [Asterisk-Users] spandsp and app_rxfax (alternative topic:t38modem)
Nils Segerdahl wrote: I suspected frame slips. But sound quality was ok. Everything was ok. Except maybe to many interrupts on the line cards. But when I changed my devicedriver to one that was more safe regarding lost interrupts it worked like a charm. Device driver? TDM device driver? Would you please explain what you did? Thanks, -- Michael Welter Introspect Telephony Corp. Denver, Colorado US +1.303.674.2575 [EMAIL PROTECTED] www.introspect.com ___ Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [Asterisk-Users] spandsp and app_rxfax (alternative topic:t38modem)
On Friday 07 January 2005 03:45 pm, Steve Underwood wrote: If your TIFF are consistently that small you probably have a TIFF library problem. Frame slips generally give much more eratic results. If you believe you have a good version of the TIFF library on your machine, check you don't have any others. A *lot* of people have told me they had a good TIFF library, and later found they also have one or more bad ones too. :-) I thought the same thing. It was so consistent that it seemed like it almost _had_ to be a TIFF library issue. But I removed the other versions while I was testing each version (3.6.1, 3.6.0, 3.5.7, and 3.7.1; in that order). Plus, I ran ldd against the app_?xfax.so libraries and made sure they were linking with the right library. So I am 100% sure that I was not just using the same TIFF library. Thanks, Ryan ___ Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [Asterisk-Users] spandsp and app_rxfax (alternative topic:t38modem)
On Fri, 7 Jan 2005, Michael Welter wrote: Nils Segerdahl wrote: I suspected frame slips. But sound quality was ok. Everything was ok. Except maybe to many interrupts on the line cards. But when I changed my devicedriver to one that was more safe regarding lost interrupts it worked like a charm. Device driver? TDM device driver? Would you please explain what you did? Sorry, I was using zaptel patched with bristuff on asterisk 1.0.2 The driver was the bristuff zaphfc driver for Billion hfc isdn cards. Slackware 10, Linux kernel 2.4.26 on P4 2.8GHZ, libtiff 3.5.7 spandsp 0.2.0r6 After i applied Florians patch it all started working like a charm (Link to patch on wiki: asterisk zaphfc page) The patch decreases the risk for lost interrupts as far as I can understand. So I guess that that was my problem. /Nils ___ Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [Asterisk-Users] spandsp and app_rxfax (alternative topic:t38modem)
Steve Underwood wrote: If your TIFF are consistently that small you probably have a TIFF library problem. Frame slips generally give much more eratic results. If Steve, when you say that some Canon fax machines disconnect during negotiation, does this negotiation happen at the end of each page? I have a Canon fax that receives complete pages, but never the entire transmission. Thanks, BTW, when the Canon disconnects, the Asterisk line remains off-hook. -- Michael Welter Introspect Telephony Corp. Denver, Colorado US +1.303.674.2575 [EMAIL PROTECTED] www.introspect.com ___ Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [Asterisk-Users] spandsp and app_rxfax (alternative topic:t38modem)
Michael Welter wrote: Steve Underwood wrote: If your TIFF are consistently that small you probably have a TIFF library problem. Frame slips generally give much more eratic results. If Steve, when you say that some Canon fax machines disconnect during negotiation, does this negotiation happen at the end of each page? I have a Canon fax that receives complete pages, but never the entire transmission. Thanks, BTW, when the Canon disconnects, the Asterisk line remains off-hook. That bug, which seems to be fixed in the spandsp-0.0.2pre6, means the Canon machines will not accept a FAX from spandsp at all. There was a bit set incorrectly in a control message. The Canon machines, and a few less popular ones, decided there was nothing they could do, and hung up. Regards, Steve ___ Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users