Click2Call


Click to Call

Flashphoner has default click2call application.
It designed separated from usually web phone (PhoneJS.html)
and made specially for Click2call usecase, where site visitors
can call to support or sales department just clicking CALL ME
button on the webpage

You can find html click2call sample in Click2CallJS.html file in the flashphoner-client archive.
Click2call use the same flashphoner_js_api library as JS phone.

Main differences between PHONE and CLICK2CALL is the

  • Possibility make calls without dialing the number
  • Agile configuring what number will be called

Configuring

As you know, flashphoner client has parameters get_callee_url and auto_login_url
For dynamiclally setting caller account / call direction of your click2call solutions,
your web-server must dynamically returns calee.xml/account.xml configs by Flashphoner GET request

Flashphoner do that requests, when these functions are invoked (check click2call.js file):

How it works:

  1. Request structure
    http:///.../.../...?token=...?swfUrl=...?pageUrl=...
    
    Parameter Description
    token Sets in Click2call.js file
    swfUrl Link to the flashphoner_js_api.swf file (e.g. http://.../.../flashphoner_js_api.swf)
    pageUrl Link to the click2call page (e.g. http://.../.../Click2callJS.html)


  2. Callee.xml format
    calee.xml
    <callee account="..."/>
    


  3. Account.xml format
    account.xml
    <root auth="..." sip_login="..." sip_auth_name="..." sip_password="..." sip_server="..." sip_port="..." visible_name="..." />
    


  4. Example web page returning callee/xml
    get_callee.jsp
    <%!static String URL_PARAM_NAME="pageUrl";
    static String url1="http://.../.../Click2callJS.html";
    static String url2="http://.../.../click2call-test-1.html";
    static String url3="http://.../.../click2call-test-2.html";
    static String url4="http://.../.../click2call-test-3.html";%><%String url = request.getParameter(URL_PARAM_NAME);if (url1.equals(url)){%><callee account="..."/>
        <%} else if (url2.equals(url)) {%><callee account="sip:...@..."/>
        <%} else if (url3.equals(url)) {%><callee account="sip:...@..."/>
        <%} else if (url3.equals(url)) {%><callee account="sip:...@..."/>
        <%}
    %>
    

So you can use such .jsp or .php pages for dynamically configure your click2call pages
Please write us with any questions to [email protected]

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