In addition to being able to place and receive SIP-based phone calls to and from our browser using PhonoSDK, you can also use it to interact with XMPP-based IM clients such as GTalk and Jabber using jQuery.

PhonoSDK uses Adobe’s Flash to control microphone permissions and transport the audio.  Flash automatically loads when the PhonoSDK plugin is instantiated on the web page.  This is great if you are using PhonoSDK for phone calls but not so great if you are using PhonoSDK primarily for handling IM chat only.  Future versions of PhonoSDK will allow you to control if the Flash automatically loads or not.

Until then, here is a snippet of code that will allow you to use PhonoSDK for IM chats without loading Flash.  This will allow you to use our SDK on platforms such as iOS with the iPhone or iPad that don’s support Flash. Simply add the snippet to your page right after including jquery.phono.js. It will override the “audio” and “phone” plugins and still let you do all the cool chat stuff!

<script type="text/javascript">
      Phono.registerPlugin("audio", {
         create: function(phono, config, callback) {callback({}); return {};}
      });
      Phono.registerPlugin("phone", {
         create: function(phono, config, callback) {callback({}); return {};}
      });
    </script>

PhonoSDK makes it easy to interact with the XMPP protocol natively using jQuery! PhonoSDK’s IM chat can be further extended to talk to any IM social network including: AIM, MSN, Yahoo as well as Twitter or SMS by connecting your PhonoSDK application to a Tropo application to handle gateway-ing your communications to other networks.

Originally from Voxeo Blogs