Ted received his PhD in mathematics in 1996, answering open problems in complexity theory and infinite colorings for ordered sets, and proceeded with post-doctoral research in component and Web-based collaborative technologies. Following work at Java Software, Sun Microsystems, he was a device management and XML architect at Wind River, participating in the IETF NETCONF design team. Ted currently participates in the JavaServer Faces and Servlet expert groups and is a senior software architect at ICEsoft Technologies developing ICEfaces, an Ajax framework for JavaServer Faces. Ted is a DZone MVB and is not an employee of DZone and has posted 8 posts at DZone. You can read more from them at their website. View Full User Profile

Ajax Push and the Telephone

  • submit to reddit

The telephone is an excellent source of asynchronous events — you never know when it is going to ring. This means that web-based views of the telephony space make for interesting applications of Ajax Push.

Using SailFin and ICEfaces we've put together a very simple call setup demo. It shows when your phone is online and allows you to initiate a call between any two phones just by selecting them and pressing "call".

To run the demo:

  1. Download a recent build of SailFin.
  2. Download the demo binary callsetup.sar.
  3. java -Xmx512m -jar sailfin-installer-v1-b36-darwin.jar
    cd sailfin
    ant -f setup.xml
    bin/asadmin start-domain domain1
    bin/asadmin start-database
    cp callsetup.sar domains/domain1/autodeploy/

  4. Point your SIP phone (such as X-Lite Demo) at a localhost Proxy.
  5. Point your browser at http://localhost:8080/CallSetup/registrations.iface

As phones connect and disconnect, the list in the registrations page will be dynamically updated, showing user presence.

The full source code is available at http://anonsvn.icefaces.org/repo/projects/CallSetup/

Published at DZone with permission of Ted Goddard, author and DZone MVB.

(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)


Jairo Cortes replied on Tue, 2008/09/16 - 9:42am

Hi Ted,

It's an excellent article. But how to download source code?



Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.