Analog remix part 1: a VoIP manual service exchange

| 3 Comments | No TrackBacks
Recently, I decided to revisit the analog side of my home Asterisk VoIP system, specifically, the Northern Electric 302 that I keep hooked up and on display. It's a conversation piece, for when folks spot the rotary-dial phone, they ask, "Does that thing work?" At that point I explain that I can answer calls on it, but because of the rotary dial (and because I haven't fashioned or purchased a rotary-to-DTMF converter) I can't place a call from it.

Until now. With a little tweaking of the analog adapter, a fresh rediscovery of VoiceXML through the Tropo application platform, and some straightforward CGI programming, I have a robotic operator ready to connect me to whatever number I tell her. No dialing necessary!

Speech recognition is not new technology, but I think that using it here is a clever way to get around the limitations of my old technology (the rotary dial) by using the computerized equivalent of even-older "technology" (the human operator). So this discussion on implementing a manual service exchange in VoIP is dedicated to Almon Strowger, inventor of the automatic telephone switch.

There are three components to this:
  • configuring the analog adapter as an automatic ringdown (hot-line) or warm-line
  • programming the speech-to-text "operator" service on Tropo
  • programming the call-back CGI on a web server that can connect to the Asterisk Manager and perform call-handling functions
listed in order of difficulty.

Part 1: the automatic ringdown

Most VoIP-analog adapters (and probably most IP phones for that matter) have the ability to act as a hot-line, which rings a set destination when the phone goes off-hook, or a warm-line, which does the same after a timeout period (for example, six seconds without any digits entered). If you've got your vintage analog gear on a dedicated ATA, go for the hot-line, because you'll never actually be "dialing" anything. As for me, I've got my 302 bridged with a Panasonic cordless system, so I need to maintain the ability to dial. But after six seconds of no dialing, the ATA assumes I want the operator and connects the call appropriately.

The hot-line/warm-line is configured in the endpoint's dial plan. Refer to your device's manual. The common Cisco/Linksys/Sipura SPA adapters all seem to have the same dial plan syntax, documented here. Here are the key items from that document:

The following implements a Hot Line phone, which automatically calls 1 212 5551234.

The following provides a Warm Line to a local office operator (1000) after five seconds, unless a four-digit extension is dialed by the user.

In my case, my "operator" extension is going to be 1100, so part of my dial plan will contain | P6 <:1100> |, which tells the ATA to automatically connect the call to extension 1100 after six seconds of no input.

Now that the need to dial has been eliminated, we'll need something useful at extension 1100, which will be the Tropo-powered speech synthesis and recognition system, discussed in a future post.

No TrackBacks

TrackBack URL: https://blogs.psu.edu/mt4/mt-tb.cgi/207800

3 Comments

Mark said:

Some of the UTStarcom adapters , specifically the model iAN-02EX support pulse dialing. I know I had some old rotary phones connected to VoIP using this device. They seemed a little intolerant on the pulse frequency but seemed to be reliable on about 9 of 10 of the antique phone I tested with. Also be cautious of the ringer load with antique phones on any ATA.

These adapters were used on Lingo and some of those are unlockable. Mine had the unlocked Lingo firmware but I dont think the firmware caused this functionality. It is probably a feature of the generic firmware.

Bill Author Profile Page said:

I asked the eBay seller about the adapters and he wrote, "These items are locked by a service provider."

You wrote, "some of those are unlockable," but $20 is too much of a gamble to maybe get a locked-firmware paper weight, in my opinion.

Leave a comment

Subscribe to receive notifications of follow up comments via email.
We are processing your request. If you don't see any confirmation within 30 seconds, please reload your page.

February 2012

Sun Mon Tue Wed Thu Fri Sat
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29      

Recent Comments

  • Bill: I asked the eBay seller about the adapters and he read more
  • Mark: Have a look http://cgi.ebay.com/UTStarcom-iAN-02EX-/130441777452?pt=LH_DefaultDomain_0&hash=item1e5eef912c Says 4 REN too! read more
  • Mark: Some of the UTStarcom adapters , specifically the model iAN-02EX read more

Contact Me


AIM: TNS BillS

View William Simon's profile on LinkedIn

Donate

Make a gift
Like this blog? Support education and research at Penn State by donating any amount to an area of your choice.

Subscribe

Blogroll

Disclaimer

We are Penn State, but I am not. Opinions expressed on this blog are those of the author and do not represent the opinions of The Pennsylvania State University or any division therein, including but not limited to the author's workgroup, department, administrative unit, or campus. Technologies and ideas discussed on this blog do not describe a production service unless noted.