W3C CVS Root

2001/telagent/

telagent

an HTTP agent for placing and receiving telephone calls

This telagent integrates telephones as resources in the web, using the tel: scheme; see Real-Time Resources in the Web for details; the basic idea is:

  1. your web user agent should handle a link to W3C's MIT office phone (NS) kinda like a mailbox link: offer to dial to it.
  2. caller-id should make the phone a little more like email: you can tell who it's from before you answer it, and you can answer it any time later with one click.

Start it going ala:

python telAgent.py /dev/ttyS3 491-0501 8501 ~/.phoneLog >~/.phoneHTTPlog

and it will

TODO

Bugs/Limitations

Netscape, unfortunately, doesn't support proxying tel:... URIs; in fact, it doesn't recognize them as absolute URIs. You can, however, (ab)use the urn: proxy support; try this automatic proxy configuration for urn:tel: URIs (i.e. in the Netscape preferences under Advanced/Proxies, point your "Configuration location (URL)" there; or copy it to your local disk etc.), and then try W3C's MIT office phone, rigged with netscape work-around.

My tel: handler is limited to localhost (127.0.0.1); I haven't figured out a good way to get the absolute URI of the dialer to the right parts of the code.

There's an abstract TelnumNav class for figuring out what digits to call to get from this phone to the phone identified by some URI; the subclass I've implemented is the rules for dialing from 913 in Kansas (which is pretty much like any place else in the U.S., except for 816 numbers).

Architecture and Requirements

python
tested with python 1.5.2 (@@link to debian package)
pyXML stuff
python-xml
what I use: debian package ii python-xml 0.5.1-5 XML tools for Python
XMLElement.py, XMLWriter.py
my own implementation of namespaces and a little bit of DOM
medusa
Sam Rushing's cooperative multi-tasking server architecture

I just downloaded medusa-src-20000601.tar.gz and unpacked it and then used

PYTHONPATH=/medusa's/parent/dir python ...

to help python find it

update Dec 2002: medusa-0.5.3.tar.gz from amk's updated medusa

Acknowledgements and References

conversation with David Boles... JWZ's caller-id thingy...

found cid 17Dec2000; it's a client/server caller-id thingy in python

Dan Connolly
$Revision: 1.4 $ of $Date: 2002/12/31 22:33:52 $ by $Author: connolly $

Click on a directory to enter that directory. Click on a file to display its revision history and to get a chance to display diffs between revisions.

Current directory: [Public] / 2001 / telagent


File Rev. Age Author Last log entry
[BACK] Parent Directory        
[DIR] Attic/ [show]        
[TXT] telnum.py 1.5 16 years connolly added --digits option 2006-03-31 10:38
[TXT] README.cvs.html 1.4 21 years connolly updated to python2.2, amk medusa
[TXT] areaCodes.py 1.2 21 years connolly updated to python2.2, amk medusa
[TXT] telAgent.py 1.9 21 years connolly updated to python2.2, amk medusa
[TXT] cellAgent.py 1.1 21 years connolly n3 from cellphone starting to work
[TXT] tel.pac 1.1 23 years connolly prepared for release to fork/fogo

General options
,

Webmaster