Stewart Nelson
2004-Oct-22 14:39 UTC
[Asterisk-Users] Direct SIP connection to Vonage service
I presently have a small VoIP network using H.323 and gnugk, and would like to upgrade it to an Asterisk-based system, primarily to take advantage of low cost unlimited calling plans offered by SIP providers such as Vonage. However, the carriers with good reputations for reliability and quality seem to require that you connect via a "locked" ATA device. It appears that many other users of these services desire a direct SIP connection. Perhaps we can work together to achieve this. Some users have said that you can connect the ATA to an FXO port on your system; the extra conversions to analog and back to digital only slightly impair quality. IMHO, that is not true. Here are my Top Ten reasons why one shouldn't connect Asterisk to a VoIP service through the provider's ATA: 10. Increased noise caused by extra D/A and A/D conversion. 9. Unnecessary extra delay of at least 150 ms in speech path, causing problems when both parties try to speak at the same time, and making echo suppression difficult. 8. Extra echo source caused by needlessly converting from 4-wire to 2-wire and back again. 7. At least two seconds additional call setup time, because destination number must be sent via DTMF on outgoing, and you must wait for CLID data on incoming. 6. If ever need to use compression codecs, one would have two such codecs cascaded, resulting in abysmal quality. 5. Destroys answer supervision and other call progress info. 4. No ability to REINVITE, resulting in needless delay and load on server when external user connects VoIP. 3. Makes debugging more difficult (need managed switch or extra hub to capture SIP traffic from and to ATA). 2. ATA might stop responding; additional hardware is needed to reset it if user is not physically present. 1. It's not the Right Thing! Reminds me of the days when an anti-interface was needed to connect a modem to a DAA. So, how can one avoid these problems, without violating the Terms of Service or the law? It appears that Vonage does not explicitly prohibit use of other devices, although they reserve the right to do so. A sentence taken from http://www.vonage.com/features_terms_service.php says: "If you decide to use the Service through an interface device not provided by Vonage, which Vonage reserves the right to prohibit in particular cases or generally, you warrant and represent that you possess all required rights, including software and/or firmware licenses, to use that interface device with the Service and you will indemnify and hold harmless Vonage against any and all liability arising out of your use of such interface device with the Service." However, it appears that Vonage will not supply the needed SIP credentials, and Google searches did not yield a way to get them. Here are some ideas on the subject; I'm a newbie in this area, so please excuse me if they are naive or simplistic. Technically, it should not be hard to obtain the SIP password. For example, an ATA-186 stores its firmware and data in a standard 28F040A flash memory. It is a 32-pin DIP, conveniently socketed. Just unplug it and dump its contents with a standard EPROM programmer. (Search a similar dump of an unlocked unit with a known password to determine where the needed data is stored.) The password in flash can't be encrypted, but it might be obfuscated and/or compressed. In that case, change the password on the unlocked box and see how the dump changes. Of course, this method would not be very useful if the Vonage password is changed regularly. If the carrier will provision an empty (unlocked, reset) ATA, you could just capture the TFTP traffic to get the configuration key, and subsequent encrypted configuration data. Or, get the key from the flash as above. However, I'm worried that the above methods may run afoul of the TOS, or perhaps even the DMCA. Or, it may simply take too much effort to get them to work. So I have been thinking about ways to get good performance without knowing the SIP secret. How about a software proxy that talks to Asterisk, the ATA, and the outside world? I believe that incoming calls could bypass the ATA completely, because no authentication is needed. Is that correct? For outgoing, the proxy would place the call through the FXO device and the ATA. But once connected, it would feed the audio packets from Vonage directly to Asterisk (and also to the ATA to keep it happy). Likewise, audio from Asterisk would be sent directly to Vonage (and also to the FXO device). A further refinement would eliminate the need for an FXO interface, and instead would use the ATA as just an "authentication client". For example, you would connect the ATA to that old 14.4k modem. When making a call, you would take the ATA off hook and send it the desired number. You'd feed it the 407 challenge from Vonage, send back the resulting response, and hang up the ATA. The remainder of the process would be completed by Asterisk. Does anyone know if the Vonage SIP proxy is stateless? If so, it should be possible to record authorization responses from the ATA in a database, and replay one when calling a previously called number. This would eliminate the extra setup delay, and allow you to call "old" numbers even if the ATA was not working. I would appreciate your opinions on the feasibility of these techniques, and also about any other methods that have been tried to achieve direct SIP connectivity. Thanks, Stewart
Benjamin on Asterisk Mailing Lists
2004-Oct-22 15:00 UTC
[Asterisk-Users] Direct SIP connection to Vonage service
On Fri, 22 Oct 2004 23:39:56 +0200, Stewart Nelson <sn@scgroup.com> wrote:> I would appreciate your opinions on the feasibility of these > techniques, and also about any other methods that have been > tried to achieve direct SIP connectivity.If you are that desperate to use Vonage, then why don't you sign up for the secondary soft-client option which is $15 or so IIRC?! That will allow you to connect Asterisk directly to Vonage, although you pay extra for the privilege. I personally wouldn't bother and I wouldn't want to take my money to a company that uses a business model that I despise. So, vote with your wallet. Don't use Vonage. Use a true VoIP service. And while we are at it, support IAX: Use a provider that offers IAX. rgds benjk -- Sunrise Telephone Systems, 9F Shibuya Daikyo Bldg., 1-13-5 Shibuya, Tokyo, Japan. NB: Spam filters in place. Messages unrelated to the * mailing lists may get trashed.
On Friday, October 22, 2004 2:40 PM Stewart Nelson wrote:> I presently have a small VoIP network using H.323 and gnugk, > and would like to upgrade it to an Asterisk-based system, > > primarily to take advantage of low cost unlimited calling > plans offered by SIP providers such as Vonage.FYI these so called "unlimited" monthly plans are RARELY, if _EVER_ truly unlimited. They CAN (read the TOS), and WILL terminate you if you use too many minutes more then whatever average they calculated for when pricing the plan. I personally know several people who were using the Vonage "unlimited" calling plan and were terminated for _"EXCESSIVE USAGE"_>However, the carriers with good reputations for reliability and quality > seem to require that you connect via a "locked" ATA device.<SNIP> As some other people have suggested, your best bet is to just use a VoIP provider who natively supports the InterAsteriskExchange protocol. Two that I know of are NuFone.net and tollfreeexpress.com . Try Google and the voip-info.org wiki for others.
Stewart Nelson
2004-Oct-23 16:45 UTC
[Asterisk-Users] Re: Direct SIP connection to Vonage service
Hi, Thanks for the replies. Brian wrote:> FYI these so called "unlimited" monthly plans are RARELY, > if _EVER_ truly unlimited. They CAN (read the TOS), and > WILL terminate you if you use too many minutes more then > whatever average they calculated for when pricing the > plan.> I personally know several people who were using the Vonage > "unlimited" calling plan and were terminated for > _"EXCESSIVE USAGE"_Ouch. I am aware that service is not really unlimited. My present POTS service has "unlimited" long distance; the TOS makes it clear that you are billed four cents per minute for usage beyond 5000 min. per month. That's pretty steep, but going a little over won't break you, and it sure beats having your service disconnected. I usually run 2000-3000 min., and have never gone over 3500, so I'm not in any danger. Vonage, OTOH, is quite vague; their TOS speaks of "inconsistent with normal residential usage patterns". Do you know what they consider "excessive", or if my usage would be acceptable? Benjk wrote:> I personally wouldn't bother and I wouldn't want to take > my money to a company that uses a business model that I > despise. So, vote with your wallet. Don't use Vonage. Use > a true VoIP service. And while we are at it, support IAX: > Use a provider that offers IAX.I looked at NuFone.net and some others, but it appears that IAX is not right for my system. I live near Reno, NV, and have a second home in Paris. Most of my calling is to the US, via an H.323 gateway to the Reno POTS line; overflow traffic is sent to an H.323 ITSP. I run GnuGk on a shared server at a hosting provider in New York. Paris has a Cisco 827-4V (ADSL modem / NAT / 4 FXS) that speaks H.323 and SIP. There are also some associates on the system using ATA-186. When calling from an H.323 or SIP client to an IAX service (or vice-versa), I believe that Asterisk must proxy the media stream. If * is run at the hosting service, I'm worried that delays caused by other users will result in choppy voice. I'd rather run * in Reno, where it could also replace an ancient DOS-based voice mail, and possibly my Partner key system. However, that configuration would have lots of extra delay. For example, if the IAX provider is in Michigan, a call from Paris to San Francisco would go Paris->Reno->Michigan->California. With SIP, a REINVITE would cause it to go Paris->Michigan->California, saving two trips across the country. Have I missed something? Or did you mean that I should use a provider that *offers* IAX, but connect via SIP :) Thanks, Stewart
Stewart Nelson
2004-Oct-24 06:27 UTC
[Asterisk-Users] Re: Direct SIP connection to Vonage service
Hi Benjamin,>> I looked at NuFone.net and some others, but it appears that >> IAX is not right for my system.> I'd say this is only because you don't know enough about IAX yet ;-)> [Many comments explaining how IAX would work wonderfully if all my > VoIP hardware were replaced with IAX-compatible equipment]No, I don't want to replace existing gear. It would be expensive, disrupt operations, take lots of time to set up, and I don't want the administrative hassle of running multiple Asterisk systems for such a small network. There are other reasons, too. For example, the Cisco 827-4V is very reliable, because it has no hard drive and no fans. If *your* Asterisk system fails, you can zip over to Akihabara and get what you need, even on Sunday. Rue Montgallet is not the same! IAX is probably the ideal protocol for an interoffice trunk carrying many calls at once, but for me, it seems better to gradually migrate to a SIP-based system, with a single Asterisk server in Reno, and retaining present hardware. If NuFone service is reliable, good quality, competitively priced, and they also support the open source community, they'll get my business. But I'll connect via SIP, so existing equipment can be better utilized. When I'm in a hotel, stuck behind a NAT over which I have no control, sure, I'll use IAX to connect to the server (and tolerate the media proxy delays in that case.) Have I missed something? Regards, Stewart