Bill Gibbs
2007-Jan-02 12:45 UTC
[asterisk-users] yet another faxing issue (outbound only, via ATA)
2 Asterisk servers 1.2.12.1 Connected via IAX2, same switch, GigE, no packet loss, etc 1 with a Sangoma A101 for a PRI to the PSTN Ulaw QoS enabled NAT for the registered ATA boxes, no nat between the * servers Faxing inbound: Call from PRI hits the first Asterisk server Then talks to the 2nd via IAX2 NVFaxDetect receives the fax, converts to PDF and emails it out Works great! Never had an issue The problem, however is outbound. Sipura 1001 ATAs. Fax machine connected to the ATA. Registered to the 2nd asterisk box. Keep in mind this server runs voice calls just fine. Outbound calls from this box are ulaw The call is then sent via IAX2 (also tried SIP as well) to the Asterisk server w/ the PRI, then out to the world Hit and miss to send faxes out Echo cancellation is enabled on the PRI I have lowered the rxgain and txgain to -5.0, seems fine for voice. The ATA is running 3.1.8 firmware from Sipura with fax detect turned Usually the faxes fail, but sometimes you will get all the pages, but only a fraction of the page. I have tried turning off ECM but still the same issue. I would suspect the Sangom or IAX2, or something of that nature except receiving faxes traveling to the 2nd asterisk box works just fine! I also tried to register the ATA to the primary Asterisk server w/ the PRI, same exact issue. Any ideas - better luck w/ Grandstream? I suspect the problem is not Asterisk, or the Sangoma, or jitter or bandwidth since receiving faxes works fine. I did not try to receive faxes through the ATA to the machine itself, I tried that a few months ago during other testing, never got it to work so I never tried again once I got NVFaxDetect working for email. My next step is to connect the fax machine to a Wildcard X100P. Any other suggestions? Black magic? Voodoo? Bill -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20070102/46aa3dcc/attachment.htm
Bill Gibbs
2007-Jan-02 14:49 UTC
[asterisk-users] RE: yet another faxing issue (outbound only, via ATA)
Follow up: I used my Cisco 3660 that's a hop away and connected to a different PRI provider. Faxes work _fine_>From the ATA boxI faxed a DID that would come back into the Zap enabled Asterisk server, then talks BACK to the server that the ATA box is regstered via IAX2 (or SIP, I found they both worked) and was able to receive the fax fine (incoming fax went to email) FAILURE FAX: Here is the path: ATA -> SIP -> * -> IAX2 (or SIP) -> * with Zap -> send call out via Zap channel SUCCESS FAX: ATA -> SIP -> * -> IAX2 (or SIP) -> * with Zap -> SIP to 3660 then out via PRI works every time! I tried G3 and ECM mode. ECM was flakey work even through the 3660 but G3 worked everytime. I have set the fax machine to G3 for the time being since it works each time. Each outbound call actually initiates a call to a DID that terminates into my * with the Zap card, then talks via IAX2 again back to the original server. No problems there. So I know that faxing other fax machines fails so it's not necessarily that there is some weird loop calling out and coming back in the same Zap card is there? Recap hardware: Sangoma A101 Echo cancel: yes (and zap show channel confirms it's enabled) I would think if echo cancel was the problem incoming faxes would fail as well? So...wtf?! I am surprised the 3660 is working outbound where the Sangoma is not, since it can receive fine. The 3660 has a HDV card in it with DSPs to do the processing but the load on the Asterisk servers barely goes above 0.00. So to recap: ATA works fine sending and my Asterisk servers are ok Sending the outbound call via SIP to my 3660 a hop away (DS3) to be routed out the PSTN (which then comes back to my Asterisk with the Sangoma card) works fine! Sending the outbound fax via the Zap channels on the Asterisk server (the same one that talks to the 3660 via SIP that works) FAILS Receiving faxes from anywhere into the Sangoma which talks to my 2nd asterisk server works fine as well! Bill -----Original Message----- From: Bill Gibbs Sent: Tue 1/2/2007 2:44 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: yet another faxing issue (outbound only, via ATA) 2 Asterisk servers 1.2.12.1 Connected via IAX2, same switch, GigE, no packet loss, etc 1 with a Sangoma A101 for a PRI to the PSTN Ulaw QoS enabled NAT for the registered ATA boxes, no nat between the * servers Faxing inbound: Call from PRI hits the first Asterisk server Then talks to the 2nd via IAX2 NVFaxDetect receives the fax, converts to PDF and emails it out Works great! Never had an issue The problem, however is outbound. Sipura 1001 ATAs. Fax machine connected to the ATA. Registered to the 2nd asterisk box. Keep in mind this server runs voice calls just fine. Outbound calls from this box are ulaw The call is then sent via IAX2 (also tried SIP as well) to the Asterisk server w/ the PRI, then out to the world Hit and miss to send faxes out Echo cancellation is enabled on the PRI I have lowered the rxgain and txgain to -5.0, seems fine for voice. The ATA is running 3.1.8 firmware from Sipura with fax detect turned Usually the faxes fail, but sometimes you will get all the pages, but only a fraction of the page. I have tried turning off ECM but still the same issue. I would suspect the Sangom or IAX2, or something of that nature except receiving faxes traveling to the 2nd asterisk box works just fine! I also tried to register the ATA to the primary Asterisk server w/ the PRI, same exact issue. Any ideas - better luck w/ Grandstream? I suspect the problem is not Asterisk, or the Sangoma, or jitter or bandwidth since receiving faxes works fine. I did not try to receive faxes through the ATA to the machine itself, I tried that a few months ago during other testing, never got it to work so I never tried again once I got NVFaxDetect working for email. My next step is to connect the fax machine to a Wildcard X100P. Any other suggestions? Black magic? Voodoo? Bill -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20070102/d6a45c98/attachment.htm
Bill Gibbs
2007-Jan-02 18:41 UTC
[asterisk-users] RE: yet another faxing issue (outbound only, via ATA)
Haven't yet. Gotta wait until the calls stop flowing in/out. It's a production system. That's on the list of tonight. Bill ________________________________ From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Lacy Moore - Aspendora Sent: Tuesday, January 02, 2007 8:36 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] RE: yet another faxing issue (outbound only,via ATA) On 1/2/07, Bill Gibbs <bgibbs@edurotech.com> wrote: Echo cancel: yes (and zap show channel confirms it's enabled) I would think if echo cancel was the problem incoming faxes would fail as well? This is only a guess. The Sangoma is detecting the fax when it receives it, and is turning off echo cancel. However, when box b sends via IAX2 or SIP to box a, the Sangoma no longer knows that it is a fax transmission and is continuing echo cancellation. The Cisco 3660 recognizes that it is a fax and turns off echo (or doesn't have echo cancellation). Question: If you turn OFF echo cancellation, does it work then? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20070102/a30bc01a/attachment.htm
Thomas Kenyon
2007-Jan-03 04:20 UTC
[asterisk-users] yet another faxing issue (outbound only, via ATA)
Bill Gibbs wrote:> > My next step is to connect the fax machine to a Wildcard X100P. >Check to see if there is Echo cancellation in the SPA-1001, and if so turn it off. If there is an adaptive Jitter buffer on the SPA-1001, try changing it to a fixed one (probably no more than 40ms). Why would you connect a fax machine to an X100P, aren't they FXO cards? Have you tried terminating to a VOIP provider? (to see if the problem is with the ATA). Here I use a fax machine connected to a CS6220 which is connected to the asterisk box and terminates with a TDM400P card (so a completely different arrangement).> > > Any other suggestions? Black magic? Voodoo? > > > > Bill > > > ------------------------------------------------------------------------ > > _______________________________________________ > --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