This app is a code sample that features how the Voxbone WebRTC SDK can be used to create a chrome extension that can be used to call an agent when visit a shopping website and having questions at checkout. When pressing on the Click2Call extension button, the IP, URL, and name of the person calling are sent to a remote agent that can assist the user directly in the browser.
##How to run
Chrome extensions have the benefit of being easily portable. Follow the steps to implement this app to your browser:
-
Download the source code
-
Get a Voxbone phone number and link it to a SIP URI
-
Get your Voxboen WebRTC credentials
-
Add your credentials and Voxbone phone number
In js/authentication.js add your credentials:
//Credentials -- TODO: add your own var username = "your_username"; var secret = "your_secret"; //Phone number/SIP Endpoint to call -- TODO: add your own var number = "320000000";
-
Package the extension Open the extension page in chrome (chrome://extensions/) and click on "load unpacked extension", then select this source code.
-
Click on the extension icon whenever you want!