Click to Call

The click to call function allows a user to specify their phone number and click to be connected to another phone such as a customer service representative. The click to call function is available from the 'Contact Us' link in the banner or if you have the sample running locally you can access it directly via http://localhost:9080/PlantsByWebSphereAjax/contactus.html. To use the click to call function you must first make a small modification to the contactus.html file. After installation you can locate the contactus.html file in

Locate the widgetNumber element (widgetNumber="sip:CSR@localhost"). Replace 'CSR@localhost' with the user and address to be contacted when a clickToCall call is initiated. When the 'Call Me' button is clicked a call will be attempted between the number specified in the 'My Number' field and the widgetNumber. The phone numbers used by the click to call widget must be numbers which are registered with an IP PBX. The IP PBX to which the numbers are registered, must be configured as CTIGateway in the CEA Settings of the AppServer on which the Plants sample is running.

To initiate a call enter the number of the phone you wish to connect with 'widgetNumber' above and click 'Call Me'.

To terminate the call click 'End Call' or hang up the connected phones.

Cobrowsing can be initiated via clicking 'Cobrowse'. Once cobrowsing is established the modal window will be displayed

Note that if you are testing and cobrowsing with yourself, you must use two different browsers or browsers on different computers, otherwise results will be unpredictable. For example, do not cobrowse between two tabs on the same instance of Firefox or even between separate instances of Firefox on the same computer. If cobrowsing on one computer, use two different browsers such as Firefox and IE, or Google Chrome and Safari.