Well, I have made some progress, but I also had to back up a bit -
First, I got my SPA2102 in this afternoon, and I decided to try something that I know the Grandstream’s fail miserably on - Analog FAX machine attached to ATA on a SIP Extension sending a FAX out on our SIP trunk - guess what - it works PERFECTLY!!! This is Analog Transmission in the RTP Audio Packets, not T.38 - and it still works perfectly!
Aughhhhhh - I can’t believe how much time I have wasted trying to get those dang Grandstreams going, and thinking that it was Asterisk and our SIP trunks that were the problem - it was the Grandstreams! All right, fool me once shame on you, fool me twice, shame on me! Never again anything Grandstream! If anybody is interested in a bunch of HT-286, 386, and 503’s let me know - you can have them CHEAP!
So, that is a Game-Changer for us - this SPA2102 works perfectly - I am at my house, so not only does it work, it works going from Comcast (No QOS at my house) to Paetec (QOS) out through the PSTN to remote FAX Machines - I have sent 15 FAXes so far, each at least 3 pages, loaded with graphics and some as long as 10 pages, and they all came in right the first time - I can even fax to myself - the only way I have ever been able to make that work was with Digium Hardware FXS ports in the box itself - Dang! Hope someone else finds this post and doesn’t have to waste all the time that I have on these Grandstreams - Avoid them like the Plague!
Now the bad (sort of - I think I know what’s wrong) news:
Monday, when I got to work, I still had Asterisk 1.6.2.0.rc4 up with the T.38 Gateway patch installed and I thought I had tested every scenario over the weekend, but I missed one - Remote Analog FAX trying to be received by Asterisk as an inbound FAX-2-EMail - Problem is that because our trunk is SIP, when the FAX detection saw CNG, it worked correctly in shifting to FAX reception mode, but it then (Because, I think, our trunk is SIP) It tried shifting the reception into T.38 which of course caused Paetec to immediately say “No Way - media not supported” and terminate the call.
I think the problem is the way I am calling FaxReceive() - I need to spend some time with the source and see if I can send an argument that says don’t even try T.38 on inbound calls from my Paetec SIP trunk, because they will NEVER be T.38, even though it is a SIP trunk - and I bet that will not be a weird configuration until all the SIP trunk providers get there act together.
So, more testing this weekend when I can muck with our system without disrupting my company - I will post then!
Greg