This documentation related to the earlier version of Flashphoner.
We recommend you upgrade to the last version and check the actual documentation

Javascript API

We implementing JS API to latest release (1.0.4.791) right now
It will be finished furing 1-2 weeks.
Please write us any suggestions about this functions.

This manual consist info about JavaScript API


Javascript API is a javascript wrapper for swf object, which give javascript interfaces for calls control (call, answer, hangup e.t.c.)
Thus, signalling scheme looks like this: HTML/javascript - Flash/SWF - Flashphoner server - VoIP server
Javascript is able to provide signaling only(call and callbacks). Voice and video traffic goes via SWF.

  • Flashphoner-1.0.3.420 has bundled Javascript API.
  • Flashphoner-1.0.3.512 has NOT bundled Javascript API.

If you going to use JS API with Flashphoner-1.0.3.512, you may use several ways:

  1. Use Flashphoner-1.0.3.420 client + Flashphoner-1.0.3.512 server.
    In this case you get capabilities of js api and do not get the transfer feature.
    You need do some minor changes in the underling flashphoner_api layer:
    - implement as stubs several callbacks related transfer. You should implement this because it may throw exceptions.
    Example
    void notifyHold(...){
    
    }
    
    

    - make sure, the name of published stream has such format: [login]_[callid], where login is SIP login, and callid is SIP call id.

  2. Use Flashphoner-1.0.3.512 client + server
    In this case you get transfer capabilities, but you need to implement Javascript API support yourself.
    See Developer guide to get sources and developer's documentation
  3. If ways 1 and 2 are not acceptable for you
    Please follow our Roadmap. Javascript API for 512 release planned on May 2011.

Labels

javascript_api javascript_api Delete
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.