Re: [asterisk-users] rxfax() problem - fax signal seems to be ignored
[RESOLVED] Hello Andrew and thx you for your response, which led me to the solution. You are right concerning the Ringing() and Answer(), so I put this out of my dialplan. The way to test with a std phone is a good idea, and permit me to hear the spandsp CED tone. Very easy to do, and I'm still asking myself why I did'nt though to that before :-) This led me to the conclusion that the ||debug was in cause : when using it, rxfax() answer a coming fax with a CNG tone instead of a CED tone. I simply removed this ||debug argument, and now when I call the 300 extension, I can hear the CED tone like expected. Using ||debug acts like if I had used |caller instead. Seems to be a bug. [/RESOLVED] 2007/9/5, Andrew Joakimsen [EMAIL PROTECTED]: On 9/5/07, Pirlouwi [EMAIL PROTECTED] wrote: Hello, my configuration is the following: a TDM400P board with an fxs and fxo daughter boards on it. I thus connect a fax to my FXS port, after having verified that this port was correctly functioning. For this, I had tried before with a simple phone, and with some basic voicemail exten scripts. Here is my simple dialplan for my fax reception: exten = 300,1,Ringing() exten = 300,n,Answer() exten = 300,n,Set(FAXFILE=/tmp/test.tif) exten = 300,n,rxfax(${FAXFILE}||debug) Why? exten = 300,1,rxfax(/tmp/test.tif||debug) would do the same exact thing. No need to indicate ringing and no need to answer the call. Besides that it is just incorrect you are never going to have correct answer supervision on an analog line, so don't even try. I then dialed 300 on my fax machine, and expected to be lucky and to obtain a /tmp/test.tif file after faxing completion. But instead, I always got such error in the /var/log/asterisk/full log file: What if you just use a regular analog phone and dial 300? What happens? What if you remove the ||Debug from your RxFax dialstring? [Sep 5 13:42:24] DEBUG[1298] pbx.c: Launching 'Ringing' [Sep 5 13:42:24] DEBUG[1298] chan_zap.c: Took Zap/1-1 off hook [Sep 5 13:42:24] DEBUG[1298] pbx.c: Launching 'Set' [Sep 5 13:42:24] VERBOSE[1298] logger.c: -- Executing [ [EMAIL PROTECTED]:3] Set(Zap/1-1, FAXFILE=/tmp/test.tif) in new stack [Sep 5 13:42:24] DEBUG[1298] pbx.c: Launching 'RxFAX' Notice how your own logs prove that 0ms elapse between the time you incorrectly indicate ringing on the channel and the time RxFax begins. I have enabled the #define LOG_FAX_AUDIO inside spandsp library, and two audio files (fax-rx-audio-b7933500-070905134224 and fax-tx-audio-b7933500-070905134224) appeared in /tmp. Just listen into the line. When you execute RxFax it will play fax tones just as if another faxmachine answered -- not CNG tones This is not the case in my setup. What did I wrong? Thx for your help. What version of Linux, Asterisk, Zaptel, SpanDSP app_rxfax are you using? ___ Sign up now for AstriCon 2007! September 25-28th. http://www.astricon.net/ --Bandwidth and Colocation Provided by http://www.api-digital.com-- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] rxfax() problem - fax signal seems to be ignored
On 9/5/07, Pirlouwi [EMAIL PROTECTED] wrote: Hello, my configuration is the following: a TDM400P board with an fxs and fxo daughter boards on it. I thus connect a fax to my FXS port, after having verified that this port was correctly functioning. For this, I had tried before with a simple phone, and with some basic voicemail exten scripts. Here is my simple dialplan for my fax reception: exten = 300,1,Ringing() exten = 300,n,Answer() exten = 300,n,Set(FAXFILE=/tmp/test.tif) exten = 300,n,rxfax(${FAXFILE}||debug) Why? exten = 300,1,rxfax(/tmp/test.tif||debug) would do the same exact thing. No need to indicate ringing and no need to answer the call. Besides that it is just incorrect you are never going to have correct answer supervision on an analog line, so don't even try. I then dialed 300 on my fax machine, and expected to be lucky and to obtain a /tmp/test.tif file after faxing completion. But instead, I always got such error in the /var/log/asterisk/full log file: What if you just use a regular analog phone and dial 300? What happens? What if you remove the ||Debug from your RxFax dialstring? [Sep 5 13:42:24] DEBUG[1298] pbx.c: Launching 'Ringing' [Sep 5 13:42:24] DEBUG[1298] chan_zap.c: Took Zap/1-1 off hook [Sep 5 13:42:24] DEBUG[1298] pbx.c: Launching 'Set' [Sep 5 13:42:24] VERBOSE[1298] logger.c: -- Executing [EMAIL PROTECTED]:3] Set(Zap/1-1, FAXFILE=/tmp/test.tif) in new stack [Sep 5 13:42:24] DEBUG[1298] pbx.c: Launching 'RxFAX' Notice how your own logs prove that 0ms elapse between the time you incorrectly indicate ringing on the channel and the time RxFax begins. I have enabled the #define LOG_FAX_AUDIO inside spandsp library, and two audio files (fax-rx-audio-b7933500-070905134224 and fax-tx-audio-b7933500-070905134224) appeared in /tmp. Just listen into the line. When you execute RxFax it will play fax tones just as if another faxmachine answered -- not CNG tones This is not the case in my setup. What did I wrong? Thx for your help. What version of Linux, Asterisk, Zaptel, SpanDSP app_rxfax are you using? ___ Sign up now for AstriCon 2007! September 25-28th. http://www.astricon.net/ --Bandwidth and Colocation Provided by http://www.api-digital.com-- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [Asterisk-Users] rxfax problem
Steve Underwood wrote: If someone wants to take my code and make it work with Asterisk under GPL conditions, that's fine. The GPL gives you that right. Please make sure you stick to GPL conditions, though. You can't use G.729, for example, in an Asterisk that's using spandsp. I do not see any problems here - Asterisk does not link against g729. Further, even it would be the case, it would be no problem if you do not distribute it. And AFAIK even about distribution there are different meanings (e.g. GPL applications which link against openssl). Or do I miss an important point? regards klaus -- Klaus Darilion nic.at ___ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [Asterisk-Users] rxfax problem
On Mon, Oct 23, 2006 at 08:23:12PM -0700, Lee Howard wrote: If you don't mind saying, what is missing for full t.38 support? Steve giving Digium a royalty-free license to his GPL software or a pure-GPL branch of the Asterisk codebase, take your pick. Why royalty-free? AFAICS there's nothing to stop Digium licensing this code commercially from him, if it adds value to the product. Regards, Brian. ___ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [Asterisk-Users] rxfax problem
Brian Candler wrote: On Mon, Oct 23, 2006 at 08:23:12PM -0700, Lee Howard wrote: If you don't mind saying, what is missing for full t.38 support? Steve giving Digium a royalty-free license to his GPL software or a pure-GPL branch of the Asterisk codebase, take your pick. Why royalty-free? AFAICS there's nothing to stop Digium licensing this code commercially from him, if it adds value to the product. You've misunderstood something. Digium will not commit anything to the Asterisk code base that is not disclaimed to them first. They do this for various commercial purposes. They *could* take anything GPL, like spandsp or any related T.38 developments in OpenPBX, and commit it to a GPL-only branch of the Asterisk codebase, but then they would have features missing from their non-GPL licensed commercial offering. So yes, there is nothing to stop Digium from using GPL code in their GPL Asterisk ... except Digium stopping themselves. And they do that rather predictably... http://bugs.digium.com/view.php?id=7742 ... for whatever purpose they may have in keeping hardware support and features from Asterisk. Lee. ___ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [Asterisk-Users] rxfax problem
But if we have asterisk and add on Steve's code wouldn't it (suppor to recieve a t.38 fax call and have spandsp decode it) work? What does Steve granting a license to Digium have to do with it? I don't care if Asterisk and the fax support don't come from the same place. On 10/23/06, Lee Howard [EMAIL PROTECTED] wrote: Andrew Joakimsen wrote: On 10/23/06, *Steve Underwood* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: The latest test versions of the spandsp support both ECM and T.38. The T.38 functionality may not be available with Asterisk, though. Is there any other software it would work with? Yes, OpenPBX. Is there any situation under which it might work?I don't really know how to respond to the ambiguity in that question. If you don't mind saying, what is missing for full t.38 support?Steve giving Digium a royalty-free license to his GPL software or apure-GPL branch of the Asterisk codebase, take your pick. Also with ECM being present now, that should eliminate distortion? ECM remedies data corruption and not image distortion caused by a brokenviewer. Its at random places during the fax there are glitches such as parts of the line missing or being shifted a bit Yes, ECM probably will address that.Lee.___--Bandwidth and Colocation provided by Easynews.com --asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ___ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [Asterisk-Users] rxfax problem
Andrew Joakimsen wrote: But if we have asterisk and add on Steve's code wouldn't it (suppor to recieve a t.38 fax call and have spandsp decode it) work? What does Steve granting a license to Digium have to do with it? I don't care if Asterisk and the fax support don't come from the same place. First off, I'm not really the right guy to be having this conversation, but since I know enough of the facts I can respond accurately enough to satisfy your query. If you ask a lot more questions in the what-if direction I may have to bow out. Steve's related code is two-fold... code that is in spandsp and code that is in OpenPBX. And, actually I think that spandsp comes with OpenPBX, so it's really just one download. Anyway, spandsp is a library. You get it, install it, and you end up with a bunch of code libraries that really don't do anything by themselves. You have to have some other software that utilizes those libraries, like the well-known txfax and rxfax applications... or like iaxmodem. Steve's work in OpenPBX is not really something that you can extract out of OpenPBX and stick into Asterisk very easily. I guess you're welcome to try, though. And, if you become successful in that - in producing a patch to apply onto Asterisk and you then endeavor to maintain that patch along with all of the other patches that you have to maintain to keep your motley Asterisk running your OpenVOX cards, your txfax/rxfax apps, and the myriad of other things that don't come with Asterisk for who-knows-what reason... well, then you're effectively maintaining your own little fork of Asterisk. And at that point I would wonder why you have gone through all of that effort just to avoid using OpenPBX, which is where Steve put that code for you to use in the first place. Lee. ___ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [Asterisk-Users] rxfax problem
Andrew Joakimsen wrote: But if we have asterisk and add on Steve's code wouldn't it (suppor to recieve a t.38 fax call and have spandsp decode it) work? What does Steve granting a license to Digium have to do with it? I don't care if Asterisk and the fax support don't come from the same place. Its easy to maintain a well contained application, like rxfax, outside the tree. Trying to maintain patches to rtp.c, chan_sip.c and other core elements is too much of a pain to be reasonable. The code I contributed to Asterisk for T.38 passthrough languished for about 9 months before it was integrated. The day it was integrated it was in a less suitable state for integration than the day I contributed it. The patch to chan_sip.c had required many hours work from people over those 9 months, trying to keep up with the changes to the chan_sip.c in SVN. Its just wasteful and frustrating. The development of Asterisk has now degraded to the point where I will no longer contribute anything to it. If someone wants to take my code and make it work with Asterisk under GPL conditions, that's fine. The GPL gives you that right. Please make sure you stick to GPL conditions, though. You can't use G.729, for example, in an Asterisk that's using spandsp. Steve ___ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [Asterisk-Users] rxfax problem
On 10/20/06, Mohammad Shokuie [EMAIL PROTECTED] wrote: Anyways, let me take the most benefit as im sure you'd read this post, i have problem with the size of received page which is shrinked, can u give me a hint about this problem too :) This is probably the problem of the application that you use to view the TIFF file. FAX machines generate TIFF files with different horizontal and vertical resolution, and a lot of lazy programs do not check this correctly. I find that a quick 'tiff2pdf' conversion fixes things up very nicely :) Steve D ___ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
RE: [Asterisk-Users] rxfax problem
Grab the fax2mail script from www.generationd.com and set it to convert the tiff to pdf before sending. Works great. MD -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Steve Davies Sent: Monday, October 23, 2006 4:38 AM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [Asterisk-Users] rxfax problem On 10/20/06, Mohammad Shokuie [EMAIL PROTECTED] wrote: Anyways, let me take the most benefit as im sure you'd read this post, i have problem with the size of received page which is shrinked, can u give me a hint about this problem too :) This is probably the problem of the application that you use to view the TIFF file. FAX machines generate TIFF files with different horizontal and vertical resolution, and a lot of lazy programs do not check this correctly. I find that a quick 'tiff2pdf' conversion fixes things up very nicely :) Steve D ___ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ___ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [Asterisk-Users] rxfax problem
You are using bad software to view the faxes. In Windows the picture and fax viewer seems to work fine, however in Linux KGhostView or whever the default program is does not work, however you should try KFaxView.Steve: I'm wondering if one day span_dsp will support T38, say we have a SIP provider that supports T.38 we should be able to recieve a good fax? Right now the fax is distorted a bit, I think because it does not support ECM?On 10/20/06, Mohammad Shokuie [EMAIL PROTECTED] wrote:Hi Steve, As a matter of fact, you've done a greate job in writting this library, nodoubts. I really dont know rxgain = 12 makes that much distortion but I'mcurios to know if I pass through the incoming fax to an analog fax machine on another fxs line, the machine wouldn't receive the fax too?Anyways, let me take the most benefit as im sure you'd read this post, ihave problem with the size of received page which is shrinked, can u give me a hint about this problem too :)Thanks.---M. Shokuie NiaFrom: Steve Underwood [EMAIL PROTECTED]Reply-To: Asterisk Users Mailing List - Non-Commercial Discussionasterisk-users@lists.digium.comTo: Asterisk Users Mailing List - Non-CommercialDiscussion asterisk-users@lists.digium.comSubject: Re: [Asterisk-Users] rxfax problemDate: Fri, 20 Oct 2006 20:20:18 +0800MIME-Version: 1.0Received: from lists.digium.com ([69.16.138.164]) bybay0-mc6-f10.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.2444); Fri,20 Oct 2006 05:42:01 -0700 Received: from digium-69-16-138-164.phx1.puregig.net (localhost[127.0.0.1])by lists.digium.com (Postfix) with ESMTP id EFF0B2FC87C;Fri, 20Oct 2006 05:20:37 -0700 (MST)Received: from psmtp.com (exprod8mx13.postini.com [ 64.18.3.113])bylists.digium.com (Postfix) with SMTP id B67A62FC82Fforasterisk-users@lists.digium.com;Fri, 20 Oct 2006 05:20:05 -0700 (MST) Received: from source ([202.14.67.92]) byexprod8mx13.postini.com([64.18.7.10]) with SMTP; Fri, 20 Oct 2006 05:20:20PDTReceived: from [ 192.168.2.50](229.166.17.210.dyn.pacific.net.hk[210.17.166.229]) by cwb.pacific.net.hkwith ESMTPid k9KCKIfs013165 for asterisk-users@lists.digium.com;Fri, 20Oct 2006 20:20:19 +0800X-Message-Info: txF49lGdW43chsCTszkrRosGSMI+inUm7kbzJdpspc0=X-Original-To: asterisk-users@lists.digium.comDelivered-To: asterisk-users@lists.digium.comUser-Agent: Mozilla Thunderbird 1.0.8-1.1.fc4 (X11/20060501)X-Accept-Language: en-us, en References: [EMAIL PROTECTED]X-pstn-levels: (S:99.9/99.9 FC:95.5390 LC:95.5390 R:95.9108P: 95.9108M:97.0282 C:98.6951 )X-pstn-settings: 3 (1.:1.) s fc lc gt3 gt2 gt1 r p m cX-pstn-addresses: from [EMAIL PROTECTED] [db-null] X-BeenThere: asterisk-users@lists.digium.comX-Mailman-Version: 2.1.5Precedence: listList-Id: Asterisk Users Mailing List - Non-CommercialDiscussion asterisk-users.lists.digium.comList-Unsubscribe:http://lists.digium.com/mailman/listinfo/asterisk-users ,mailto:[EMAIL PROTECTED]?subject=unsubscribeList-Archive: http://lists.digium.com/pipermail/asterisk-usersList-Post: mailto:asterisk-users@lists.digium.comList-Help: mailto: [EMAIL PROTECTED]?subject=helpList-Subscribe:http://lists.digium.com/mailman/listinfo/asterisk-users,mailto: [EMAIL PROTECTED]?subject=subscribeErrors-To: [EMAIL PROTECTED] Return-Path: [EMAIL PROTECTED]X-OriginalArrivalTime: 20 Oct 2006 12:42:02.0256 (UTC)FILETIME=[241ED900:01C6F445] M. Shokuie Nia wrote:Dear folk,My problem solved after two day research and try and error method ;). Itwasrelated to rxgain of the board im using. I've set the rxgain to 12 and it seems made some problem. As far as I got the spandsp is so sensitive aboutnoise on the line and because of that it couldn't hand shake with othersidewell. rxfax isn't sensitive to noise at all. At a gain of 12 you've causedoverloading and distortion, and the signal cannot be decoded. Many peopleseem to be nearly deaf. They run systems at massive gain with awful distortion, and seem content until they find something like a modem or DTMFdetection doesn't work too well.Steve___--Bandwidth and Colocation provided by Easynews.com --asterisk-users mailing listTo UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users _FREE pop-up blocking with the new MSN Toolbar - get it now!http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/ ___--Bandwidth and Colocation provided by Easynews.com --asterisk-users mailing listTo UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ___ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [Asterisk-Users] rxfax problem
Andrew Joakimsen wrote: You are using bad software to view the faxes. In Windows the picture and fax viewer seems to work fine, however in Linux KGhostView or whever the default program is does not work, however you should try KFaxView. They've broken Windows now, if you install Microsoft Office. It changes the default viewer from the picture and fax viewer to something much more broken. Steve: I'm wondering if one day span_dsp will support T38, say we have a SIP provider that supports T.38 we should be able to recieve a good fax? Right now the fax is distorted a bit, I think because it does not support ECM? The latest test versions of the spandsp support both ECM and T.38. The T.38 functionality may not be available with Asterisk, though. Steve ___ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [Asterisk-Users] rxfax problem
On 10/23/06, Steve Underwood [EMAIL PROTECTED] wrote: Andrew Joakimsen wrote: You are using bad software to view the faxes. In Windows the picture and fax viewer seems to work fine, however in Linux KGhostView or whever the default program is does not work, however you should try KFaxView.They've broken Windows now, if you install Microsoft Office. It changesthe default viewer from the picture and fax viewer to something muchmore broken.I've never seemed to have a problem with it. It might not be specification-compliant, but it does seem to display faxes at the correct resoltuion and it supports multi-page tiff files... Steve: I'm wondering if one day span_dsp will support T38, say we have a SIP provider that supports T.38 we should be able to recieve a good fax? Right now the fax is distorted a bit, I think because it does not support ECM?The latest test versions of the spandsp support both ECM and T.38. TheT.38 functionality may not be available with Asterisk, though.Is there any other software it would work with? Is there any situation under which it might work? If you don't mind saying, what is missing for full t.38 support?Also with ECM being present now, that should eliminate distortion? Its at random places during the fax there are glitches such as parts of the line missing or being shifted a bit, but that isn't with the latest version. ___ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [Asterisk-Users] rxfax problem
Andrew Joakimsen wrote: On 10/23/06, *Steve Underwood* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: The latest test versions of the spandsp support both ECM and T.38. The T.38 functionality may not be available with Asterisk, though. Is there any other software it would work with? Yes, OpenPBX. Is there any situation under which it might work? I don't really know how to respond to the ambiguity in that question. If you don't mind saying, what is missing for full t.38 support? Steve giving Digium a royalty-free license to his GPL software or a pure-GPL branch of the Asterisk codebase, take your pick. Also with ECM being present now, that should eliminate distortion? ECM remedies data corruption and not image distortion caused by a broken viewer. Its at random places during the fax there are glitches such as parts of the line missing or being shifted a bit Yes, ECM probably will address that. Lee. ___ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
RE: [Asterisk-Users] rxfax problem
Dear folk, My problem solved after two day research and try and error method ;). It was related to rxgain of the board im using. I've set the rxgain to 12 and it seems made some problem. As far as I got the spandsp is so sensitive about noise on the line and because of that it couldn’t hand shake with other side well. HTH. M. Shokuie Nia. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jim McIver Sent: 2006/10/19 06:17 ب.ظ To: asterisk-users@lists.digium.com Subject: [Asterisk-Users] rxfax problem Did you ever get an answer to this problem ? I too am seeing this and it’s driving me mad !!! Jim ___ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [Asterisk-Users] rxfax problem
M. Shokuie Nia wrote: Dear folk, My problem solved after two day research and try and error method ;). It was related to rxgain of the board im using. I've set the rxgain to 12 and it seems made some problem. As far as I got the spandsp is so sensitive about noise on the line and because of that it couldn’t hand shake with other side well. rxfax isn't sensitive to noise at all. At a gain of 12 you've caused overloading and distortion, and the signal cannot be decoded. Many people seem to be nearly deaf. They run systems at massive gain with awful distortion, and seem content until they find something like a modem or DTMF detection doesn't work too well. Steve ___ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [Asterisk-Users] rxfax problem
On 10/20/06, Steve Underwood [EMAIL PROTECTED] wrote: M. Shokuie Nia wrote: Dear folk, My problem solved after two day research and try and error method ;). It was related to rxgain of the board im using. I've set the rxgain to 12 and it seems made some problem. As far as I got the spandsp is so sensitive about noise on the line and because of that it couldn't hand shake with other side well. rxfax isn't sensitive to noise at all. At a gain of 12 you've caused overloading and distortion, and the signal cannot be decoded. Many people seem to be nearly deaf. They run systems at massive gain with awful distortion, and seem content until they find something like a modem or DTMF detection doesn't work too well. Steve Well Steve, you should be proud of your latest 0.0.3 snapshot code (20061012 ?) - It has solved all of our faxing issues here, even those that have been ongoing for almost a year with really flakey cheap multifunction fax machines... Thank you. Steve ___ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [Asterisk-Users] rxfax problem
Hi Steve, As a matter of fact, you've done a greate job in writting this library, no doubts. I really dont know rxgain = 12 makes that much distortion but I'm curios to know if I pass through the incoming fax to an analog fax machine on another fxs line, the machine wouldn't receive the fax too? Anyways, let me take the most benefit as im sure you'd read this post, i have problem with the size of received page which is shrinked, can u give me a hint about this problem too :) Thanks. --- M. Shokuie Nia From: Steve Underwood [EMAIL PROTECTED] Reply-To: Asterisk Users Mailing List - Non-Commercial Discussionasterisk-users@lists.digium.com To: Asterisk Users Mailing List - Non-Commercial Discussionasterisk-users@lists.digium.com Subject: Re: [Asterisk-Users] rxfax problem Date: Fri, 20 Oct 2006 20:20:18 +0800 MIME-Version: 1.0 Received: from lists.digium.com ([69.16.138.164]) by bay0-mc6-f10.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.2444); Fri, 20 Oct 2006 05:42:01 -0700 Received: from digium-69-16-138-164.phx1.puregig.net (localhost [127.0.0.1])by lists.digium.com (Postfix) with ESMTP id EFF0B2FC87C;Fri, 20 Oct 2006 05:20:37 -0700 (MST) Received: from psmtp.com (exprod8mx13.postini.com [64.18.3.113])by lists.digium.com (Postfix) with SMTP id B67A62FC82Ffor asterisk-users@lists.digium.com;Fri, 20 Oct 2006 05:20:05 -0700 (MST) Received: from source ([202.14.67.92]) by exprod8mx13.postini.com([64.18.7.10]) with SMTP; Fri, 20 Oct 2006 05:20:20 PDT Received: from [192.168.2.50] (229.166.17.210.dyn.pacific.net.hk[210.17.166.229]) by cwb.pacific.net.hk with ESMTPid k9KCKIfs013165 for asterisk-users@lists.digium.com;Fri, 20 Oct 2006 20:20:19 +0800 X-Message-Info: txF49lGdW43chsCTszkrRosGSMI+inUm7kbzJdpspc0= X-Original-To: asterisk-users@lists.digium.com Delivered-To: asterisk-users@lists.digium.com User-Agent: Mozilla Thunderbird 1.0.8-1.1.fc4 (X11/20060501) X-Accept-Language: en-us, en References: [EMAIL PROTECTED] X-pstn-levels: (S:99.9/99.9 FC:95.5390 LC:95.5390 R:95.9108 P:95.9108M:97.0282 C:98.6951 ) X-pstn-settings: 3 (1.:1.) s fc lc gt3 gt2 gt1 r p m c X-pstn-addresses: from [EMAIL PROTECTED] [db-null] X-BeenThere: asterisk-users@lists.digium.com X-Mailman-Version: 2.1.5 Precedence: list List-Id: Asterisk Users Mailing List - Non-Commercial Discussionasterisk-users.lists.digium.com List-Unsubscribe: http://lists.digium.com/mailman/listinfo/asterisk-users,mailto:[EMAIL PROTECTED] List-Archive: http://lists.digium.com/pipermail/asterisk-users List-Post: mailto:asterisk-users@lists.digium.com List-Help: mailto:[EMAIL PROTECTED] List-Subscribe: http://lists.digium.com/mailman/listinfo/asterisk-users,mailto:[EMAIL PROTECTED] Errors-To: [EMAIL PROTECTED] Return-Path: [EMAIL PROTECTED] X-OriginalArrivalTime: 20 Oct 2006 12:42:02.0256 (UTC) FILETIME=[241ED900:01C6F445] M. Shokuie Nia wrote: Dear folk, My problem solved after two day research and try and error method ;). It was related to rxgain of the board im using. I've set the rxgain to 12 and it seems made some problem. As far as I got the spandsp is so sensitive about noise on the line and because of that it couldnt hand shake with other side well. rxfax isn't sensitive to noise at all. At a gain of 12 you've caused overloading and distortion, and the signal cannot be decoded. Many people seem to be nearly deaf. They run systems at massive gain with awful distortion, and seem content until they find something like a modem or DTMF detection doesn't work too well. Steve ___ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users _ FREE pop-up blocking with the new MSN Toolbar - get it now! http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/ ___ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [Asterisk-Users] rxfax problem - libspandsp issue?
Here is a link to some known issues... http://www.soft-switch.org/spandsp-known-issues.html -Original Message- From: Roger Schreiter Sent: Thu, June 16, 2005 6:53 pm Hi, I just started my very first attempt receiving faxes by asterisk. Compiling, installing and setup went without problems. (asterisk-1.0.7, libtiff-3.6.1, SuSE-Linux 9.1) When receiving a fax also everthings seems to work fine, but the tiff file itsself is corrupted. Various tiff viewers do report errors (wrong line lengths) and finaly display a picture, which has nothing to do with the original. Did anyone encounter the same problem? Is it a version problem of libtiff? (libtiff-3.6.1 seems to be the most recent one, besides CVS.) Thanks for any hints! Roger. ___ 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] rxfax problem - libspandsp issue?
They keep breaking the FAX support in libtiff. 3.6.1 is broken, although a lot of distributions contain a patched version which works - usually because a spandsp user got the patch pushed into the distribution. HylaFAX users seemed to just give up trying to follow the buggy path of libtiff, and stick with libtiff 3.5.7 which seems to work reliably. Regards, Steve Roger Schreiter wrote: Hi, I just started my very first attempt receiving faxes by asterisk. Compiling, installing and setup went without problems. (asterisk-1.0.7, libtiff-3.6.1, SuSE-Linux 9.1) When receiving a fax also everthings seems to work fine, but the tiff file itsself is corrupted. Various tiff viewers do report errors (wrong line lengths) and finaly display a picture, which has nothing to do with the original. Did anyone encounter the same problem? Is it a version problem of libtiff? (libtiff-3.6.1 seems to be the most recent one, besides CVS.) Thanks for any hints! Roger. ___ 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] RxFAX problem
Carlos Medina wrote: Hi there, i installed RxFAX/TxFAX with some troubles but i did it, so i have some problems when i try to receibe a FAX, i got this error: Executing RxFAX(IAX2/[EMAIL PROTECTED]/16385, /var/spool/asterisk/incoming/16227743.tif) in new stack Dec 27 15:30:54 NOTICE[1141895616]: channel.c:1731 ast_set_read_format: Unable to find a path from ALAW to UNKN Dec 27 15:30:54 WARNING[1141895616]: app_rxfax.c:264 rxfax_exec: Unable to restore read format on 'IAX2/[EMAIL PROTECTED]/16385' mailto:'IAX2/[EMAIL PROTECTED]/16385' This server is using IAX with other PBX Box in other place, both of them are using G729 for IAX conection. I wouldn't have thought that you could reliably transmit fax over a compressed codec. Try ALAW or ULAW (g711u/a). -- Cheers, Matt Riddell ___ Daily Asterisk News: http://www.sineapps.com/news.php for html http://www.sineapps.com/rssfeed.php for rss ___ 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] rxfax problem
Hi all, Also got a problem with the RxFax app, I'm using the following packages, spandsp-20031021 tiff-v3.6.0 Asterisk CVS-12/10/03-20:28:08 Using the Digium TE410P card on a E1/PRI line. The tiff files under /var/spool/asterisk/incoming/, are a 8-byte file, and a 314-byte file. Because it could be useful, here are the links to the tiff files, http://www.geek.be/314byte.tif and 8byte.tif Errorlog, -- Redirecting Zap/94-1 to fax extension Changed from phase 0 to 1 Start receiving document Changed from phase 1 to 4 Sending ident CSI: 40 38 37 36 35 34 33 32 31 20 20 20 20 20 20 20 20 20 20 20 20 DIS: Store and forward Internet fax: no Real-time Internet fax: no Preferred octets: 256 Can receive fax Data signalling rate: V.29 R8x7.7lines/mm and/or 200x200pels/25.4mm OK 2D coding OK Scan line length: 215mm Recording length: A4 (297mm) Receiver's minimum scan line time: 0ms at 3.85 l/mm: T7.7 = T3.85 R8x15.4lines/mm OK Inch-based resolution preferred: no Metric-based resolution preferred: no Minimum scan line time for higher resolutions: T15.4 = T7.7 DIS: 80 00 c6 f0 80 80 01 HDLC underflow in state 9 Changed from phase 4 to 3 TSI: 43 33 34 20 33 33 20 33 39 32 20 33 20 32 33 2b 20 20 20 20 20 TSI without final frame tag Remote fax gave TSI as: X DCS: 83 00 86 f0 80 80 00 DCS with final frame tag In state 9 DCS: Store and forward Internet fax: no Real-time Internet fax: no Can receive fax Data signalling rate: V.29, 9600bps 2D coding OK Scan line length: 215mm Recording length: A4 (297mm) Minimum scan line time: 0ms Inch-based resolution preferred: no Metric-based resolution preferred: no Minimum scan line time for higher resolutions: T15.4 = T7.7 Get at V.29 Changed from phase 3 to 5 Fast carrier up Fast carrier down Changed from phase 5 to 4 0 bad bits in trainability test Start rx document - compression 2 Start rx page CFR: 84 HDLC underflow in state 5 Post trainability Changed from phase 4 to 5 Fast carrier up Fast carrier down Fast carrier up Fast carrier down Fast carrier up Fast carrier down Fast carrier up Equalizer state: -7 (0.0, 0.0) - 0.0 -6 (0.0, 0.0) - 0.0 -5 (0.0, 0.0) - 0.0 -4 (0.0, 0.0) - 0.0 -3 (0.0, 0.0) - 0.0 -2 ( -0.63884,-0.00593) - 0.40816 -1 (0.60024,-0.69352) - 0.84127 0 (2.38472,-1.30660) - 7.39409 1 (0.60024,-0.69352) - 0.84127 2 ( -0.63884,-0.00593) - 0.40816 3 (0.0, 0.0) - 0.0 4 (0.0, 0.0) - 0.0 5 (0.0, 0.0) - 0.0 6 (0.0, 0.0) - 0.0 7 (0.0, 0.0) - 0.0 Equalizer state: -7 (0.07399,-0.23718) - 0.06173 -6 ( -0.49173,-0.28062) - 0.32054 -5 ( -0.38216,-0.07909) - 0.15230 -4 (0.22680, 0.02959) - 0.05231 -3 (0.19558,-0.20995) - 0.08233 -2 ( -1.24388,-0.30523) - 1.64040 -1 ( -0.37542,-0.66984) - 0.58962 0 (2.01893,-0.79479) - 4.70777 1 (1.09151,-0.07333) - 1.19677 2 ( -0.00396, 0.26975) - 0.07278 3 (0.19550,-0.11260) - 0.05090 4 ( -0.16577,-0.06202) - 0.03133 5 (0.04504, 0.28773) - 0.08482 6 (0.39692, 0.42868) - 0.34131 7 (0.38502, 0.05679) - 0.15146 Equalizer state: -7 (0.22360,-0.02394) - 0.05057 -6 ( -0.18552, 0.06568) - 0.03873 -5 ( -0.18051,-0.04777) - 0.03486 -4 (0.31533,-0.01858) - 0.09978 -3 (0.31532,-0.05151) - 0.10208 -2 ( -0.77896,-0.14284) - 0.62718 -1 (0.29655,-0.95560) - 1.00111 0 (2.33765,-1.47601) - 7.64322 1 (0.65812,-0.47013) - 0.65415 2 ( -0.69647, 0.45421) - 0.69137 3 (0.04736, 0.16423) - 0.02921 4 (0.15850,-0.25609) - 0.09070 5 ( -0.00046,-0.07383) - 0.00545 6 ( -0.15791, 0.26325) - 0.09424 7 (0.08403,-0.17968) - 0.03935 Fast carrier trained Equalizer state: -7 (0.22152,-0.02127) - 0.04952 -6 ( -0.19472, 0.06331) - 0.04193 -5 ( -0.18801,-0.05253) - 0.03811 -4 (0.31716,-0.01907) - 0.10096 -3 (0.31783,-0.04633) - 0.10316
Re: [Asterisk-Users] rxfax problem
Ya dont say.. same problem here! :P On Wed, 29 Oct 2003, Thomas wrote: Hello, I tryed out spandsp with libtiff-3.5.7 and with Asterisk from CVS. I tryed to receive a fax on a CAPI channel. Finally I got a file with 8 byte length (/tmp/testfax.tif). How can I do next? Thanks in advance, Thomas ps: what are hardware requirements for sending/receiving faxes? -- creating pipe for PLCI=0x101 msn = 2258589 sent ALERT_REQ PLCI = 0x101 -- started pbx on channel! -- Executing RxFAX(CAPI[contr1/2258589]/4, /tmp/testfax.tif) in new stack -- CAPI Answering for MSN 2258589 Changed from phase 0 to 1 sent FACILITY_REQ (PLCI=0x101) Start receiving document Changed from phase 1 to 4 Sending ident CSI: 40 38 37 36 35 34 33 32 31 20 20 20 20 20 20 20 20 20 20 20 20 DIS: Store and forward Internet fax: no Real-time Internet fax: no Preferred octets: 256 Can receive fax Data signalling rate: V.29 R8x7.7lines/mm and/or 200x200pels/25.4mm OK 2D coding OK Scan line length: 215mm Recording length: A4 (297mm) Receiver's minimum scan line time: 0ms at 3.85 l/mm: T7.7 = T3.85 R8x15.4lines/mm OK Inch-based resolution preferred: no Metric-based resolution preferred: no Minimum scan line time for higher resolutions: T15.4 = T7.7 DIS: 80 00 c6 f0 80 80 01 HDLC underflow in state 9 Changed from phase 4 to 3 T4 timeout in state 9 Changed from phase 3 to 4 Sending ident CSI: 40 38 37 36 35 34 33 32 31 20 20 20 20 20 20 20 20 20 20 20 20 DIS: Store and forward Internet fax: no Real-time Internet fax: no Preferred octets: 256 Can receive fax Data signalling rate: V.29 R8x7.7lines/mm and/or 200x200pels/25.4mm OK 2D coding OK Scan line length: 215mm Recording length: A4 (297mm) Receiver's minimum scan line time: 0ms at 3.85 l/mm: T7.7 = T3.85 R8x15.4lines/mm OK Inch-based resolution preferred: no Metric-based resolution preferred: no Minimum scan line time for higher resolutions: T15.4 = T7.7 DIS: 80 00 c6 f0 80 80 01 T2 timeout Start receiving document Sending ident CSI: 40 38 37 36 35 34 33 32 31 20 20 20 20 20 20 20 20 20 20 20 20 DIS: Store and forward Internet fax: no Real-time Internet fax: no Preferred octets: 256 Can receive fax Data signalling rate: V.29 R8x7.7lines/mm and/or 200x200pels/25.4mm OK 2D coding OK Scan line length: 215mm Recording length: A4 (297mm) Receiver's minimum scan line time: 0ms at 3.85 l/mm: T7.7 = T3.85 R8x15.4lines/mm OK Inch-based resolution preferred: no Metric-based resolution preferred: no Minimum scan line time for higher resolutions: T15.4 = T7.7 DIS: 80 00 c6 f0 80 80 01 HDLC underflow in state 9 Changed from phase 4 to 3 T4 timeout in state 9 Changed from phase 3 to 4 Sending ident CSI: 40 38 37 36 35 34 33 32 31 20 20 20 20 20 20 20 20 20 20 20 20 DIS: Store and forward Internet fax: no Real-time Internet fax: no Preferred octets: 256 Can receive fax Data signalling rate: V.29 R8x7.7lines/mm and/or 200x200pels/25.4mm OK 2D coding OK Scan line length: 215mm Recording length: A4 (297mm) Receiver's minimum scan line time: 0ms at 3.85 l/mm: T7.7 = T3.85 R8x15.4lines/mm OK Inch-based resolution preferred: no Metric-based resolution preferred: no Minimum scan line time for higher resolutions: T15.4 = T7.7 DIS: 80 00 c6 f0 80 80 01 T2 timeout Start receiving document Sending ident CSI: 40 38 37 36 35 34 33 32 31 20 20 20 20 20 20 20 20 20 20 20 20 DIS: Store and forward Internet fax: no Real-time Internet fax: no Preferred octets: 256 Can receive fax Data signalling rate: V.29 R8x7.7lines/mm and/or 200x200pels/25.4mm OK 2D coding OK Scan line length: 215mm Recording length: A4 (297mm) Receiver's minimum scan line time: 0ms at 3.85 l/mm: T7.7 = T3.85 R8x15.4lines/mm OK Inch-based resolution preferred: no Metric-based resolution preferred: no Minimum scan line time for higher resolutions: T15.4 = T7.7 DIS: 80 00 c6 f0 80 80 01 HDLC underflow in state 9 Changed from phase 4 to 3 T2 timeout Start receiving document Changed from phase 3 to 4 Sending ident CSI: 40 38 37 36 35 34 33 32 31 20 20 20 20 20 20 20 20 20 20 20 20 DIS: Store and forward Internet fax: no Real-time Internet fax: no Preferred octets: 256 Can receive fax Data signalling rate: V.29 R8x7.7lines/mm and/or 200x200pels/25.4mm OK 2D coding OK Scan line length: 215mm Recording length: A4 (297mm) Receiver's minimum scan line time: 0ms at 3.85 l/mm: T7.7 = T3.85 R8x15.4lines/mm OK Inch-based resolution preferred: no Metric-based resolution preferred: no Minimum scan line time for higher resolutions: T15.4 = T7.7 DIS: 80 00 c6 f0 80 80 01 T4 timeout in state 9 Sending ident CSI: 40 38 37 36 35 34 33 32 31 20 20 20 20 20 20 20 20 20 20 20 20 DIS: Store and forward Internet fax: no Real-time Internet fax: no Preferred octets: 256 Can receive fax Data signalling rate: V.29 R8x7.7lines/mm and/or 200x200pels/25.4mm OK 2D coding OK Scan line